[Qt-interest] Crash in QApplication c'tor

Carsten Neumann carsten_neumann at gmx.net
Mon Jul 20 05:10:25 CEST 2009


	Hello all,

I'm trying to discover the cause for the following problem:
When compiling a trivial Qt program (attached) as part of the build of a 
larger set of libraries (OpenSG, opensg.vrsource.org) the program 
crashes at runtime in the QApplication c'tor. When compiled standalone 
using a qmake generated Makefile the program works fine.

The command line for compiler when building as part of OpenSG is:

g++   -DBOOST_ALL_DYN_LINK -DQT_THREAD_SUPPORT 
-DQT_ACCESSIBILITY_SUPPORT -DQT_CLEAN_NAMESPACE -DQT_CORE_LIB 
-DQT_GUI_LIB -DQT_DEBUG -m64 -msse2 -mfpmath=sse -g -DOSG_DEBUG 
-DOSG_BUILD_ACTIVE -o CMakeFiles/testTrivialQt4.dir/testTrivialQt4.cpp.o 
-c opensg-src/Source/WindowSystem/QT4/testTrivialQt4.cpp

when building standalone it looks like this:

g++ -c -m64 -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -W 
-D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB 
-I/usr/lib64/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore 
-I/usr/include/QtGui -I/usr/include -I. -I. -o testTrivialQt4.o 
testTrivialQt4.cpp

This is on Fedora 10 with the system gcc (4.3.2) on x86_64. Source and a 
stacktrace of the crash are attached.
Has anyone here seen something like this before or do you perhaps see 
something suspicious in the command lines above?

	Thanks for any help,
		Carsten
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: stacktrace.txt
Url: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090719/555f4896/attachment.txt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testTrivialQt4.cpp
Type: text/x-c++src
Size: 450 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090719/555f4896/attachment.bin 


More information about the Qt-interest-old mailing list