Bug 206077 - rtorrent segfaults after completing download
Summary: rtorrent segfaults after completing download
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: rtorrent
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Chris Chabot
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-09-11 20:12 UTC by Kevin Fenzi
Modified: 2007-11-30 22:11 UTC (History)
3 users (show)

Fixed In Version: 0.6.2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-10-01 13:50:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Kevin Fenzi 2006-09-11 20:12:27 UTC
Description of problem:

rtorrent starts up fine, but once it's downloaded the entire target file, 
it segfaults instead of continuing to upload back to the torrent. 

Version-Release number of selected component (if applicable):
rtorrent-0.5.3-1.fc5

How reproducible:
Start a torrent download and let it complete. 

Steps to Reproduce:
1. rtorrent http://torrent.fedoraproject.org/torrents/fc6-test2-dvd-
x86_64.torrent
2. wait until the file has completely downloaded
3. see rtorrent segfault
  
Actual results:
segfault: 

Caught Segmentation fault, dumping stack:B] [Port: 6920]    [U 0/15] [S 0/1/
768] [F 2/128]
0 rtorrent [0x80574a1]
1 rtorrent [0x8069416]
2 [0x608420]
3 rtorrent [0x80a8230]
4 rtorrent [0x8097bec]
5 rtorrent [0x805905a]
6 /lib/libc.so.6(__libc_start_main+0xdc) [0x63b724]
7 rtorrent(_ZN7torrent18set_max_open_filesEj+0x95) [0x8050fb1]

Expected results:

rtorrent should continue to upload to the torrent.

Comment 1 Chris Chabot 2006-09-12 05:19:32 UTC
I'll try to reproduce the problem here locally, in the meantime could you please
install rtorrent-debuginfo, and try again?

The resulting segfault should have a bit more of a clue to follow up on then

Thanks in advance!

Comment 2 Kevin Fenzi 2006-09-13 01:29:23 UTC
Just installing the debuginfo didn't seem to get me anything else, but I 
installed the debuginfo and ran it under gdb and got:

Program received signal SIGSEGV, Segmentation fault.
core::CurlStack::perform (this=0x84720f8) at curl_stack.cc:82
82                                                       rak::equal(msg-
>easy_handle, std::mem_fun(&CurlGet::handle)));
(gdb) where
#0  core::CurlStack::perform (this=0x84720f8) at curl_stack.cc:82
#1  0x08097bec in core::PollManagerEPoll::poll (this=0x84720f0, timeout=
      {m_time = 424510}) at poll_manager_epoll.cc:92
#2  0x0805905a in main (argc=2, argv=0xbff6d424) at main.cc:254
#3  0x0063b724 in __libc_start_main () from /lib/libc.so.6
#4  0x08050fb1 in _start ()

I still have the gdb session sitting there if you want me to try and 
gather any further info from it. 


Comment 3 Thomas Springer 2006-09-21 19:33:59 UTC
I noticed that segfault immediately when hash check operation finishes after 
download is complete and rtorrent continues to upload.

Very simualar to that described here:
http://libtorrent.rakshasa.no/ticket/324

The strace looks somehow different then yours, Kevin. Maybe you hit something 
unrelated to that.

Chris, please could you consider to build a new package from the recommended 
'unstable release' ?


Comment 4 Kevin Fenzi 2006-09-21 21:43:48 UTC
I would be happy to test a newer version here and see if the problem persists. 
It always happens after the download finishes, so it might be the same issue...

Comment 5 Thomas Springer 2006-09-21 22:27:39 UTC
(In reply to comment #4)
> I would be happy to test a newer version here and see if the problem persists.
+1
 
> It always happens after the download finishes, so it might be the same issue...
Not immediately after the download finishes, but when the hash check reaches 100 
percent. There is an option in .rtorrent.rc(check_hash = no) which seems to 
disable this operation, but that is commented out. I just uncommented it and 
started a new file transfer.

Meanwhile I also found a newer version in the fc-devel-extras repo. I will try to 
rebuild the SRPM for fc5 over the weekend and will report success/failure here.


Comment 6 Chris Chabot 2006-09-22 07:23:57 UTC
Looking @ the changelogs of rtorrent and libtorrent it would seem these have
been fixed upstream, i'll push the new versions (rtorrent 0.6.2 and libtorrent
0.10.2) over the weekend to fc5 and devel.

If the problem still persists after this (i'll check up on it too) i'll try to
work with the upstream maintainer to get it fixed

Comment 7 Chris Chabot 2006-09-29 10:35:39 UTC
libtorrent 0.10.2 and rtorrent 0.6.2 have been pushed and build for the fc4, fc5
and devel branches.. Reportedly this should fix the described errors.

Packages should hit the extra's repos 'any time soon' (as soon as their signed)

Comment 8 Chris Chabot 2006-10-01 13:50:52 UTC
No feedback from the original reporter(s) yet, however the recently pushed
updates fixed the problem here locally .. so closing the bug for now.

Please re-open if the problem pertains

Comment 9 Thomas Springer 2006-10-03 12:40:12 UTC
rTorrent 0.6.2 - libTorrent 0.10.2 is running fine...Thanks.

Comment 10 Kevin Fenzi 2006-10-03 19:13:46 UTC
I can confirm that it's working fine here too. 
Thanks for the fix. :) 


Note You need to log in before you can comment on or make changes to this bug.