[PyQt] segfault, from qt or pyqt?

2010-12-15 Thread Jimmy Hairy
Hello,

I experience somewhat random segfaults when running my program. I ran python 
with gdb and get a backtrace but I don't know what to do now. I can't even 
decide which of Qt or PyQt is the culprit.
My system: Debian sid, with packages python2.6-dbg (2.6.6-6), python-qt4-dbg 
(4.7.3-1+b1), libqt4-dbg (4:4.6.3-4)
(maybe the problem is simply because pyqt and qt versions mismatch on my system)
Despite the "-dbg" packages installed, there are still a few "??" in the trace.

The (big) backtrace:

(gdb) bt
#0  0x0012 in ?? ()
#1  0xb69337d9 in QMetaObject::cast (this=0xb625cfe4, obj=0x8998440)
at kernel/qmetaobject.cpp:266
#2  0xb61fb816 in ?? () from /usr/lib/pymodules/python2.6/PyQt4/QtCore.so
#3  0xb61fb945 in ?? () from /usr/lib/pymodules/python2.6/PyQt4/QtCore.so
#4  0xb69337aa in QMetaObject::metacall (object=0x898b798, 
cl=QMetaObject::InvokeMetaMethod, idx=5, argv=0x8a321a8)
at kernel/qmetaobject.cpp:237
#5  0xb693dd36 in QMetaCallEvent::placeMetaCall (this=0x8998770, object=
0x898b798) at kernel/qobject.cpp:561
#6  0xb693edfe in QObject::event (this=0x898b798, e=0x8998770)
at kernel/qobject.cpp:1248
#7  0xb6b9e5cc in QApplicationPrivate::notify_helper (this=0x8480a10, receiver=
0x898b798, e=0x8998770) at kernel/qapplication.cpp:4302
#8  0xb6ba515e in QApplication::notify (this=0x850c080, receiver=0x898b798, e=
0x8998770) at kernel/qapplication.cpp:3706
#9  0xb78a320f in ?? () from /usr/lib/pymodules/python2.6/PyQt4/QtGui.so
#10 0xb692e4cb in QCoreApplication::notifyInternal (this=0x850c080, receiver=
0x898b798, event=0x8998770) at kernel/qcoreapplication.cpp:726
#11 0xb6931f2c in sendEvent (receiver=0x0, event_type=0, data=0x82ccfe0)
at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#12 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, 
data=0x82ccfe0) at kernel/qcoreapplication.cpp:1367
---Type  to continue, or q  to quit---
#13 0xb69320ad in QCoreApplication::sendPostedEvents (receiver=0x0, 
event_type=0) at kernel/qcoreapplication.cpp:1260
#14 0xb695a57f in sendPostedEvents (s=0x836fa10)
at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#15 postEventSourceDispatch (s=0x836fa10)
at kernel/qeventdispatcher_glib.cpp:276
#16 0xb65dc305 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#17 0xb65dffe8 in ?? () from /lib/libglib-2.0.so.0
#18 0xb65e01c8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#19 0xb695a075 in QEventDispatcherGlib::processEvents (this=0x829aba8, 
flags=...) at kernel/qeventdispatcher_glib.cpp:412
#20 0xb6c5ced5 in QGuiEventDispatcherGlib::processEvents (this=0x829aba8, 
flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#21 0xb692cae9 in QEventLoop::processEvents (this=0xbfffef84, flags=DWARF-2 
expression error: DW_OP_reg operations must be used either alone or in 
conjuction with DW_OP_piece or DW_OP_bit_piece.
)
at kernel/qeventloop.cpp:149
#22 0xb692cf3a in QEventLoop::exec (this=0xbfffef84, flags=...)
at kernel/qeventloop.cpp:201
#23 0xb693216f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#24 0xb6b9e667 in QApplication::exec () at kernel/qapplication.cpp:3581
#25 0xb78a3da8 in ?? () from /usr/lib/pymodules/python2.6/PyQt4/QtGui.so
#26 0x080e0721 in call_function (f=
Frame 0x82e7ffc, for file prog/guis/tags4/app.py, line 115, in  (), 
throwflag=0) at ../Python/ceval.c:3750
---Type  to continue, or q  to quit---
#27 PyEval_EvalFrameEx (f=
Frame 0x82e7ffc, for file prog/guis/tags4/app.py, line 115, in  (), 
throwflag=0) at ../Python/ceval.c:2412
#28 0x080e2507 in PyEval_EvalCodeEx (co=0xb7c2f698, globals=
{'QAbstractButton': , 
'QSizePolicy': , 'qFatal': 
, 'QMatrix3x4': , 'QMatrix3x3': , 'QMatrix3x2': , 
'QGraphicsColorizeEffect': , 
'qRound64': , 'QSizeGrip': 
, 'QStyleOptionComboBox': 
, 'QX11Info': 
, 'QAbstractSpinBox': 
, 'QTreeView': 
, 'qFuzzyCompare': , 'QFontComboBox': , 'QGraphicsTextItem': , 
'QSizePolicy': , 'qFatal': 
, 'QMatrix3x4': , 'QMatrix3x3': , 'QMatrix3x2': , 
'QGraphicsColorizeEff---Type  to continue, or q  to quit---
ect': , 'qRound64': , 'QSizeGrip': , 'QStyleOptionComboBox': , 'QX11Info': , 
'QAbstractSpinBox': , 
'QTreeView': , 
'qFuzzyCompare': , 'QFontComboBox': 
, 'QGraphicsTextItem': 
, 
'QSizePolicy': , 'qFatal': 
, 'QMatrix3x4': , 'QMatrix3x3': , 'QMatrix3x2': , 
'QGraphicsColorizeEffect': , 
'qRound64': , 'QSizeGrip': 
, 'QStyleOptionComboBox': 
, 'QX11Info': 
, 'QAbstractSpinBox': 
, 'QTreeView': 
, 'qFuzzyCompare': , 'QFontComboBox':  to continue, 
 or q  to quit---
>, 'QGraphicsTextItem': 0x83...(truncated), locals=
{'QAbstractButton': , 
'QSizePolicy': , 'qFatal': 
, 'QMatrix3x4': , 'QMatrix3x3': , 'QMatrix3x2': , 
'QGraphicsColorizeEffect': , 
'qRound64': , 'QSizeGrip': 
, 'QStyleOptionComboBox': 
, 'QX11Info': 
, 'QAbstractSpinBox': 
, 'QTreeView': 
, 'qFuzzyCompare': , 'QFontComboBox': , 'QGraphicsTextItem': , 
'QSizePolicy': , 'qFatal': 
, 'QMa

Re: [PyQt] segfault, from qt or pyqt?

2010-12-15 Thread Hans-Peter Jansen
On Wednesday 15 December 2010, 12:16:23 Jimmy Hairy wrote:
> Hello,
>
> I experience somewhat random segfaults when running my program. I ran
> python with gdb and get a backtrace but I don't know what to do now.
> I can't even decide which of Qt or PyQt is the culprit. My system:
> Debian sid, with packages python2.6-dbg (2.6.6-6), python-qt4-dbg
> (4.7.3-1+b1), libqt4-dbg (4:4.6.3-4) (maybe the problem is simply
> because pyqt and qt versions mismatch on my system)

No, Qt and PyQt versions are expected to mismatch, as long as the PyQt 
version is greater than the Qt version.. 

> Despite the 
> "-dbg" packages installed, there are still a few "??" in the trace.

Your backtrace suffers from a libqt4 vs. libqt4-dbg mismatch, that 
renders it somewhat useless.. Please fix and repost.

Pete

> The (big) backtrace:
>
> (gdb) bt
> #0  0x0012 in ?? ()
> #1  0xb69337d9 in QMetaObject::cast (this=0xb625cfe4, obj=0x8998440)
> at kernel/qmetaobject.cpp:266
> #2  0xb61fb816 in ?? () from
> /usr/lib/pymodules/python2.6/PyQt4/QtCore.so #3  0xb61fb945 in ?? ()
> from /usr/lib/pymodules/python2.6/PyQt4/QtCore.so #4  0xb69337aa in
> QMetaObject::metacall (object=0x898b798,
> cl=QMetaObject::InvokeMetaMethod, idx=5, argv=0x8a321a8)
> at kernel/qmetaobject.cpp:237
> #5  0xb693dd36 in QMetaCallEvent::placeMetaCall (this=0x8998770,
> object= 0x898b798) at kernel/qobject.cpp:561
> #6  0xb693edfe in QObject::event (this=0x898b798, e=0x8998770)
> at kernel/qobject.cpp:1248
> #7  0xb6b9e5cc in QApplicationPrivate::notify_helper (this=0x8480a10,
> receiver= 0x898b798, e=0x8998770) at kernel/qapplication.cpp:4302
> #8  0xb6ba515e in QApplication::notify (this=0x850c080,
> receiver=0x898b798, e= 0x8998770) at kernel/qapplication.cpp:3706
> #9  0xb78a320f in ?? () from
> /usr/lib/pymodules/python2.6/PyQt4/QtGui.so #10 0xb692e4cb in
> QCoreApplication::notifyInternal (this=0x850c080, receiver=
> 0x898b798, event=0x8998770) at kernel/qcoreapplication.cpp:726 #11
> 0xb6931f2c in sendEvent (receiver=0x0, event_type=0, data=0x82ccfe0)
> at
> ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
> #12 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0,
> event_type=0, data=0x82ccfe0) at kernel/qcoreapplication.cpp:1367
> ---Type  to continue, or q  to quit---
> #13 0xb69320ad in QCoreApplication::sendPostedEvents (receiver=0x0,
> event_type=0) at kernel/qcoreapplication.cpp:1260
> #14 0xb695a57f in sendPostedEvents (s=0x836fa10)
> at
> ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
> #15 postEventSourceDispatch (s=0x836fa10)
> at kernel/qeventdispatcher_glib.cpp:276
> #16 0xb65dc305 in g_main_context_dispatch () from
> /lib/libglib-2.0.so.0 #17 0xb65dffe8 in ?? () from
> /lib/libglib-2.0.so.0
> #18 0xb65e01c8 in g_main_context_iteration () from
> /lib/libglib-2.0.so.0 #19 0xb695a075 in
> QEventDispatcherGlib::processEvents (this=0x829aba8, flags=...) at
> kernel/qeventdispatcher_glib.cpp:412
> #20 0xb6c5ced5 in QGuiEventDispatcherGlib::processEvents
> (this=0x829aba8, flags=...) at
> kernel/qguieventdispatcher_glib.cpp:204
> #21 0xb692cae9 in QEventLoop::processEvents (this=0xbfffef84,
> flags=DWARF-2 expression error: DW_OP_reg operations must be used
> either alone or in conjuction with DW_OP_piece or DW_OP_bit_piece. )
> at kernel/qeventloop.cpp:149
> #22 0xb692cf3a in QEventLoop::exec (this=0xbfffef84, flags=...)
> at kernel/qeventloop.cpp:201
> #23 0xb693216f in QCoreApplication::exec () at
> kernel/qcoreapplication.cpp:1003 #24 0xb6b9e667 in QApplication::exec
> () at kernel/qapplication.cpp:3581 #25 0xb78a3da8 in ?? () from
> /usr/lib/pymodules/python2.6/PyQt4/QtGui.so #26 0x080e0721 in
> call_function (f=
> Frame 0x82e7ffc, for file prog/guis/tags4/app.py, line 115, in
>  (), throwflag=0) at ../Python/ceval.c:3750 ---Type 
> to continue, or q  to quit---
> #27 PyEval_EvalFrameEx (f=
> Frame 0x82e7ffc, for file prog/guis/tags4/app.py, line 115, in
>  (), throwflag=0) at ../Python/ceval.c:2412 #28 0x080e2507 in
> PyEval_EvalCodeEx (co=0xb7c2f698, globals= {'QAbstractButton':
> , 'QSizePolicy':
> , 'qFatal':
> , 'QMatrix3x4':
> , 'QMatrix3x3':
> , 'QMatrix3x2':
> ,
> 'QGraphicsColorizeEffect':  0x838b034>, 'qRound64': , 'QSizeGrip':
> ,
> 'QStyleOptionComboBox':  0x83f70cc>, 'QX11Info':  0x841fcdc>, 'QAbstractSpinBox':  remote 0x8375d44>, 'QTreeView':  remote 0x838462c>, 'qFuzzyCompare':  qFuzzyCompare>, 'QFontComboBox':  remote 0x8385e34>, 'QGraphicsTextItem':  .QtCore.pyqtWrapperType at remote 0x83...(truncated), locals=
> {'QAbstractButton':  0x8372294>, 'QSizePolicy':  0x83eedbc>, 'qFatal': , 'QMatrix3x4':
> , 'QMatrix3x3':
> , 'QMatrix3x2':
> ,
> 'QGraphicsColorizeEff---Type  to continue, or q  to
> quit--- ect': ,
> 'qRound64': , 'QSizeGrip':
> ,
> 'QStyleOptionComboBox':  0x83f70cc>, 'QX11Info':  0x841fcdc>, 'QAbstractSpinBox':  remote 0x8375d44>, 'QTreeView':  remote 0x838462c>, 'qFuzzyCompare':  qFuzzyCompare>, 'QFontComboBox':  remote

Re: [PyQt] segfault, from qt or pyqt?

2010-12-16 Thread Jimmy Hairy

--- h...@urpla.net wrote:
<<< 
> Despite the 
> "-dbg" packages installed, there are still a few "??" in the trace.

Your backtrace suffers from a libqt4 vs. libqt4-dbg mismatch, that 
renders it somewhat useless.. Please fix and repost.
>>>

I've just checked, every Qt lib on my system has version 4:4.6.3-4 (same as 
libqt4-dbg)


_
Free webmail at http://mail.d00m.com/
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] segfault, from qt or pyqt?

2010-12-16 Thread Hans-Peter Jansen
On Thursday 16 December 2010, 22:55:24 Jimmy Hairy wrote:
> --- h...@urpla.net wrote:
> <<<
>
> > Despite the
> > "-dbg" packages installed, there are still a few "??" in the trace.
>
> Your backtrace suffers from a libqt4 vs. libqt4-dbg mismatch, that
> renders it somewhat useless.. Please fix and repost.
>
>
> I've just checked, every Qt lib on my system has version 4:4.6.3-4
> (same as libqt4-dbg)

Sorry, my fault. It looks like you're missing the PyQt debug symbols. 

Pete
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] segfault, from qt or pyqt?

2010-12-16 Thread Wolfgang Rohdewald
On Donnerstag 16 Dezember 2010, Hans-Peter Jansen wrote:
> > I've just checked, every Qt lib on my system has version
> > 4:4.6.3-4 (same as libqt4-dbg)
> 
> Sorry, my fault. It looks like you're missing the PyQt debug
> symbols. 

Ubuntu has a problem - it installs the PyQt debug symbols in
the wrong place. Maybe Debian is similar.

https://bugs.launchpad.net/bugs/682874



-- 
Wolfgang
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] segfault, from qt or pyqt?

2010-12-16 Thread Hans-Peter Jansen
On Thursday 16 December 2010, 23:07:07 Hans-Peter Jansen wrote:
> On Thursday 16 December 2010, 22:55:24 Jimmy Hairy wrote:
> > --- h...@urpla.net wrote:
> > <<<
> >
> > > Despite the
> > > "-dbg" packages installed, there are still a few "??" in the
> > > trace.
> >
> > Your backtrace suffers from a libqt4 vs. libqt4-dbg mismatch, that
> > renders it somewhat useless.. Please fix and repost.
> >
> >
> > I've just checked, every Qt lib on my system has version 4:4.6.3-4
> > (same as libqt4-dbg)
>
> Sorry, my fault. It looks like you're missing the PyQt debug symbols.

Also wrong, as higher frames show. I've no idea - looks like some libs 
are compiled in a debug incompatible way (no frames or the like) or 
some other major SNAFU.

Pete
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt