Bug 250694 - deluge crashes frequently
Summary: deluge crashes frequently
Alias: None
Product: Fedora
Classification: Fedora
Component: deluge
Version: 7
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Peter Gordon
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2007-08-02 22:07 UTC by Sertaç Ö. Yıldız
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version: 0.5.5-2.fc7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2007-10-08 04:23:03 UTC

Attachments (Terms of Use)
backtrace (6.16 KB, text/plain)
2007-08-02 22:07 UTC, Sertaç Ö. Yıldız
no flags Details
same segfault with more debuginfo (6.53 KB, application/octet-stream)
2007-08-03 14:31 UTC, Sertaç Ö. Yıldız
no flags Details

Description Sertaç Ö. Yıldız 2007-08-02 22:07:30 UTC
Backtrace attached.

In case it is related to the crash: I have a 4GB iso in download queue, and
"compact allocation" is selected in preferences.

Version-Release number of selected component (if applicable):

Comment 1 Sertaç Ö. Yıldız 2007-08-02 22:07:30 UTC
Created attachment 160557 [details]

Comment 2 Peter Gordon 2007-08-02 22:25:12 UTC
Thanks for your bug report, and the stacktrace.

Unfortunately, the stacktrace alone is not enough to tell me where it is
failing. How did you create this stacktrace with GDB? Please try again with
"thread apply all bt full" to give me the variables and other data items which
would allow me to further debug this.

Also, your stacktrace is missing a few items which _might_ help further. If it's
not too much trouble for you, please install the pygtk2 and boost debuginfo
packages. This can be done by installing the 'yum-utils' package and running
"debuginfo-install pygtk2 boost" as root.


Comment 3 Peter Gordon 2007-08-02 22:37:41 UTC
Addendum to my previous comment: Can you provide a sample torrent that would
allow me to reproduce this? I'll try it with the Fedora-7-x86_64 torrent (3.4
GB) but I don't know if that's large enough to cause the problem. Thanks.

Comment 4 Sertaç Ö. Yıldız 2007-08-02 23:00:48 UTC
Boost and pygtk are pulling over 130MB debuginfo, will be hard to download
today. But what I'm seeing is probably http://dev.deluge-torrent.org/ticket/444
(see thread #5 from my trace). Also there are better traces at libtorrent bug
tracker which are linked on the URL above.

btw, it crashes with with f7-i386 (2.8G) torrent too. So annoying that I'm
running it in a while loop :)

Comment 5 Peter Gordon 2007-08-02 23:36:43 UTC
Yeah, I understand about the huge debuginfo dependencies; that's acceptable. 

Thanks for the upstream ticket link; It seems that it's fixed in upstream
rb_libtorrent SVN r1417; so I'll use that as a base and try to patch the
Deluge-internal copy which may fix this. 

Comment 6 Peter Gordon 2007-08-03 01:32:21 UTC
Hello again. :)

I've added the patch from the the upstream libtorrent Subversion ticket and it
seems to cause no regressions. However, I can't reproduce your original issue
anyway, so I can't tell if this indeed fixes it.

Would you please try it out and let me know if it fixes it for you? The binary
(x86_64, i386) and source RPMs are on my webspace:

(If you are using PPC or another arch, you'll need to rebuild it from the source
RPM, as I only have access to x86-capable hardware currently. Apologies for any
inconvenience that this may cause.)

The packages are signed with my GPG key, which is also on my webspace:

If it does indeed fix the segfaults, I'll push it as an update through the build


Comment 7 Sertaç Ö. Yıldız 2007-08-03 14:31:10 UTC
Created attachment 160614 [details]
same segfault with more debuginfo

Thanks for the prompt response!

It still crashes, though not as often.

Comment 8 Peter Gordon 2007-08-05 02:51:52 UTC
Thanks for the new backtrace; it helps a bit.

Maybe it's a plugin that causes this? Which ones do you have enabled and what
non-default settings are you using that might be suspect in this?

This will help me configure mine in a similar fashion, and hopefully make this
far more reproducible on my machine.

Comment 9 Sertaç Ö. Yıldız 2007-08-05 03:50:07 UTC
I'm using only the network graph plugin. Network related settings are the
defaults, only the compact storage allocation option set.

I'll try with the changes here: http://code.rasterbar.com/libtorrent/changeset/1429

That should fix this according to libtorrent ticket 94.

Comment 10 Peter Gordon 2007-08-05 04:04:36 UTC
Hmm. Yes, please let me know if that changeset fixes your issue. If so I'll add
that as a patch to the package in Fedora CVS. 

Comment 11 Sertaç Ö. Yıldız 2007-08-07 03:36:21 UTC
FYI: applying above changeset to the rpm you provided fixed the crashes.

Comment 12 Peter Gordon 2007-10-07 07:52:21 UTC
Great, thanks for the confirmation, Sertaç. I'll add that as a patch in new update. 

Comment 13 Peter Gordon 2007-10-08 04:23:03 UTC
On further investigation, Deluge 0.5.5 already includes this patch; so I'll
close this bug as RESOLVED since that's already in testing (should be pushed to
stable soon).

Thanks for the bug report; please reopen this if the problem persists.

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