Re: Debug symbols for libstdc++ x86_64-w64-mingw32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 22 Jun 2025, 21:33 Jonas Kvinge via Gcc-help, <gcc-help@xxxxxxxxxxx>
wrote:

> Hi,
>
> Qt as of version 6.9 stopped working with winpthreads so I've switched
> to building gcc with win32 threads (configure --enable-threads=win32).
> But I'm getting a crash on program exit which was not there with
> winpthreads, but I can't get debug symbols to show for libstdc++.
> I've built gcc with --enable-libstdcxx-debug, and used libstdc++-6.dll
> from the debug directory.
>

That is an unoptimized build of libstdc++ but should not be necessary to
get debug symbols. Libstdc++ should always be built with debug symbols.



I've added -D_GLIBCXX_DEBUG to CXXFLAGS for both Qt and the program,
> still see no debug symbols for libstdc++.
>

That macro enables runtime assertions in libstdc++ functions and has
absolutely nothing to do with debug symbols.


I'm cross-compiling using gcc 15.1.0 and mingw-w64 12.0.0.
>
> Thread 1 received signal SIGSEGV, Segmentation fault.
> 0x00007ffd8d3b6b67 in ?? () from C:\Program Files\Strawberry Music
> Player Debug\libstdc++-6.dll
> (gdb) bt
> #0  0x00007ffd8d3b6b67 in ?? () from C:\Program Files\Strawberry Music
> Player Debug\libstdc++-6.dll
> #1  0x00007ffdda8e42d6 in ucrtbase!_execute_onexit_table () from
> C:\WINDOWS\System32\ucrtbase.dll
> #2  0x00007ffdda8e41fb in ucrtbase!_execute_onexit_table () from
> C:\WINDOWS\System32\ucrtbase.dll
> #3  0x00007ffdda8e41b4 in ucrtbase!_execute_onexit_table () from
> C:\WINDOWS\System32\ucrtbase.dll
> #4  0x00007ffd8d39114c in ?? () from C:\Program Files\Strawberry Music
> Player Debug\libstdc++-6.dll
> #5  0x00007ffd8d391226 in ?? () from C:\Program Files\Strawberry Music
> Player Debug\libstdc++-6.dll
> #6  0x00007ffddcc69a1d in ntdll!RtlActivateActivationContextUnsafeFast
> () from C:\WINDOWS\SYSTEM32\ntdll.dll
> #7  0x00007ffddccaf1ca in ntdll!LdrShutdownProcess () from
> C:\WINDOWS\SYSTEM32\ntdll.dll
> #8  0x00007ffddccaef7d in ntdll!RtlExitUserProcess () from
> C:\WINDOWS\SYSTEM32\ntdll.dll
> #9  0x00007ffddad4e3eb in KERNEL32!FatalExit () from
> C:\WINDOWS\System32\kernel32.dll
> #10 0x00007ffdda8f05bc in ucrtbase!exit () from
> C:\WINDOWS\System32\ucrtbase.dll
> #11 0x00007ffdda8f045f in ucrtbase!exit () from
> C:\WINDOWS\System32\ucrtbase.dll
> #12 0x00007ff7aaf413df in __tmainCRTStartup () at ../gcc-
> 15.1.0.build_/mingw-w64-v12.0.0/mingw-w64-crt/crt/crtexe.c:269
> #13 0x00007ff7aaf41416 in mainCRTStartup () at ../gcc-
> 15.1.0.build_/mingw-w64-v12.0.0/mingw-w64-crt/crt/crtexe.c:188
>
> Jonas
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux