[cfe-dev] Program crashes when build Clang with mingw-gcc-4.7.0

niXman i.nixman at gmail.com
Fri Apr 27 00:08:43 PDT 2012


I try to build Clang for windows with MinGW[1].
I build Clang using gcc-4.6.3[2]. All the programs which are built
using it, are compiled and work successfully.
But if when I build Clang using gcc-4.7.0[3], programs which written
on C++ crash when run-time. C-code programs are compiled and work
successfully.
simple example:
> #include <iostream>
> int main() {
> 	std::cout << "Hello world!" << std::endl;
> 	return 0;
> }

backtrace:
> Program received signal SIGSEGV, Segmentation fault.
> 0x6fcd4282 in libstdc++-6!_ZSt4cout () from d:\mingw\bin\libstdc++-6.dll
> #0  0x6fcd4282 in libstdc++-6!_ZSt4cout () from d:\mingw\bin\libstdc++-6.dll
> #1  0x6fc8ce6a in libstdc++-6!_ZNSolsEPFRSoS_E ()
>    from d:\mingw\bin\libstdc++-6.dll
> #2  0x00401618 in ?? ()
> #3  0x004013ea in ?? ()
> #4  0x756c339a in KERNEL32!BaseCleanupAppcompatCacheSupport ()
>    from C:\Windows\syswow64\kernel32.dll
> #5  0x7efde000 in ?? ()
> #6  0x77059ef2 in ntdll!RtlpNtSetValueKey ()
>    from C:\Windows\system32\ntdll.dll
> #7  0x7efde000 in ?? ()
> #8  0x77059ec5 in ntdll!RtlpNtSetValueKey ()
>    from C:\Windows\system32\ntdll.dll
> #9  0x004014d0 in ?? ()
> #10 0x00000000 in ?? ()
> (gdb)



Thanks!


[1] http://sourceforge.net/projects/mingwbuilds/
[2] http://sourceforge.net/projects/mingwbuilds/files/windows-host/4.6.3/i686-mingw32-gcc-4.6.3-release-c%2Cc%2B%2B%2Cfortran.7z/download
[3] http://sourceforge.net/projects/mingwbuilds/files/windows-host/4.7.0/i686-mingw32-gcc-4.7.0-release-c%2Cc%2B%2B%2Cfortran.7z/download

-- 
Regards,
  niXman




More information about the cfe-dev mailing list