rakshasa / libtorrent

libTorrent BitTorrent library
http://rtorrent.net/downloads/
GNU General Public License v2.0
883 stars 210 forks source link

Crash when rechecking torrents with missing empty files #211

Open half-duplex opened 3 years ago

half-duplex commented 3 years ago

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:

libtorrent: c791ea3c72890ddde82ebc101c71afa1389ffc58 ./configure LDFLAGS=-rdynamic --prefix=/home/mal/rtdev --enable-debug --enable-extra-debug rtorrent: rakshasa/rtorrent@79765768ff3d93a511ceb90df24a8dbb0a62e4f5 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)