rakshasa / rtorrent

rTorrent BitTorrent client
https://github.com/rakshasa/rtorrent/wiki
GNU General Public License v2.0
4.05k stars 412 forks source link

Crash om startup, FreeBSD 14.1 #1285

Open jakobbg opened 3 weeks ago

jakobbg commented 3 weeks ago

Hi,

I built FreeBSD 14.1 from source using GENERIC config, then rebuilt whole ports tree, and now rtorrent crashes like this, what can be the reason for this? rtorrent has behaved nicely for years, but now is a sad puppy…

❯ rtorrent
Caught Illegal instruction, dumping stack:
0x280d90 <_ZTVN7torrent14resource_errorE+0x3c498> at /usr/local/bin/rtorrent
0x827e4f410 <pthread_sigmask+0x540> at /lib/libthr.so.3
0x827e4e9cb <pthread_setschedparam+0x84b> at /lib/libthr.so.3
0x821cc62d3 <???> at ???
0x339d72 <_ZNK7torrent5Event9type_nameEv+0x7372> at /usr/local/bin/rtorrent
0x284882 <_ZN7torrent6ObjectC2ERKS0_+0x2312> at /usr/local/bin/rtorrent
0x286148 <_ZN7torrent6ObjectC2ERKS0_+0x3bd8> at /usr/local/bin/rtorrent
0x28bdd2 <_ZNK7torrent14internal_error4whatEv+0x1f62> at /usr/local/bin/rtorrent
0x335c72 <_ZNK7torrent5Event9type_nameEv+0x3272> at /usr/local/bin/rtorrent
0x337873 <_ZNK7torrent5Event9type_nameEv+0x4e73> at /usr/local/bin/rtorrent
0x33d51e <_ZNK7torrent5Event9type_nameEv+0xab1e> at /usr/local/bin/rtorrent
0x33d823 <_ZNK7torrent5Event9type_nameEv+0xae23> at /usr/local/bin/rtorrent
0x27faef <_ZTVN7torrent14resource_errorE+0x3b1f7> at /usr/local/bin/rtorrent
0x82c242a6a <__libc_start1+0x12a> at /lib/libc.so.7
[1]    38053 abort      rtorrent
❯ uname -a
FreeBSD core24.grimstveit.no 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-10e31f094 CORE24 amd64
❯ pkg info|grep BitT|grep writt
libtorrent-0.13.8              BitTorrent Library written in C++
rtorrent-0.9.8                 BitTorrent Client written in C++
jakobbg commented 3 weeks ago

Tried both without .rtorrent.rc and with clean config.

kannibalox commented 3 weeks ago

I've put up a pull request that should fix this, it doesn't require any additional changes to backport it to the 0.9.8 code either.