Open Antorell opened 1 year ago
On line 56 here, you need to inject the following code and recompile to resolve the issue.
if (!m_task.is_valid())
return;
This problem is caused intentionally with the software. A task becomes invalid before it can be erased. Then the program crashes.
Thanks, I already patched rtorrent with your PR https://github.com/rakshasa/rtorrent/pull/1134 after it happened the first time back in November. Rtorrent still crashes with it.
I commented the throw torrent::internal_error("priority_queue_erase(...) could not find item in queue.");
in rak/priority_queue_default.h, in both libtorrent and rtorrent, and replaced it with a return;
I'll see how it goes.
EDIT: returned a segfault instead.
rtorrent randomly crashes when I delete a public torrent from rutorrent. It only seem to happen with public torrent, and right after I delete the torrent+data from rutorrent. I have a bunch of private tracker and I've never had it happen after deleting a torrent from a private tracker.I just set the network.xmlrpc.size_limit.set to 8M as advised here https://github.com/rakshasa/rtorrent/issues/939#issuecomment-564886523 for another/a similar priority_queue_erase() issue, I'll see if it crashes again.
I built rtorrent/libtorrent from the master tree here on github.
EDIT: it also happens with Private trackers and with
network.xmlrpc.size_limit.set
set to 8MB+, and this one happened a couple of minutes after rtorrent finished downloading a big torrent.Crash after downloading a season pack on a private torrent: