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

Crash when rechecking torrents with missing empty files #211

Open
half-duplex opened this issue Aug 19, 2020 · 0 comments
Open

Crash when rechecking torrents with missing empty files #211

half-duplex opened this issue Aug 19, 2020 · 0 comments

Comments

@half-duplex
Copy link

half-duplex commented Aug 19, 2020

rtorrent reliably crashes when attempting to recheck open torrents that contain 0-byte files that don't exist on disk. I think this is a libtorrent issue, if not, apologies.

Reproduction steps:

  • Create example torrent:
mkdir test rtsession
echo hello >test/hello.txt
touch test/empty.txt
mktorrent -a http://localhost/announce -d test
  • rtorrent -n -o session=rtsession
  • [Backspace] test.torrent [Enter] to load.start the torrent
  • ^q to quit rtorrent
  • rm test/empty.txt
  • rtorrent -n -o session=rtsession
  • [Down] to select the torrent, ^r to recheck
  • Expected: Rechecks to 100%, possibly re-creates the empty file.
  • Observed: Kaboom:
Caught internal_error: FileList::mark_completed(...) received an invalid index. [#6E3F5340ACC2C8DD59264B7503CA0B8B9FBC2900]
/home/mal/rtdev/lib/libtorrent.so.21(_ZN7torrent14internal_error10initializeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x253) [0x7f64a7f4e0f3]
/home/mal/rtdev/lib/libtorrent.so.21(_ZN7torrent14internal_errorC2EPKcRKNS_10HashStringE+0x244) [0x7f64a7f25254]
/home/mal/rtdev/lib/libtorrent.so.21(+0x2ad73) [0x7f64a7f04d73]
/home/mal/rtdev/lib/libtorrent.so.21(+0xaab2c) [0x7f64a7f84b2c]
/home/mal/rtdev/lib/libtorrent.so.21(+0x889eb) [0x7f64a7f629eb]
/home/mal/rtdev/lib/libtorrent.so.21(_ZN7torrent15signal_bitfield4workEv+0x69) [0x7f64a7f49d89]
/home/mal/rtdev/lib/libtorrent.so.21(_ZN7torrent11thread_base10event_loopEPS0_+0x175) [0x7f64a7f49f15]
/home/mal/rtdev/bin/rtorrent(main+0xefe) [0x55812447339e]
/usr/lib/libc.so.6(__libc_start_main+0xf2) [0x7f64a7b1f002]
/home/mal/rtdev/bin/rtorrent(_start+0x2e) [0x558124473d0e]

libtorrent: c791ea3
./configure LDFLAGS=-rdynamic --prefix=/home/mal/rtdev --enable-debug --enable-extra-debug
rtorrent: rakshasa/rtorrent@7976576
PKG_CONFIG_PATH="/home/mal/rtdev/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig" ./configure LDFLAGS=-rdynamic --prefix=/home/mal/rtdev --enable-debug --enable-extra-debug
(Ran as LD_LIBRARY_PATH="/home/mal/rtdev/lib/" rtdev/bin/rtorrent)

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

No branches or pull requests

1 participant