[Qt-interest] Show QT source in QTCreator (and strange deadlocks)

Ori Lahav vbcrlf at gmail.com
Mon Jul 12 14:18:40 CEST 2010


Hello QTers,
I'm getting some mysterious deadlocks while running my application. The
stack trace shows the deadlock is in QT, but QTCreator shows the disassembly
instead of source code, so I can't debug it.
What should I do to make QTCreator show the source?

Thanks,
Ori.

P.S.
If anyone can see the problem just by viewing the stack trace, here it is:
0 __lll_lock_wait /lib/libpthread.so.0 0 0x00007ffff442de54
1 _L_lock_511 /lib/libpthread.so.0 0 0x00007ffff4429344
2 pthread_mutex_lock /lib/libpthread.so.0 0 0x00007ffff442915a
3 QMutexPrivate::wait(int) /opt/qtcreator/lib/libQtCore.so.4 0
0x00007ffff64211f6
4 QMutex::lock() /opt/qtcreator/lib/libQtCore.so.4 0 0x00007ffff641d077
5 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)
/opt/qtcreator/lib/libQtCore.so.4 0 0x00007ffff65259e8
6 postEventSourceDispatch(_GSource*, int (*)(void*), void*)
/opt/qtcreator/lib/libQtCore.so.4 0 0x00007ffff65515b3
7 g_main_context_dispatch /usr/lib/libglib-2.0.so.0 0 0x00007ffff3f79b33
8 g_main_context_iterate /usr/lib/libglib-2.0.so.0 0 0x00007ffff3f7a310
9 g_main_context_iteration /usr/lib/libglib-2.0.so.0 0 0x00007ffff3f7a5ad
10
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
/opt/qtcreator/lib/libQtCore.so.4 0 0x00007ffff65518b5
11
QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
/opt/qtcreator/lib/libQtGui.so.4 0 0x00007ffff6b3824f
12 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
/opt/qtcreator/lib/libQtCore.so.4 0 0x00007ffff6523ce5
13 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
/opt/qtcreator/lib/libQtCore.so.4 0 0x00007ffff6523f4d
14 QCoreApplication::exec() /opt/qtcreator/lib/libQtCore.so.4 0
0x00007ffff6525d09
15 main main.cpp 20 0x0000000000411f29
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100712/9344ad41/attachment.html 


More information about the Qt-interest-old mailing list