[PyKDE] Re: Threading problem with PyQt4 and Macosx

Matt Newell newellm at blur.com
Fri Feb 23 19:43:37 GMT 2007


> I can reproduce this problem with the latest snapshot.  It seems that the
> main thread is waiting on a semaphore(Qt) for the worker threads while
> holding the python GIL.  The worker threads all get stuck waiting for the
> GIL.
>
> I'm going to compile a debug build and see if i can't figure this out
> further, here is the traces I have now with a release build.
>
> Matt
>

Here's the backtrace for each thread with debug pyqt.  I haven't studied it 
yet.

Matt
-------------- next part --------------
newellm at obsidian:~/test2$ gdb python
GNU gdb 6.5-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run sample.pyw
Starting program: /usr/bin/python sample.pyw
Failed to read a valid object file image from memory.
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1209988448 (LWP 21998)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread -1235154000 (LWP 22001)]
[New Thread -1243542608 (LWP 22002)]
[New Thread -1252271184 (LWP 22015)]
[New Thread -1260659792 (LWP 22016)]
[New Thread -1269048400 (LWP 22017)]
[New Thread -1277437008 (LWP 22018)]
[New Thread -1285825616 (LWP 22019)]
[New Thread -1296041040 (LWP 22020)]
[New Thread -1304429648 (LWP 22021)]
[New Thread -1312818256 (LWP 22022)]
[New Thread -1321206864 (LWP 22023)]

Program received signal SIGINT, Interrupt.
[Switching to Thread -1209988448 (LWP 21998)]
0xb7f78c01 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
(gdb) bt
#0  0xb7f78c01 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
#1  0xb7a5aca1 in QWaitCondition::wait (this=0x8250898, mutex=0x8250890, time=4294967295) at thread/qwaitcondition_unix.cpp:254
#2  0xb7a5706b in QReadWriteLock::lockForWrite (this=0x8253260) at thread/qreadwritelock.cpp:174
#3  0xb7b10fdf in ~QObject (this=0x8371e10) at ../../include/QtCore/../../src/corelib/thread/qreadwritelock.h:122
#4  0xb6ba8c8d in ~QTextDocument (this=0x8371e10) at text/qtextdocument.cpp:302
#5  0xb6cf5673 in QLabelPrivate::clearContents (this=0x837d970) at widgets/qlabel.cpp:1167
#6  0xb6cf5aee in QLabel::setText (this=0x837d660, text=@0x83a57e0) at widgets/qlabel.cpp:314
#7  0xb74b38a3 in meth_QLabel_setText (sipSelf=0xb676ed2c, sipArgs=0xb67ab14c) at sipQtGuiQLabel.cpp:2946
#8  0x080b9485 in PyEval_EvalFrame ()
#9  0x080ba745 in PyEval_EvalCodeEx ()
#10 0x08100b59 in PyClassMethod_New ()
#11 0x080589d7 in PyObject_Call ()
#12 0x0805e28e in PyClass_IsSubclass ()
#13 0x080589d7 in PyObject_Call ()
#14 0x080b3d2d in PyEval_CallObjectWithKeywords ()
#15 0xb7f9dee5 in initsip () from /usr/lib/python2.4/site-packages/sip.so
#16 0xb7c354e9 in PyQtProxy::invokeSlot (slot_conn=@0x8387088, qargs=0xbfb3859c) at sip/QtCore/qobject.sip:1102
#17 0xb7c35e63 in PyQtProxy::unislot (this=0x8387070, qargs=0xbfb3859c) at sip/QtCore/qobject.sip:971
#18 0xb7c35f6f in PyQtProxy::qt_metacall (this=0x8387070, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbfb3859c) at sip/QtCore/qobject.sip:925
#19 0xb7b105b5 in QMetaObject::activate (sender=0x83cfca8, from_signal_index=29, to_signal_index=30, argv=<value optimized out>) at kernel/qobject.cpp:2940
#20 0xb7b10843 in QMetaObject::activate (sender=0x83cfca8, m=0xb6fe3104, from_local_signal_index=2, to_local_signal_index=3, argv=0xbfb3859c) at kernel/qobject.cpp:2992
#21 0xb6e83ea3 in QAbstractButton::clicked (this=0x83cfca8, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:178
#22 0xb6cb156c in QAbstractButtonPrivate::emitClicked (this=0x83970b8) at widgets/qabstractbutton.cpp:517
#23 0xb6cb2d67 in QAbstractButtonPrivate::click (this=0x83970b8) at widgets/qabstractbutton.cpp:510
#24 0xb6cb2f70 in QAbstractButton::mouseReleaseEvent (this=0x83cfca8, e=0xbfb38c94) at widgets/qabstractbutton.cpp:1076
#25 0xb73f93fd in sipQPushButton::mouseReleaseEvent (this=0x83cfca8, a0=0xbfb38c94) at sipQtGuiQPushButton.cpp:330
#26 0xb6a703b3 in QWidget::event (this=0x83cfca8, event=0xbfb38c94) at kernel/qwidget.cpp:5698
#27 0xb6cb1f73 in QAbstractButton::event (this=0x83cfca8, e=0xbfb38c94) at widgets/qabstractbutton.cpp:1038
#28 0xb6d26444 in QPushButton::event (this=0x83cfca8, e=0xbfb38c94) at widgets/qpushbutton.cpp:582
#29 0xb73f43b6 in sipQPushButton::event (this=0x83cfca8, a0=0xbfb38c94) at sipQtGuiQPushButton.cpp:155
#30 0xb6a2f09c in QApplicationPrivate::notify_helper (this=0x82716d0, receiver=0x83cfca8, e=0xbfb38c94) at kernel/qapplication.cpp:3434
#31 0xb6a315bd in QApplication::notify (this=0x8272d10, receiver=0x83cfca8, e=0xbfb38c94) at kernel/qapplication.cpp:3133
#32 0xb7626aaf in sipQApplication::notify (this=0x8272d10, a0=0x83cfca8, a1=0xbfb38c94) at sipQtGuiQApplication.cpp:199
#33 0xb6a858cb in QETWidget::translateMouseEvent (this=0x83cfca8, event=0xbfb38f48) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:186
#34 0xb6a84eef in QApplication::x11ProcessEvent (this=0x8272d10, event=0xbfb38f48) at kernel/qapplication_x11.cpp:2764
#35 0xb6aa7b43 in QEventDispatcherX11::processEvents (this=0x8205490, flags=@0xbfb39034) at kernel/qeventdispatcher_x11.cpp:112
#36 0xb7afd751 in QEventLoop::processEvents (this=0xbfb390a0, flags=@0xbfb39068) at kernel/qeventloop.cpp:126
#37 0xb7afd85a in QEventLoop::exec (this=0xbfb390a0, flags=@0xbfb390a8) at kernel/qeventloop.cpp:172
#38 0xb7aff9c6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:727
#39 0xb6a2eb37 in QApplication::exec () at kernel/qapplication.cpp:2927
#40 0xb7627af6 in meth_QApplication_exec_ (sipArgs=0xb7dd002c) at sipQtGuiQApplication.cpp:2059
#41 0x080b9485 in PyEval_EvalFrame ()
#42 0x080ba745 in PyEval_EvalCodeEx ()
#43 0x080ba7a9 in PyEval_EvalCode ()
#44 0x080dd157 in PyRun_FileExFlags ()
#45 0x080dd354 in PyRun_SimpleFileExFlags ()
#46 0x08055ba8 in Py_Main ()
#47 0x08055032 in main ()
(gdb) thread 2
[Switching to thread 2 (Thread -1235154000 (LWP 22001))]#0  0xb7f7a9ab in sem_wait at GLIBC_2.0 () from /lib/tls/libpthread.so.0
(gdb) bt
#0  0xb7f7a9ab in sem_wait at GLIBC_2.0 () from /lib/tls/libpthread.so.0
#1  0xb6610b90 in ?? ()
#2  0x080e155d in PyThread_acquire_lock ()
#3  0x080b43fd in PyEval_RestoreThread ()
#4  0xb7c5420b in meth_QThread_msleep (sipArgs=0xb67748ac) at sipQtCoreQThread.cpp:928
#5  0x080b9485 in PyEval_EvalFrame ()
#6  0x080ba745 in PyEval_EvalCodeEx ()
#7  0x08100b59 in PyClassMethod_New ()
#8  0x080589d7 in PyObject_Call ()
#9  0x0805e28e in PyClass_IsSubclass ()
#10 0x080589d7 in PyObject_Call ()
#11 0x080b3d2d in PyEval_CallObjectWithKeywords ()
#12 0xb7f9bfec in initsip () from /usr/lib/python2.4/site-packages/sip.so
#13 0xb7c2db87 in sipVH_QtCore_4 (sipGILState=PyGILState_LOCKED, sipMethod=0xb7e06b94) at sipQtCorecmodule.cpp:5366
#14 0xb7c5522b in sipQThread::run (this=0x8363a00) at sipQtCoreQThread.cpp:87
#15 0xb7a59f54 in QThreadPrivate::start (arg=0x8363a00) at thread/qthread_unix.cpp:146
#16 0xb7f760bd in start_thread () from /lib/tls/libpthread.so.0
#17 0xb7edc92e in clone () from /lib/tls/libc.so.6
(gdb) thread 3
[Switching to thread 3 (Thread -1243542608 (LWP 22002))]#0  0xb7f7a9ab in sem_wait at GLIBC_2.0 () from /lib/tls/libpthread.so.0
(gdb) bt
#0  0xb7f7a9ab in sem_wait at GLIBC_2.0 () from /lib/tls/libpthread.so.0
#1  0xb5e10b90 in ?? ()
#2  0x080e155d in PyThread_acquire_lock ()
#3  0x080b43fd in PyEval_RestoreThread ()
#4  0xb7c5420b in meth_QThread_msleep (sipArgs=0xb66e62ac) at sipQtCoreQThread.cpp:928
#5  0x080b9485 in PyEval_EvalFrame ()
#6  0x080ba745 in PyEval_EvalCodeEx ()
#7  0x08100b59 in PyClassMethod_New ()
#8  0x080589d7 in PyObject_Call ()
#9  0x0805e28e in PyClass_IsSubclass ()
#10 0x080589d7 in PyObject_Call ()
#11 0x080b3d2d in PyEval_CallObjectWithKeywords ()
#12 0xb7f9bfec in initsip () from /usr/lib/python2.4/site-packages/sip.so
#13 0xb7c2db87 in sipVH_QtCore_4 (sipGILState=PyGILState_LOCKED, sipMethod=0xb7de6b6c) at sipQtCorecmodule.cpp:5366
#14 0xb7c5522b in sipQThread::run (this=0x8396110) at sipQtCoreQThread.cpp:87
#15 0xb7a59f54 in QThreadPrivate::start (arg=0x8396110) at thread/qthread_unix.cpp:146
#16 0xb7f760bd in start_thread () from /lib/tls/libpthread.so.0
#17 0xb7edc92e in clone () from /lib/tls/libc.so.6
(gdb) thread 4
[Switching to thread 4 (Thread -1252271184 (LWP 22015))]#0  0xb7f7a9ab in sem_wait at GLIBC_2.0 () from /lib/tls/libpthread.so.0
(gdb) bt
#0  0xb7f7a9ab in sem_wait at GLIBC_2.0 () from /lib/tls/libpthread.so.0
#1  0xb55bdb90 in ?? ()
#2  0x080e155d in PyThread_acquire_lock ()
#3  0x080b43fd in PyEval_RestoreThread ()
#4  0xb7c5420b in meth_QThread_msleep (sipArgs=0xb66e6e4c) at sipQtCoreQThread.cpp:928
#5  0x080b9485 in PyEval_EvalFrame ()
#6  0x080ba745 in PyEval_EvalCodeEx ()
#7  0x08100b59 in PyClassMethod_New ()
#8  0x080589d7 in PyObject_Call ()
#9  0x0805e28e in PyClass_IsSubclass ()
#10 0x080589d7 in PyObject_Call ()
#11 0x080b3d2d in PyEval_CallObjectWithKeywords ()
#12 0xb7f9bfec in initsip () from /usr/lib/python2.4/site-packages/sip.so
#13 0xb7c2db87 in sipVH_QtCore_4 (sipGILState=PyGILState_LOCKED, sipMethod=0xb68130cc) at sipQtCorecmodule.cpp:5366
#14 0xb7c5522b in sipQThread::run (this=0x8395310) at sipQtCoreQThread.cpp:87
#15 0xb7a59f54 in QThreadPrivate::start (arg=0x8395310) at thread/qthread_unix.cpp:146
#16 0xb7f760bd in start_thread () from /lib/tls/libpthread.so.0
#17 0xb7edc92e in clone () from /lib/tls/libc.so.6
(gdb) thread 5
[Switching to thread 5 (Thread -1260659792 (LWP 22016))]#0  0xb7f78c01 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
(gdb) bt
#0  0xb7f78c01 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
#1  0xb7a5990f in QMutexPrivate::wait (this=0x8257940) at thread/qmutex_unix.cpp:59
#2  0xb7a56c96 in QMutex::lock (this=0x81522b8) at thread/qmutex.cpp:192
#3  0xb7ca0cc3 in meth_QMutex_lock (sipSelf=0xb67feb2c, sipArgs=0xb7dd002c) at sipQtCoreQMutex.cpp:44
#4  0x080b9485 in PyEval_EvalFrame ()
#5  0x080ba745 in PyEval_EvalCodeEx ()
#6  0x08100b59 in PyClassMethod_New ()
#7  0x080589d7 in PyObject_Call ()
#8  0x0805e28e in PyClass_IsSubclass ()
#9  0x080589d7 in PyObject_Call ()
#10 0x080b3d2d in PyEval_CallObjectWithKeywords ()
#11 0xb7f9bfec in initsip () from /usr/lib/python2.4/site-packages/sip.so
#12 0xb7c2db87 in sipVH_QtCore_4 (sipGILState=PyGILState_LOCKED, sipMethod=0xb681370c) at sipQtCorecmodule.cpp:5366
#13 0xb7c5522b in sipQThread::run (this=0x83a1c50) at sipQtCoreQThread.cpp:87
#14 0xb7a59f54 in QThreadPrivate::start (arg=0x83a1c50) at thread/qthread_unix.cpp:146
#15 0xb7f760bd in start_thread () from /lib/tls/libpthread.so.0
#16 0xb7edc92e in clone () from /lib/tls/libc.so.6
(gdb) thread 6
[Switching to thread 6 (Thread -1269048400 (LWP 22017))]#0  0xb7f7a9ab in sem_wait at GLIBC_2.0 () from /lib/tls/libpthread.so.0
(gdb) bt
#0  0xb7f7a9ab in sem_wait at GLIBC_2.0 () from /lib/tls/libpthread.so.0
#1  0xb45bdb90 in ?? ()
#2  0x080e155d in PyThread_acquire_lock ()
#3  0x080b43fd in PyEval_RestoreThread ()
#4  0xb7c5420b in meth_QThread_msleep (sipArgs=0xb66e6e2c) at sipQtCoreQThread.cpp:928
#5  0x080b9485 in PyEval_EvalFrame ()
#6  0x080ba745 in PyEval_EvalCodeEx ()
#7  0x08100b59 in PyClassMethod_New ()
#8  0x080589d7 in PyObject_Call ()
#9  0x0805e28e in PyClass_IsSubclass ()
#10 0x080589d7 in PyObject_Call ()
#11 0x080b3d2d in PyEval_CallObjectWithKeywords ()
#12 0xb7f9bfec in initsip () from /usr/lib/python2.4/site-packages/sip.so
#13 0xb7c2db87 in sipVH_QtCore_4 (sipGILState=PyGILState_LOCKED, sipMethod=0xb68137d4) at sipQtCorecmodule.cpp:5366
#14 0xb7c5522b in sipQThread::run (this=0x8390588) at sipQtCoreQThread.cpp:87
#15 0xb7a59f54 in QThreadPrivate::start (arg=0x8390588) at thread/qthread_unix.cpp:146
#16 0xb7f760bd in start_thread () from /lib/tls/libpthread.so.0
#17 0xb7edc92e in clone () from /lib/tls/libc.so.6
(gdb) thread 7
[Switching to thread 7 (Thread -1277437008 (LWP 22018))]#0  0xb7f7a9ab in sem_wait at GLIBC_2.0 () from /lib/tls/libpthread.so.0
(gdb) bt
#0  0xb7f7a9ab in sem_wait at GLIBC_2.0 () from /lib/tls/libpthread.so.0
#1  0xb3dbdb90 in ?? ()
#2  0x080e155d in PyThread_acquire_lock ()
#3  0x080b43fd in PyEval_RestoreThread ()
#4  0x080daff6 in PyGILState_Ensure ()
#5  0xb7c2eb65 in PyQt_PyObject (this=0x83a0d20, other=@0xb3dbcdc4) at sip/QtCore/qobject.sip:636
#6  0xb7c3b939 in qMetaTypeConstructHelper<PyQt_PyObject> (t=0xb3dbcdc4) at /mnt/storage/qt-x11-opensource-src-4.2.2/include/QtCore/../../src/corelib/kernel/qmetatype.h:106
#7  0xb7b07294 in QMetaType::construct (type=296, copy=0xb3dbcdc4) at kernel/qmetatype.cpp:1050
#8  0xb7b103f9 in QMetaObject::activate (sender=0x83ab478, from_signal_index=4, to_signal_index=4, argv=0xb3dbcd8c) at kernel/qobject.cpp:2851
#9  0xb7b110ac in QMetaObject::activate (sender=0x83ab478, m=0xb7d6d020, local_signal_index=0, argv=0xb3dbcd8c) at kernel/qobject.cpp:2983
#10 0xb7c32532 in PyQtProxy::pysignal (this=0x83ab478, pyargs=@0xb3dbcdc4) at sip/QtCore/qobject.sip:942
#11 0xb7c325c7 in sipQtEmitSignalShortcut (tx=0x838f370, sig=0xb66e6214 "2steip", sigargs=0xb66e6e8c) at sip/QtCore/qobject.sip:1239
#12 0xb7f9dc70 in initsip () from /usr/lib/python2.4/site-packages/sip.so
#13 0xb7d14338 in meth_QObject_emit (sipSelf=0xb6773c2c, sipArgs=0xb677436c) at sip/QtCore/qobject.sip:359
#14 0x080b9485 in PyEval_EvalFrame ()
#15 0x080ba745 in PyEval_EvalCodeEx ()
#16 0x08100b59 in PyClassMethod_New ()
#17 0x080589d7 in PyObject_Call ()
#18 0x0805e28e in PyClass_IsSubclass ()
#19 0x080589d7 in PyObject_Call ()
#20 0x080b3d2d in PyEval_CallObjectWithKeywords ()
#21 0xb7f9bfec in initsip () from /usr/lib/python2.4/site-packages/sip.so
#22 0xb7c2db87 in sipVH_QtCore_4 (sipGILState=PyGILState_LOCKED, sipMethod=0xb68137fc) at sipQtCorecmodule.cpp:5366
#23 0xb7c5522b in sipQThread::run (this=0x838f370) at sipQtCoreQThread.cpp:87
#24 0xb7a59f54 in QThreadPrivate::start (arg=0x838f370) at thread/qthread_unix.cpp:146
#25 0xb7f760bd in start_thread () from /lib/tls/libpthread.so.0
#26 0xb7edc92e in clone () from /lib/tls/libc.so.6
(gdb) thread 8
[Switching to thread 8 (Thread -1285825616 (LWP 22019))]#0  0xb7f7a9ab in sem_wait at GLIBC_2.0 () from /lib/tls/libpthread.so.0
(gdb) bt
#0  0xb7f7a9ab in sem_wait at GLIBC_2.0 () from /lib/tls/libpthread.so.0
#1  0xb35bdb90 in ?? ()
#2  0x080e155d in PyThread_acquire_lock ()
#3  0x080b43fd in PyEval_RestoreThread ()
#4  0xb7c5420b in meth_QThread_msleep (sipArgs=0xb66e6f2c) at sipQtCoreQThread.cpp:928
#5  0x080b9485 in PyEval_EvalFrame ()
#6  0x080ba745 in PyEval_EvalCodeEx ()
#7  0x08100b59 in PyClassMethod_New ()
#8  0x080589d7 in PyObject_Call ()
#9  0x0805e28e in PyClass_IsSubclass ()
#10 0x080589d7 in PyObject_Call ()
#11 0x080b3d2d in PyEval_CallObjectWithKeywords ()
#12 0xb7f9bfec in initsip () from /usr/lib/python2.4/site-packages/sip.so
#13 0xb7c2db87 in sipVH_QtCore_4 (sipGILState=PyGILState_LOCKED, sipMethod=0xb6813824) at sipQtCorecmodule.cpp:5366
#14 0xb7c5522b in sipQThread::run (this=0x83a9e80) at sipQtCoreQThread.cpp:87
#15 0xb7a59f54 in QThreadPrivate::start (arg=0x83a9e80) at thread/qthread_unix.cpp:146
#16 0xb7f760bd in start_thread () from /lib/tls/libpthread.so.0
#17 0xb7edc92e in clone () from /lib/tls/libc.so.6
(gdb) thread 9
[Switching to thread 9 (Thread -1296041040 (LWP 22020))]#0  0xb7f78c01 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
(gdb) bt
#0  0xb7f78c01 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
#1  0xb7a5990f in QMutexPrivate::wait (this=0x8257940) at thread/qmutex_unix.cpp:59
#2  0xb7a56c96 in QMutex::lock (this=0x81522b8) at thread/qmutex.cpp:192
#3  0xb7ca0cc3 in meth_QMutex_lock (sipSelf=0xb67feb2c, sipArgs=0xb7dd002c) at sipQtCoreQMutex.cpp:44
#4  0x080b9485 in PyEval_EvalFrame ()
#5  0x080ba745 in PyEval_EvalCodeEx ()
#6  0x08100b59 in PyClassMethod_New ()
#7  0x080589d7 in PyObject_Call ()
#8  0x0805e28e in PyClass_IsSubclass ()
#9  0x080589d7 in PyObject_Call ()
#10 0x080b3d2d in PyEval_CallObjectWithKeywords ()
#11 0xb7f9bfec in initsip () from /usr/lib/python2.4/site-packages/sip.so
#12 0xb7c2db87 in sipVH_QtCore_4 (sipGILState=PyGILState_LOCKED, sipMethod=0xb681384c) at sipQtCorecmodule.cpp:5366
#13 0xb7c5522b in sipQThread::run (this=0x83a6738) at sipQtCoreQThread.cpp:87
#14 0xb7a59f54 in QThreadPrivate::start (arg=0x83a6738) at thread/qthread_unix.cpp:146
#15 0xb7f760bd in start_thread () from /lib/tls/libpthread.so.0
#16 0xb7edc92e in clone () from /lib/tls/libc.so.6
(gdb) thread 10
[Switching to thread 10 (Thread -1304429648 (LWP 22021))]#0  0xb7f7a9ab in sem_wait at GLIBC_2.0 () from /lib/tls/libpthread.so.0
(gdb) bt
#0  0xb7f7a9ab in sem_wait at GLIBC_2.0 () from /lib/tls/libpthread.so.0
#1  0xb23ffb90 in ?? ()
#2  0x080e155d in PyThread_acquire_lock ()
#3  0x080b43fd in PyEval_RestoreThread ()
#4  0xb7c5420b in meth_QThread_msleep (sipArgs=0xb66e6fec) at sipQtCoreQThread.cpp:928
#5  0x080b9485 in PyEval_EvalFrame ()
#6  0x080ba745 in PyEval_EvalCodeEx ()
#7  0x08100b59 in PyClassMethod_New ()
#8  0x080589d7 in PyObject_Call ()
#9  0x0805e28e in PyClass_IsSubclass ()
#10 0x080589d7 in PyObject_Call ()
#11 0x080b3d2d in PyEval_CallObjectWithKeywords ()
#12 0xb7f9bfec in initsip () from /usr/lib/python2.4/site-packages/sip.so
#13 0xb7c2db87 in sipVH_QtCore_4 (sipGILState=PyGILState_LOCKED, sipMethod=0xb68138c4) at sipQtCorecmodule.cpp:5366
#14 0xb7c5522b in sipQThread::run (this=0x8403c48) at sipQtCoreQThread.cpp:87
#15 0xb7a59f54 in QThreadPrivate::start (arg=0x8403c48) at thread/qthread_unix.cpp:146
#16 0xb7f760bd in start_thread () from /lib/tls/libpthread.so.0
#17 0xb7edc92e in clone () from /lib/tls/libc.so.6
(gdb) thread 11
[Switching to thread 11 (Thread -1312818256 (LWP 22022))]#0  0xb7f7a9ab in sem_wait at GLIBC_2.0 () from /lib/tls/libpthread.so.0
(gdb) bt
#0  0xb7f7a9ab in sem_wait at GLIBC_2.0 () from /lib/tls/libpthread.so.0
#1  0xb1bffb90 in ?? ()
#2  0x080e155d in PyThread_acquire_lock ()
#3  0x080b43fd in PyEval_RestoreThread ()
#4  0xb7c5420b in meth_QThread_msleep (sipArgs=0xb66e6f8c) at sipQtCoreQThread.cpp:928
#5  0x080b9485 in PyEval_EvalFrame ()
#6  0x080ba745 in PyEval_EvalCodeEx ()
#7  0x08100b59 in PyClassMethod_New ()
#8  0x080589d7 in PyObject_Call ()
#9  0x0805e28e in PyClass_IsSubclass ()
#10 0x080589d7 in PyObject_Call ()
#11 0x080b3d2d in PyEval_CallObjectWithKeywords ()
#12 0xb7f9bfec in initsip () from /usr/lib/python2.4/site-packages/sip.so
#13 0xb7c2db87 in sipVH_QtCore_4 (sipGILState=PyGILState_LOCKED, sipMethod=0xb6813914) at sipQtCorecmodule.cpp:5366
#14 0xb7c5522b in sipQThread::run (this=0x83a37c0) at sipQtCoreQThread.cpp:87
#15 0xb7a59f54 in QThreadPrivate::start (arg=0x83a37c0) at thread/qthread_unix.cpp:146
#16 0xb7f760bd in start_thread () from /lib/tls/libpthread.so.0
#17 0xb7edc92e in clone () from /lib/tls/libc.so.6
(gdb) thread 12
[Switching to thread 12 (Thread -1321206864 (LWP 22023))]#0  0xb7f78c01 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
(gdb) bt
#0  0xb7f78c01 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
#1  0xb7a5aca1 in QWaitCondition::wait (this=0x8250894, mutex=0x8250890, time=4294967295) at thread/qwaitcondition_unix.cpp:254
#2  0xb7a5713b in QReadWriteLock::lockForRead (this=0x8253260) at thread/qreadwritelock.cpp:130
#3  0xb7b106d2 in QMetaObject::activate (sender=0x840e7f0, from_signal_index=4, to_signal_index=4, argv=<value optimized out>) at ../../include/QtCore/../../src/corelib/thread/qreadwritelock.h:79
#4  0xb7b110ac in QMetaObject::activate (sender=0x840e7f0, m=0xb7b96830, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:2983
#5  0xb7b297b3 in QThread::started (this=0x840e7f0) at .moc/release-shared/moc_qthread.cpp:90
#6  0xb7a59f35 in QThreadPrivate::start (arg=0x840e7f0) at thread/qthread_unix.cpp:143
#7  0xb7f760bd in start_thread () from /lib/tls/libpthread.so.0
#8  0xb7edc92e in clone () from /lib/tls/libc.so.6
(gdb) thread 13
Thread ID 13 not known.
(gdb)                                                              


More information about the PyQt mailing list