Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rTorrent crashes adding torrents with more files #1388

Open
mirolm opened this issue Jan 22, 2025 · 0 comments · May be fixed by rakshasa/libtorrent#303
Open

rTorrent crashes adding torrents with more files #1388

mirolm opened this issue Jan 22, 2025 · 0 comments · May be fixed by rakshasa/libtorrent#303

Comments

@mirolm
Copy link

mirolm commented Jan 22, 2025

I noticed a crash with current rtorrent master (d514e52) and libtorrent master (53f6b28).

To Reproduce:

  1. Add a torrent with single file - single anime or series episode.
  2. Adds and downloads fine.
  3. Add a torrent with a whole season - for example [NH] BOFURI: I Don't Want to Get Hurt, So I'll Max Out My Defense S01 (BD 1080p x265 10-bit FLAC) [Dual-Audio]. This torrent has 12 episodes.
  4. rTorrent crashes both with torrent or magnet link.
  5. Upon restart rTorrent does not show the torrent at all.

You can see the crash below:

rtorrent[1947592]: Caught internal_error: FileList::split(...) split size does not match the old size. [#2E426C752D5261792E31302D4269742E4475616C]
rtorrent[1947592]: /usr/local/lib/libtorrent.so.23(_ZN7torrent14internal_error10initializeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x34) [0x7f286e231d64]
rtorrent[1947592]: /usr/local/lib/libtorrent.so.23(+0x42177) [0x7f286e1f1177]
rtorrent[1947592]: /usr/local/lib/libtorrent.so.23(+0x424dc) [0x7f286e1f14dc]
rtorrent[1947592]: /usr/local/lib/libtorrent.so.23(_ZN7torrent19DownloadConstructor17parse_multi_filesERKNS_6ObjectEj+0xd10) [0x7f286e25bc50]
rtorrent[1947592]: /usr/local/lib/libtorrent.so.23(_ZN7torrent19DownloadConstructor10parse_infoERKNS_6ObjectE+0x32d) [0x7f286e25eb7d]
rtorrent[1947592]: /usr/local/lib/libtorrent.so.23(_ZN7torrent12download_addEPNS_6ObjectE+0x88) [0x7f286e241af8]
rtorrent[1947592]: /opt/flood/rtorrent(+0x580b5) [0x55b1f891e0b5]
rtorrent[1947592]: /opt/flood/rtorrent(+0x514a1) [0x55b1f89174a1]
rtorrent[1947592]: /usr/local/lib/libtorrent.so.23(_ZN7torrent11thread_base10event_loopEPS0_+0x165) [0x7f286e235ce5]
rtorrent[1947592]: /opt/flood/rtorrent(+0x4c893) [0x55b1f8912893]
rtorrent[1947592]: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7f286de15d7a]
rtorrent[1947592]: /opt/flood/rtorrent(+0x5091a) [0x55b1f891691a]

Operating system is: Debian 11.11 x86_64

@kannibalox kannibalox linked a pull request Jan 22, 2025 that will close this issue
kannibalox added a commit to kannibalox/libtorrent that referenced this issue Jan 22, 2025
Previusly the iterator wasn't advancing properly

Fixes rakshasa/rtorrent#1388
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant