#721995 rtorrent segfaults when IP address changes after a sleep

Package:
rtorrent
Source:
rtorrent
Description:
ncurses BitTorrent client based on LibTorrent from rakshasa
Submitter:
Alexander Prokoshev
Date:
2014-10-11 06:33:05 UTC
Severity:
normal
#721995#5
Date:
2013-09-06 16:09:01 UTC
From:
To:
Dear Maintainer,
I have a repeating situation when rtorrent being started in screen session
segfaults after the laptop wakes up from sleep.
Steps to reproduce:
1) Start screen
2) Start rtorrent in screen session, start downloading a torrent.
3) Detach from the screen session
4) Suspend the laptop.
5) Move the laptop to another network with another address space
   (for example, if it was connected to a network 192.168.0.0/24,
    move it to a network 192.168.1.0/24).
6) Wake up the laptop.
7) Attache the screen session.
8) See the rtorrent segfaulted.

#721995#10
Date:
2013-09-07 05:08:45 UTC
From:
To:
This is a situation isolated for `screen` or it happens even without
`screen`?

#721995#15
Date:
2013-09-12 04:14:49 UTC
From:
To:
07.09.2013 09:08, Jose Luis Rivas пишет:
Now it is not a segfault, but "*** Error in `rtorrent': corrupted
double-linked list: 0x08336588 ***"

#721995#20
Date:
2014-10-11 06:10:37 UTC
From:
To:
Hello.
The proble now seems to be not directly sleep-related but rather
network-related one.
I've noticed that my rtorrent process had gone away and tried to start
it but got the error alike that.
Tried to strace it and seen that it sends SIGABRT after receiving many
"no route to host" errors. After that, I've found that my wifi just gone
away and there are indeed no routes.

So the problem now seems like rtorrent suddenly (for it) realizes that
there are no reachable hosts [of some kind] and aborts.

My ~/.rtorrent.rc is as follows:

session = /home/ap/.rtorrent
dht = auto
dht_port = 6881