I downloaded the toolchain from here 
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/Experimental_Builds/4.9.0/threads-win32/dwarf/,
 i686-4.9.0-snapshot-20131119-rev205009-win32-dwarf-rt_v4.7z.
Then I compiled my program(which could be a quite complex one) with it. The 
program compiled, but crashed after returned from WinMain().

Stack backtrace:
Breakpoint 1, 0x00432c28 in abort ()
(gdb) bt
#0  0x00432c28 in abort ()
#1  0x00426a97 in __deregister_frame_info_bases (begin=0xe277d996) at 
../../../../../src/gcc-trunk/libgcc/unwind-dw2-fde.c:216
#2  0x7719c3e9 in msvcrt!isspace () from C:\Windows\syswow64\msvcrt.dll
#3  0x771a36bb in msvcrt!exit () from C:\Windows\syswow64\msvcrt.dll
#4  0x004014b5 in _fu0___set_invalid_parameter_handler ()
#5  0x00000005 in ?? ()
#6  0x01112da0 in ?? ()
#7  0x752c336a in KERNEL32!BaseThreadInitThunk () from 
C:\Windows\syswow64\kernel32.dll
#8  0x776d9f72 in ntdll!RtlInitializeExceptionChain () from 
C:\Windows\system32\ntdll.dll
#9  0x776d9f45 in ntdll!RtlInitializeExceptionChain () from 
C:\Windows\system32\ntdll.dll
#10 0x00000000 in ?? ()

I also tried other version of toolchains, both i686-sjlj and x86_64-seh were 
ok. It seemed that the crash was caused by the dwarf2 exception-handling 
mechanism. 
Any ideas?

2014-01-23
lh_mouse


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to