[PyQt] segfaults in a couple libraries with sip 4.7.6 and pyqt4
4.4.2 on linux
Erick Tryzelaar
idadesub at users.sourceforge.net
Sat May 24 02:10:09 BST 2008
We're running fedora core 5, and we're getting some segfaults when we
try to import the following libraries: PyQt.Qt, PyQt4.QtHelp,
PyQt4.QtOpenGL, PyQt4.QtSql, and PyQt4.QtSvg. The others work fine.
This is happening with python 2.4, qt 4.4.0, sip 4.7.6, and pyqt4
4.4.2.
Here's a stack trace for "python -c 'import PyQt4.QtHelp'":
#0 0x00002aaab479509b in ?? () from /usr/lib64/python2.4/site-packages/sip.so
#1 0x00002aaab479e2bf in initsip () from
/usr/lib64/python2.4/site-packages/sip.so
#2 0x00002aaaaf7c4435 in sip_init_QtHelp () at sipQtHelpcmodule.cpp:215
#3 0x00002aaaaf8ae973 in sip_init (arg=Variable "arg" is not available.
) at sip_qtcmodule.cpp:9741
#4 0x00002aaaaabfc7e0 in PyObject_Call () from /usr/lib64/libpython2.4.so.1.0
#5 0x00002aaaaabfd2ac in PyObject_CallMethod () from
/usr/lib64/libpython2.4.so.1.0
#6 0x00002aaaaec1a694 in initQtHelp () at sipQtHelpcmodule.c:56
#7 0x00002aaaaac7390d in _PyImport_LoadDynamicModule () from
/usr/lib64/libpython2.4.so.1.0
#8 0x00002aaaaac71e4d in PyImport_ReloadModule () from
/usr/lib64/libpython2.4.so.1.0
#9 0x00002aaaaac722cc in PyImport_ReloadModule () from
/usr/lib64/libpython2.4.so.1.0
#10 0x00002aaaaac72511 in PyImport_ImportModuleEx () from
/usr/lib64/libpython2.4.so.1.0
#11 0x00002aaaaac52fb3 in _PyBuiltin_Init () from /usr/lib64/libpython2.4.so.1.0
#12 0x00002aaaaabfc7e0 in PyObject_Call () from /usr/lib64/libpython2.4.so.1.0
#13 0x00002aaaaac55f4d in PyEval_CallObjectWithKeywords () from
/usr/lib64/libpython2.4.so.1.0
#14 0x00002aaaaac57d01 in PyEval_EvalFrame () from
/usr/lib64/libpython2.4.so.1.0
#15 0x00002aaaaac5c485 in PyEval_EvalCodeEx () from
/usr/lib64/libpython2.4.so.1.0
#16 0x00002aaaaac5c4d2 in PyEval_EvalCode () from /usr/lib64/libpython2.4.so.1.0
#17 0x00002aaaaac788e9 in Py_CompileString () from
/usr/lib64/libpython2.4.so.1.0
#18 0x00002aaaaac7a1a7 in PyRun_InteractiveOneFlags () from
/usr/lib64/libpython2.4.so.1.0
#19 0x00002aaaaac7a29e in PyRun_InteractiveLoopFlags () from
/usr/lib64/libpython2.4.so.1.0
#20 0x00002aaaaac7a3ac in PyRun_AnyFileExFlags () from
/usr/lib64/libpython2.4.so.1.0
#21 0x00002aaaaac801ed in Py_Main () from /usr/lib64/libpython2.4.so.1.0
#22 0x00002aaaab2b6e54 in __libc_start_main () from /lib64/libc.so.6
#23 0x0000000000400659 in _start ()
#24 0x00007fff4d2099a8 in ?? ()
#25 0x0000000000000000 in ?? ()
And one for "python -c "import PyQt4.QtSvg'":
#0 0x00002aaab479509b in ?? () from /usr/lib64/python2.4/site-packages/sip.so
#1 0x00002aaab479e2bf in initsip () from
/usr/lib64/python2.4/site-packages/sip.so
#2 0x00002aaaaf8610f5 in sip_init_QtSvg () at sipQtSvgcmodule.cpp:214
#3 0x00002aaaaf8ae973 in sip_init (arg=Variable "arg" is not available.
) at sip_qtcmodule.cpp:9741
#4 0x00002aaaaabfc7e0 in PyObject_Call () from /usr/lib64/libpython2.4.so.1.0
#5 0x00002aaaaabfd2ac in PyObject_CallMethod () from
/usr/lib64/libpython2.4.so.1.0
#6 0x00002aaaaec1a694 in initQtSvg () at sipQtSvgcmodule.c:56
#7 0x00002aaaaac7390d in _PyImport_LoadDynamicModule () from
/usr/lib64/libpython2.4.so.1.0
#8 0x00002aaaaac71e4d in PyImport_ReloadModule () from
/usr/lib64/libpython2.4.so.1.0
#9 0x00002aaaaac722cc in PyImport_ReloadModule () from
/usr/lib64/libpython2.4.so.1.0
#10 0x00002aaaaac72511 in PyImport_ImportModuleEx () from
/usr/lib64/libpython2.4.so.1.0
#11 0x00002aaaaac52fb3 in _PyBuiltin_Init () from /usr/lib64/libpython2.4.so.1.0
#12 0x00002aaaaabfc7e0 in PyObject_Call () from /usr/lib64/libpython2.4.so.1.0
#13 0x00002aaaaac55f4d in PyEval_CallObjectWithKeywords () from
/usr/lib64/libpython2.4.so.1.0
#14 0x00002aaaaac57d01 in PyEval_EvalFrame () from
/usr/lib64/libpython2.4.so.1.0
#15 0x00002aaaaac5c485 in PyEval_EvalCodeEx () from
/usr/lib64/libpython2.4.so.1.0
#16 0x00002aaaaac5c4d2 in PyEval_EvalCode () from /usr/lib64/libpython2.4.so.1.0
#17 0x00002aaaaac788e9 in Py_CompileString () from
/usr/lib64/libpython2.4.so.1.0
#18 0x00002aaaaac7a1a7 in PyRun_InteractiveOneFlags () from
/usr/lib64/libpython2.4.so.1.0
#19 0x00002aaaaac7a29e in PyRun_InteractiveLoopFlags () from
/usr/lib64/libpython2.4.so.1.0
#20 0x00002aaaaac7a3ac in PyRun_AnyFileExFlags () from
/usr/lib64/libpython2.4.so.1.0
#21 0x00002aaaaac801ed in Py_Main () from /usr/lib64/libpython2.4.so.1.0
#22 0x00002aaaab2b6e54 in __libc_start_main () from /lib64/libc.so.6
#23 0x0000000000400659 in _start ()
#24 0x00007fffcbcd9478 in ?? ()
#25 0x0000000000000000 in ?? ()
Things work on the mac though. Any idea what might be going on? We
weren't able to figure out how to get the line numbers in sip.so, so
if you can't figure out what's going on from here, please let us know
how we can turn them on :)
More information about the PyQt
mailing list