[MinGW 3.4.5, wxWidgets 2.8.7] minimal.exe crashes with certain build options

Werner Smekal smekal at iap.tuwien.ac.at
Thu Apr 24 07:53:57 PDT 2008


Hi,

I compiled wxWidgets 2.8.7 on Windows XP with the MinGW 3.4.5 compiler  
toolset with the following command

mingw32-make -f makefile.gcc BUILD=release MONOLITHIC=1 SHARED=1

in build/msw

If I go then to samples/minimal and compile the minimal sample with  
the same command

mingw32-make -f makefile.gcc BUILD=release MONOLITHIC=1 SHARED=1

the minimal.exe crashes with the message (which comes twice)

The application failed to initialize properly (0xc0000005). Click ok  
to terminate the application.

Running the release version of minimal.exe in gdb reveals:

Program received signal SIGSEGV, Segmentation fault.
0x003e1780 in malloc () from C:\Development\MinGW-3.4.5\bin\mingwm10.dll
(gdb) bt
#0  0x003e1780 in malloc () from C:\Development\MinGW-3.4.5\bin 
\mingwm10.dll
#1  0x003e10c3 in DllMainCRTStartup at 12 () from C:\Development 
\MinGW-3.4.5\bin\mingwm10.dll
#2  0x7c9011a7 in ntdll!LdrSetAppCompatDllRedirectionCallback () from  
C:\WINDOWS\system32\ntdll.dll
#3  0x003e0000 in ?? ()
#4  0x00000001 in ?? ()
#5  0x0022fd30 in ?? ()
#6  0x003e1060 in lab () from C:\Development\MinGW-3.4.5\bin 
\mingwm10.dll
#7  0x7c91cbab in ntdll!LdrHotPatchRoutine () from C:\WINDOWS 
\system32\ntdll.dll
#8  0x003e1060 in lab () from C:\Development\MinGW-3.4.5\bin 
\mingwm10.dll
#9  0x7c92173e in ntdll!RtlMapGenericMask () from C:\WINDOWS 
\system32\ntdll.dll
#10 0x0022fd30 in ?? ()
#11 0x7ffde000 in ?? ()
#12 0x7ffdf000 in ?? ()
#13 0x00000000 in ?? ()
(gdb)

The debug version runs without problems. Can anybody else confirm this  
crash? Does anybody know a solution?

Best Regards,
Werner


More information about the wx-users mailing list