[Eric] eric4 segfaults at loading project

Christof Hanke hanke at rzg.mpg.de
Thu Aug 16 06:25:30 BST 2007


Terve,

it's me again,
even the newest versions of everything I could get segfaulted in sip
reproducibly.  This helped me finding a "workaround" :
by applying the patch below, it doesn't crash anymore.
But searching the web for "0xdbdbdbdb" and python suggests,
the maybe some refcounters are wrong ?
I might try later this week to get the crashing project-file as small as
possible, if that's of any help. Full blown tracebacks are also available.

HTH,

Christof



Version Numbers:
Python 2.5.1
Qt 4.3.0
PyQt4 4.3
sip 4.7
QScintilla 2-snapshot-20070722
eric4 4.1-snapshot-20070813 (r1433)
Platform: linux2
2.5.1 (r251:54863, Aug 7 2007, 09:13:17)
[GCC 4.1.2 20061115 (prerelease) (SUSE Linux)]

--- siplib/objmap.old.c 2007-08-16 08:15:13.000000000 +0300
+++ siplib/objmap.c     2007-08-16 08:05:55.000000000 +0300
@@ -156,7 +156,7 @@

             he->first = NULL;

-            while (w != NULL)
+            while (w != NULL & w != 0xdbdbdbdb)  /* hack!? 0xdbdbdbd
usually means that it's freed mem */
             {
                 /* We are removing it from the map here. */
                 sipSetNotInMap(w);


More information about the Eric mailing list