rtorrent icon indicating copy to clipboard operation
rtorrent copied to clipboard

rtorrent hang

Open JosiahWhite opened this issue 1 year ago • 2 comments

Please complete the following tasks.

  • [X] Name of seedbox provider or self hosted service
  • [X] rTorrent Commit and OS version provided

Tell us about your environment

rTorrent Commit: 7e852c88465682864ef80d86f1d085d932ef3d89 OS: Debian 11 bullseye

Tell us if rTorrent seedbox is self hosted or provided

Self hosted

Describe the bug

Occasionally, rtorrent will hang and the process is stuck waiting for a hash check to complete, but apparently it never does. This is observable as the UI locking up, and the scgi process not responding to any requests.

The loop that gets stuck is here: libtorrent/src/data/hash_queue.cc:140

Steps to reproduce

No response

Expected behavior

No response

Additional context

Full stacktrace is available here: https://gist.github.com/JosiahWhite/f58e43905a3fce425a4ca0d0a3030710

JosiahWhite avatar Oct 16 '24 17:10 JosiahWhite

Does this happen frequently enough to resimulate? If so, could you try my build script without the instrumentation changes?

https://github.com/stickz/rutorrent-rtorrent-build-scripts/tree/main

stickz avatar Oct 16 '24 22:10 stickz

This is happening every few days after switching from a standard rtorrent build. I suspect some session file corruption is coming into play but I enabled logging of torrent data when i submitted this issue to try and dig into what torrent is causing this problem. The line I had configured with was ./configure --enable-aligned --enable-hosted-mode --disable-instrumentation --enable-udns, when it crashes again I'll try running a build without the --disable-instrumentation flag

JosiahWhite avatar Oct 17 '24 16:10 JosiahWhite