Page 2 of 2

Re: recent svn segmentation fault

Posted: Thu Aug 02, 2007 7:17 am
by daddy
Unfortunately that's not it... When I said "fresh checkout", I meant completely. `rm -rf deluge && svn checkout ... deluge && cd deluge && make`. No build folder. Just did it again to double-check.

Thanks for trying, though :)

Re: recent svn segmentation fault

Posted: Thu Aug 02, 2007 10:22 am
by scrapmetal
same problem in 1226
the rc works tho, but the preferences button is dead and the pieces plugin completely freezes the deluge gui

Re: recent svn segmentation fault

Posted: Thu Aug 02, 2007 12:20 pm
by shirish
unfortunate to hear that. Daddy & scrapmetal, if you guys have the time in your profile add your signature which has details about the distro. which you guys use so the developers can see that. Earlier somebody had some issues in Cent OS & from whatever discussion or whatever happened markybob did apply a patch about CentOS support. http://dev.deluge-torrent.org/changeset/1203 not saying good or bad, simply saying its better as if many people having the same distro. have the same segmentation fault issue then it will be easier for somebody to spot something or tell something.

I dunno about deluge development or troubleshooting for that matter. Just trying to help, that's all.

Re: recent svn segmentation fault

Posted: Thu Aug 02, 2007 1:30 pm
by scrapmetal
point taken and sig added :)

Re: recent svn segmentation fault

Posted: Fri Aug 03, 2007 7:22 am
by daddy
Used valgrind to find the problem. Fix:

Code: Select all

Index: src/deluge_core.cpp
===================================================================
--- src/deluge_core.cpp (revision 1249)
+++ src/deluge_core.cpp (working copy)
@@ -376,7 +376,7 @@
 
     M_ses->add_extension(&libtorrent::create_metadata_plugin);
 
-    M_constants = Py_BuildValue("{s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i}",
+    M_constants = Py_BuildValue("{s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i,s:i}",
         "EVENT_NULL",                         EVENT_NULL,
         "EVENT_FINISHED",                     EVENT_FINISHED,
         "EVENT_PEER_ERROR",                   EVENT_PEER_ERROR,
Which explains why it was appearing so unreliably.

Re: recent svn segmentation fault

Posted: Fri Aug 03, 2007 9:21 am
by scrapmetal
nice job finding the problem and fixing it in deluge. 1252 works and so far seems stable too
:D