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 when adding too many torrents at the same time #260

Open shad00m opened 9 years ago

shad00m commented 9 years ago
Caught internal_error: TrackerController cannot set timeout when inactive.D 254/1810] [H 0/32] [S 74
/usr/local/lib/libtorrent.so.18(_ZN7torrent14internal_error10initializeERKSs+0x1ef) [0x7ff827da039f]
rtorrent(_ZN7torrent14internal_errorC2EPKc+0x44) [0x44cd14]
/usr/local/lib/libtorrent.so.18(_ZN7torrent17TrackerController14update_timeoutEj+0x293) [0x7ff827db9e83]
/usr/local/lib/libtorrent.so.18(_ZN7torrent17TrackerController10do_timeoutEv+0x16a) [0x7ff827dbb48a]
/usr/local/lib/libtorrent.so.18(_ZN7torrent17TrackerController15receive_failureEPNS_7TrackerERKSs+0x2d) [0x7ff827dbb6ad]
/usr/local/lib/libtorrent.so.18(_ZN7torrent11TrackerList14receive_failedEPNS_7TrackerERKSs+0xcc) [0x7ff827dbbe7c]
/usr/local/lib/libtorrent.so.18(+0xdcc73) [0x7ff827e46c73]
/usr/local/lib/libtorrent.so.18(_ZN7torrent11TrackerList10send_stateEPNS_7TrackerEi+0x84) [0x7ff827dbbad4]
/usr/local/lib/libtorrent.so.18(_ZN7torrent17TrackerController10do_timeoutEv+0x1f0) [0x7ff827dbb510]
/usr/local/lib/libtorrent.so.18(_ZN7torrent17TrackerController15receive_failureEPNS_7TrackerERKSs+0x2d) [0x7ff827dbb6ad]
/usr/local/lib/libtorrent.so.18(_ZN7torrent11TrackerList14receive_failedEPNS_7TrackerERKSs+0xcc) [0x7ff827dbbe7c]
/usr/local/lib/libtorrent.so.18(+0xdc91c) [0x7ff827e4691c]
/usr/local/lib/libtorrent.so.18(+0x33dab) [0x7ff827d9ddab]
/usr/local/lib/libtorrent.so.18(+0x34137) [0x7ff827d9e137]
/usr/local/lib/libtorrent.so.18(+0xdce05) [0x7ff827e46e05]
/usr/local/lib/libtorrent.so.18(_ZN7torrent11TrackerList10send_stateEPNS_7TrackerEi+0x84) [0x7ff827dbbad4]
/usr/local/lib/libtorrent.so.18(_ZN7torrent17TrackerController10do_timeoutEv+0x1f0) [0x7ff827dbb510]
/usr/local/lib/libtorrent.so.18(+0x32863) [0x7ff827d9c863]
/usr/local/lib/libtorrent.so.18(_ZN7torrent11thread_base10event_loopEPS0_+0x15a) [0x7ff827de99aa]
rtorrent() [0x41ad77]
shad00m commented 9 years ago

it keeps crashing for different reasons, this time its:

Caught Segmentation fault, dumping stack: KB] [Port: 49304]                                                              [U 19/1810] [D 0/1810] [H 32/32] [S 0/22/768] [F 128/128]
rtorrent() [0x4114ac]
rtorrent() [0x450317]
/lib/x86_64-linux-gnu/libc.so.6(+0x321e0) [0x7f5ea1e6d1e0]
/usr/local/lib/libtorrent.so.18(_ZN7torrent9PollEPoll11remove_readEPNS_5EventE+0x80) [0x7f5ea3093380]
/usr/local/lib/libtorrent.so.18(+0xdbfe0) [0x7f5ea3124fe0]
/usr/local/lib/libtorrent.so.18(+0xdc319) [0x7f5ea3125319]
/usr/local/lib/libtorrent.so.18(+0xdc91c) [0x7f5ea312591c]
/usr/local/lib/libtorrent.so.18(+0x33dab) [0x7f5ea307cdab]
/usr/local/lib/libtorrent.so.18(+0x34137) [0x7f5ea307d137]
/usr/local/lib/libtorrent.so.18(+0xdce05) [0x7f5ea3125e05]
/usr/local/lib/libtorrent.so.18(_ZN7torrent11TrackerList10send_stateEPNS_7TrackerEi+0x84) [0x7f5ea309aad4]
/usr/local/lib/libtorrent.so.18(_ZN7torrent17TrackerController10do_timeoutEv+0x1f0) [0x7f5ea309a510]
/usr/local/lib/libtorrent.so.18(_ZN7torrent17TrackerController15receive_failureEPNS_7TrackerERKSs+0x2d) [0x7f5ea309a6ad]
/usr/local/lib/libtorrent.so.18(_ZN7torrent11TrackerList14receive_failedEPNS_7TrackerERKSs+0xcc) [0x7f5ea309ae7c]
/usr/local/lib/libtorrent.so.18(+0xdc91c) [0x7f5ea312591c]
/usr/local/lib/libtorrent.so.18(+0x33dab) [0x7f5ea307cdab]
/usr/local/lib/libtorrent.so.18(+0x34137) [0x7f5ea307d137]
/usr/local/lib/libtorrent.so.18(+0xdce05) [0x7f5ea3125e05]
/usr/local/lib/libtorrent.so.18(_ZN7torrent11TrackerList10send_stateEPNS_7TrackerEi+0x84) [0x7f5ea309aad4]
/usr/local/lib/libtorrent.so.18(_ZN7torrent17TrackerController10do_timeoutEv+0x1f0) [0x7f5ea309a510]
Aborted
ghost commented 9 years ago

I'm in the same boat as you; see issue #294

hradec commented 4 years ago

There's a possible workaround for this TrackerController cannot set timeout when inactive. crash here: #893

It requires patching libtorrent and re-compile it, but now my rtorrent is being running for 3 days without dying!! :)