在 2025-6-22 01:00, Jonas Kvinge via Gcc-help 写道:
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. I've added -D_GLIBCXX_DEBUG to CXXFLAGS for both Qt and the program, still see no debug symbols for libstdc++. I'm cross-compiling using gcc 15.1.0 and mingw-w64 12.0.0.
I suspect the DLL is stripped? would you please check the size of it? A stripped libstdc++-6.dll at -O2 is ~2.3 MB, while an unstripped one is ~25 MB.
Specifically about Qt, I've recently heard about https://bugreports.qt.io/browse/QTBUG-131892 which suggests there's an issue about emutls. If that's the reason, please call `TerminateProcess(GetCurrentProcess(), status_code);` to exit.
-- Best regards, LIU Hao
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature