[PyKDE] Segmentation faults in pyqt

Diez B. Roggisch deets at web.de
Sun Jun 20 16:27:01 BST 2004


>
> libsip is SIP v3, not v4.

Yes, I currently used the debian packages, which are sip 3.10.1  and pyqt 3.11

In the meantime, I created a debug-builds of python 2.3.4, sip 4 rc4  and pyqt 
3.12

Still the same problem - so it appears to me that the problem is not something 
stale lying around.

When I gdb tut3.py (Unfortunately I'm no gdb expert - not anymore, at 
least...) I get a segfault with this stack:

#0  0x41c84829 in _Xutf8DefaultDrawImageString () 
from /usr/X11R6/lib/X11/locale/lib/common/xomGeneric.so.2
#1  0x41c84f73 in _Xutf8DefaultDrawImageString () 
from /usr/X11R6/lib/X11/locale/lib/common/xomGeneric.so.2
#2  0x41c851ea in _Xutf8DefaultDrawImageString () 
from /usr/X11R6/lib/X11/locale/lib/common/xomGeneric.so.2
#3  0x41c8552f in _Xutf8DefaultDrawImageString () 
from /usr/X11R6/lib/X11/locale/lib/common/xomGeneric.so.2
#4  0x41c85868 in _Xutf8DefaultDrawImageString () 
from /usr/X11R6/lib/X11/locale/lib/common/xomGeneric.so.2
#5  0x41c85e09 in destroy_fontdata () 
from /usr/X11R6/lib/X11/locale/lib/common/xomGeneric.so.2
#6  0x4142f461 in XCreateOC () from /usr/X11R6/lib/libX11.so.6
#7  0x4142e7f5 in XCreateFontSet () from /usr/X11R6/lib/libX11.so.6
#8  0x40d71345 in QMapPrivate<QFont::Script, QString>::clear () 
from /usr/lib/libqt-mt.so.3
#9  0x40d71fe1 in QInputContext::QInputContext () from /usr/lib/libqt-mt.so.3
#10 0x40d9122c in QWidget::createInputContext () from /usr/lib/libqt-mt.so.3
#11 0x40d58798 in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
#12 0x40d6e7d4 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#13 0x40dd7498 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#14 0x40dd7348 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#15 0x40dc3d51 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#16 0x40a04027 in meth_QApplication_exec_loop (sipSelf=0x41beed6c, 
sipArgs=0x401a5034) at sipqtpart0.cpp:426590
#17 0x0810ea96 in PyCFunction_Call (func=0x4021137c, arg=0x401a5034, kw=0x0) 
at Objects/methodobject.c:73
#18 0x080c38d0 in call_function (pp_stack=0xbffff784, oparg=0) at 
Python/ceval.c:3439
#19 0x080bffe6 in eval_frame (f=0x8166d1c) at Python/ceval.c:2116
#20 0x080c1de6 in PyEval_EvalCodeEx (co=0x401fd658, globals=0x401c1df4, 
locals=0x401c1df4, args=0x0, argcount=0,
    kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at 
Python/ceval.c:2663
#21 0x080ba6ac in PyEval_EvalCode (co=0x401fd658, globals=0x401c1df4, 
locals=0x401c1df4) at Python/ceval.c:537
#22 0x080e87a2 in run_node (n=0x401b9348, filename=0xbffffb84 
"examples3/tut3.py", globals=0x401c1df4,
    locals=0x401c1df4, flags=0xbffff958) at Python/pythonrun.c:1267
#23 0x080e8745 in run_err_node (n=0x401b9348, filename=0xbffffb84 
"examples3/tut3.py", globals=0x401c1df4,
    locals=0x401c1df4, flags=0xbffff958) at Python/pythonrun.c:1254
#24 0x080e8707 in PyRun_FileExFlags (fp=0x8155008, filename=0xbffffb84 
"examples3/tut3.py", start=257,
    globals=0x401c1df4, locals=0x401c1df4, closeit=1, flags=0xbffff958) at 
Python/pythonrun.c:1245
#25 0x080e7493 in PyRun_SimpleFileExFlags (fp=0x8155008, filename=0xbffffb84 
"examples3/tut3.py", closeit=1,
    flags=0xbffff958) at Python/pythonrun.c:862
#26 0x080e6cb7 in PyRun_AnyFileExFlags (fp=0x8155008, filename=0xbffffb84 
"examples3/tut3.py", closeit=1,
    flags=0xbffff958) at Python/pythonrun.c:659
#27 0x08055683 in Py_Main (argc=2, argv=0xbffffa34) at Modules/main.c:415
#28 0x08054e36 in main (argc=2, argv=0xbffffa34) at Modules/python.c:23


Googling gave me only one message from nov 2003 that stated a problem with 
ui-designer - nothing more so far.

Does this give you an idea? 

I also get a segfault when starting qt designer:

deets at tequila:~/software/archives/PyQt-x11-gpl-3.12$ designer-qt3
KThemeStyle cache seems corrupt!

Segmentation fault

I wanted to chekt that to verify the message mentioned above - but this seems 
to be a different problem. I'll try to fix that one, too.

Regards,

Diez




More information about the PyQt mailing list