[Qt-interest] Segfault with static QProcess
Volker Poplawski
volker at openbios.org
Tue Sep 14 12:19:01 CEST 2010
Hi all,
i'm tracing down a segfault which happens on application exit:
#0 QMutex::lock (this=0x10) at thread/qmutex.cpp:152
#1 0x0000000000ba79dd in QProcessManager::remove (this=0x0, process=0x10f38c8)
at ../../include/QtCore/../../src/corelib/thread/qmutex.h:120
#2 0x0000000000b6a447 in ~QProcess (this=0x10f38c8) at io/qprocess.cpp:805
The QProcess above is static in my application. On its destruction it tries to
access an instance of QProcessManager - which apparently is also a static
object, originating from the qtlib itself.
AFAIK the order of destruction of static objectes is undefined in c++. I think
that's the reason why i'm seeing this crash.
Is this a qt bug (i'm using qt4.5.3) ?
Regards
.......Volker
More information about the Qt-interest-old
mailing list