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.
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:
rtorrent -n -o session=rtsession
rm test/empty.txt
rtorrent -n -o session=rtsession
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 asLD_LIBRARY_PATH="/home/mal/rtdev/lib/" rtdev/bin/rtorrent
)