Skip to content

Commit

Permalink
rTorrent: Resolve memory access crash
Browse files Browse the repository at this point in the history
rTorrent requires the usage of aligned memory access on all platforms (x86 and ARM) to prevent a memory access crash from happening. As such, we need to configure libtorrent with `--enable-aligned` to enable the feature.

This is also more efficient for CPU usage at the cost of slightly more memory consumption.  However, due to the relatively small usage of memory, all platforms will benefit.

More information can be found here: rakshasa/libtorrent#244
  • Loading branch information
stickz committed Jan 3, 2024
1 parent 964647a commit 74ed5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ RUN patch -p1 < throttle-fix-0.13.8.patch \
&& patch -p1 < libtorrent-udns-0.13.8.patch \
&& patch -p1 < libtorrent-scanf-0.13.8.patch
RUN ./autogen.sh
RUN ./configure --with-posix-fallocate
RUN ./configure --with-posix-fallocate --enable-aligned
RUN make -j$(nproc) CXXFLAGS="-w -O3 -flto"
RUN make install -j$(nproc)
RUN make DESTDIR=${DIST_PATH} install -j$(nproc)
Expand Down

0 comments on commit 74ed5bc

Please sign in to comment.