[PyKDE] Segmentation fault...
Rob Hooft
Rob.Hooft at nonius.nl
Tue Nov 20 10:51:18 GMT 2001
I get a segmentation fault deep in Qt running from PyQt. This happens
once in a while (I have to keep on redoing the same operations in the
GUI until it crashes. Sometimes it happens first time around, sometimes
it takes 10 tries before it crashes). Is there any chance I can find out
what is going wrong here?
Program received signal SIGSEGV, Segmentation fault.
0x40890ad9 in QWidget::focusProxy ()
from /usr/local/bn/qt-x11-commercial-US-3.0.0/lib/libqt.so.3
(gdb) where
#0 0x40890ad9 in QWidget::focusProxy ()
from /usr/local/bn/qt-x11-commercial-US-3.0.0/lib/libqt.so.3
#1 0x40890e4e in QWidget::focusNextPrevChild ()
from /usr/local/bn/qt-x11-commercial-US-3.0.0/lib/libqt.so.3
#2 0x405ad8e3 in sipQDialog::focusNextPrevChild ()
from /usr/local/bn/lib/python2.1/site-packages/libqtcmodule.so
#3 0x40890ddd in QWidget::focusNextPrevChild ()
from /usr/local/bn/qt-x11-commercial-US-3.0.0/lib/libqt.so.3
#4 0x403b7263 in sipQVBox::focusNextPrevChild ()
from /usr/local/bn/lib/python2.1/site-packages/libqtcmodule.so
#5 0x40890ddd in QWidget::focusNextPrevChild ()
from /usr/local/bn/qt-x11-commercial-US-3.0.0/lib/libqt.so.3
#6 0x403ac6f3 in sipQVGroupBox::focusNextPrevChild ()
from /usr/local/bn/lib/python2.1/site-packages/libqtcmodule.so
#7 0x40890ddd in QWidget::focusNextPrevChild ()
from /usr/local/bn/qt-x11-commercial-US-3.0.0/lib/libqt.so.3
#8 0x4051dd33 in sipQHBox::focusNextPrevChild ()
from /usr/local/bn/lib/python2.1/site-packages/libqtcmodule.so
#9 0x40890ddd in QWidget::focusNextPrevChild ()
from /usr/local/bn/qt-x11-commercial-US-3.0.0/lib/libqt.so.3
#10 0x404edee3 in sipQLabel::focusNextPrevChild ()
from /usr/local/bn/lib/python2.1/site-packages/libqtcmodule.so
#11 0x40893152 in QWidget::showEvent ()
from /usr/local/bn/qt-x11-commercial-US-3.0.0/lib/libqt.so.3
#12 0x404edc8a in sipQLabel::showEvent ()
from /usr/local/bn/lib/python2.1/site-packages/libqtcmodule.so
#13 0x40892c75 in QWidget::event ()
from /usr/local/bn/qt-x11-commercial-US-3.0.0/lib/libqt.so.3
#14 0x404ed817 in sipQLabel::event ()
from /usr/local/bn/lib/python2.1/site-packages/libqtcmodule.so
#15 0x40818d6f in QApplication::internalNotify ()
from /usr/local/bn/qt-x11-commercial-US-3.0.0/lib/libqt.so.3
#16 0x40818c21 in QApplication::notify ()
from /usr/local/bn/qt-x11-commercial-US-3.0.0/lib/libqt.so.3
#17 0x405e01a0 in sipQApplication::notify ()
from /usr/local/bn/lib/python2.1/site-packages/libqtcmodule.so
#18 0x40891e1a in QWidget::show ()
from /usr/local/bn/qt-x11-commercial-US-3.0.0/lib/libqt.so.3
#19 0x404eeef8 in sipQLabel::show ()
from /usr/local/bn/lib/python2.1/site-packages/libqtcmodule.so
#20 0x40891d04 in QWidget::show ()
from /usr/local/bn/qt-x11-commercial-US-3.0.0/lib/libqt.so.3
#21 0x4051ed48 in sipQHBox::show ()
from /usr/local/bn/lib/python2.1/site-packages/libqtcmodule.so
#22 0x40891d04 in QWidget::show ()
from /usr/local/bn/qt-x11-commercial-US-3.0.0/lib/libqt.so.3
#23 0x403ad708 in sipQVGroupBox::show ()
from /usr/local/bn/lib/python2.1/site-packages/libqtcmodule.so
#24 0x40891d04 in QWidget::show ()
from /usr/local/bn/qt-x11-commercial-US-3.0.0/lib/libqt.so.3
#25 0x403b8278 in sipQVBox::show ()
from /usr/local/bn/lib/python2.1/site-packages/libqtcmodule.so
#26 0x40891d04 in QWidget::show ()
from /usr/local/bn/qt-x11-commercial-US-3.0.0/lib/libqt.so.3
#27 0x40991a49 in QDialog::show ()
from /usr/local/bn/qt-x11-commercial-US-3.0.0/lib/libqt.so.3
#28 0x405b1848 in sipDo_QDialog_show ()
from /usr/local/bn/lib/python2.1/site-packages/libqtcmodule.so
#29 0x8059765 in call_cfunction (func=0x836ac70, arg=0x80e0204, kw=0x0)
at Python/ceval.c:2847
#30 0x8059660 in call_object (func=0x836ac70, arg=0x80e0204, kw=0x0)
at Python/ceval.c:2801
#31 0x8059d11 in do_call (func=0x836ac70, pp_stack=0xbffdb2a0, na=0, nk=0)
at Python/ceval.c:3116
#32 0x8058268 in eval_code2 (co=0x81c1828, globals=0x81bf3d4, locals=0x0,
args=0x87b3f9c, argcount=1, kws=0x87b3fa0, kwcount=0, defs=0x0,
defcount=0, closure=0x0) at Python/ceval.c:1948
#33 0x8059aa7 in fast_function (func=0x81bf0a4, pp_stack=0xbffdb3a8, n=1,
na=1, nk=0) at Python/ceval.c:3015
q
(gdb) disass
Dump of assembler code for function focusProxy__C7QWidget:
0x40890acc <focusProxy__C7QWidget>: push %ebp
0x40890acd <focusProxy__C7QWidget+1>: mov %esp,%ebp
0x40890acf <focusProxy__C7QWidget+3>: mov 0x8(%ebp),%eax
0x40890ad2 <focusProxy__C7QWidget+6>: mov 0x70(%eax),%eax
0x40890ad5 <focusProxy__C7QWidget+9>: test %eax,%eax
0x40890ad7 <focusProxy__C7QWidget+11>:
je 0x40890ae0 <focusProxy__C7QWidget+20>
0x40890ad9 <focusProxy__C7QWidget+13>: mov 0xc(%eax),%eax
0x40890adc <focusProxy__C7QWidget+16>:
jmp 0x40890ae2 <focusProxy__C7QWidget+22>
0x40890ade <focusProxy__C7QWidget+18>: mov %esi,%esi
0x40890ae0 <focusProxy__C7QWidget+20>: xor %eax,%eax
0x40890ae2 <focusProxy__C7QWidget+22>: leave
0x40890ae3 <focusProxy__C7QWidget+23>: ret
End of assembler dump.
--
Rob W.W. Hooft <rob.hooft at nonius.nl>
R&D, Bruker Nonius BV, Delft http://www.nonius.nl/
More information about the PyQt
mailing list