Thanks a lot for your analysis Ɓukasz,

I confirm that force-enabling byte alignment on ARM fixes the issue.

This particular rtorrent crash affects my armhf machine (Banana Pro board) 
since the day I replaced Bananian with Armbian stretch. I reckon this issue as 
pretty severe as it basically prevents usage of rtorrent with DHT enabled on 
ARM workstations (which is a common case for torrent seedboxes).

Now, after the fix, I'm having rtorrent flawlessly running for already several 
hours. Before the fix, it was crashing with this "tracker insertion" error 
within 4-6 minutes after start.

Any chance to promote the fix to the upstream?

Included is the patch for debian/rules which adds --enable-aligned if target 
arch is ARM.

Oleg
diff -Nru libtorrent-0.13.6/debian/rules libtorrent-0.13.6/debian/rules
--- libtorrent-0.13.6/debian/rules	2016-12-22 06:32:11.000000000 +0000
+++ libtorrent-0.13.6/debian/rules	2019-03-29 22:34:15.000000000 +0000
@@ -21,6 +21,12 @@
 override_dh_auto_test:
 endif
 
+# Force byte alignment on ARM.
+# Closes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864995.
+ifeq ($(DEB_TARGET_ARCH_CPU), arm)
+CONFOPTS += --enable-aligned
+endif
+
 %:
 	dh $@ --with autoreconf --parallel
 

Reply via email to