[PyKDE] Debugging a segfault in Linux

Andreas Pakulat apaku at gmx.de
Fri Mar 17 16:43:12 GMT 2006


On 17.03.06 17:14:54, Diez B. Roggisch wrote:
> > Program received signal SIGSEGV, Segmentation fault.
> > [Switching to Thread -1209734944 (LWP 16726)]
> > 0xb7682318 in QObject::parent (this=0xffffffff) at qobject.h:154
> 
> This looks fishy - a "this" with value -1 ist most probably an uninitialized 
> pointer. Try investigating that.

This often happens when deriving from a Qt class and not doing

Q<Blah>.__init__(self)

within the new class' __init__ method. However IIRC Python or sip tells
you then that the underlying C++ Object "vanished".

Andreas

-- 
You'll never see all the places, or read all the books, but fortunately,
they're not all recommended.




More information about the PyQt mailing list