[Qt-interest] program crashes for Qt lib built with MinGW 5.1.6

AdityaShirolkar at Eaton.com AdityaShirolkar at Eaton.com
Fri Dec 24 10:05:01 CET 2010


Hi,

I built qt library from source code
(qt-everywhere-opensource-src-4.7.1.tar.gz) using MinGW 5.1.6 and MSYS
1.0.14-1 on windows xp.
It compiles without errors.

I tried to run a sample application from one of tutorial websites.
It compiles but when I try to launch the exe file, it crashes.
I also tried to execute the examples in qt sources, same behaviour.

Is there a dependency of qt lib on the compiler version used to compile
it?
I found a thread which had similar problem to mine:
http://lists.qt.nokia.com/pipermail/qt-creator/2010-April/006648.html
but it does not offer a solution :(

I don't want to install multiple versions of a compiler. Any ideas?


Following is the backtrace:

$ gdb.exe ./example1.exe
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show
copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from debug/./example1.exe...done.
(gdb) r
Starting program: debug/./example1.exe
[New Thread 10368.0x4a70]

Program received signal SIGSEGV, Segmentation fault.
_mm_set_epi32 (__Z=-2830136, __Y=-2830136, __X=-2830136, __W=-2830136)
at C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/include/emmintri
n.h:609
609       return __u.__v;
(gdb) bt
#0  _mm_set_epi32 (__Z=-2830136, __Y=-2830136, __X=-2830136,
__W=-2830136) at C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/include/emmi
ntrin.h:609
#1  0x62a8bf30 in qt_memfill32_sse2 (dest=0xf40000, value=4292137160,
count=18400) at painting/qdrawhelper_sse2.cpp:265
#2  0x632c1f25 in qt_memfill<unsigned int> (dest=0xf40000,
color=4292137160, count=18400) at ../../include/QtGui/private/../../.
./src/gui/painting/qdrawhelper_p.h:1592
#3  0x632c4688 in qt_rectfill<unsigned int> (dest=<incomplete type>,
value=4292137160, x=0, y=0, width=200, height=92, stride=80
0) at
../../include/QtGui/private/../../../src/gui/painting/qdrawhelper_p.h:16
33
#4  0x632dc61d in qt_rectfill_template<unsigned int>
(rasterBuffer=0xe3c540, x=0, y=0, width=200, height=92,
color=4292137160, d
ummy=0) at painting/qdrawhelper.cpp:7362
#5  0x62cb89c4 in qt_rectfill_quint32 (rasterBuffer=0xe3c540, x=0, y=0,
width=200, height=92, color=4292137160) at painting/qdra
whelper.cpp:7375
#6  0x62c9dfc7 in fillRect_normalized (r=..., data=0xe3f7e0,
pe=0xe3f008) at painting/qpaintengine_raster.cpp:1471
#7  0x62ca07ad in QRasterPaintEngine::fillRect (this=0xe3e930, r=...,
data=0xe3f7e0) at painting/qpaintengine_raster.cpp:1864
#8  0x62ca0c5a in QRasterPaintEngine::fillRect (this=0xe3e930, r=...,
brush=...) at painting/qpaintengine_raster.cpp:1908
#9  0x62c24878 in QPainter::fillRect (this=0x22cebc, r=..., brush=...)
at painting/qpainter.cpp:6972
#10 0x62afa90d in fillRegion (painter=0x22cebc, rgn=..., brush=...) at
kernel/qwidget.cpp:2311
#11 0x62afa425 in QWidgetPrivate::paintBackground (this=0x3eb7f0,
painter=0x22cebc, rgn=..., flags=5) at kernel/qwidget.cpp:2342

#12 0x62b027ed in QWidgetPrivate::drawWidget (this=0x3eb7f0,
pdev=0xe3ea48, rgn=..., offset=..., flags=5, sharedPainter=0x0, bac
kingStore=0xe3bbe8) at kernel/qwidget.cpp:5411
#13 0x62cea3c4 in QWidgetBackingStore::sync (this=0xe3bbe8) at
painting/qbackingstore.cpp:1333
#14 0x62af804e in QWidgetPrivate::syncBackingStore (this=0x3eb7f0) at
kernel/qwidget.cpp:1816
#15 0x62b0c80c in QWidget::event (this=0x22fc00, event=0xe3ad68) at
kernel/qwidget.cpp:8493
#16 0x62aa559e in QApplicationPrivate::notify_helper (this=0x3e5ef8,
receiver=0x22fc00, e=0xe3ad68) at kernel/qapplication.cpp:4
445
#17 0x62aa5423 in QApplication::notify (this=0x22fde0,
receiver=0x22fc00, e=0xe3ad68) at kernel/qapplication.cpp:4410
#18 0x69e157b9 in QCoreApplication::notifyInternal (this=0x22fde0,
receiver=0x22fc00, event=0xe3ad68) at kernel/qcoreapplication
.cpp:732
#19 0x69ea9643 in QCoreApplication::sendEvent (receiver=0x22fc00,
event=0xe3ad68) at ../../include/QtCore/../../src/corelib/kern
el/qcoreapplication.h:215
#20 0x69e16b7b in QCoreApplicationPrivate::sendPostedEvents
(receiver=0x0, event_type=0, data=0x3e53d0) at kernel/qcoreapplicati
on.cpp:1373
#21 0x69e491e2 in qt_internal_proc (hwnd=0x13076a, message=1025, wp=0,
lp=0) at kernel/qeventdispatcher_win.cpp:506
#22 0x7e418734 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll
#23 0x0013076a in ?? ()
#24 0x00000401 in ?? ()
#25 0x00000000 in ?? ()



- aditya



More information about the Qt-interest-old mailing list