[Bug target/101933] Unloaded dll with global std::mutex causes exe to crash on exit

2021-09-04 Thread mailnew4ster at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101933 Paul Jackson changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug target/101933] Unloaded dll with global std::mutex causes exe to crash on exit #38

2021-09-03 Thread mailnew4ster at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101933 --- Comment #3 from Paul Jackson --- Maybe I'm missing something, but even this dll crashes for me now. So it seems like it has nothing to do with global variables or static storage. That sucks, it means that I just can't use C++ in dlls. Or is

[Bug target/101933] Unloaded dll with global std::mutex causes exe to crash on exit #38

2021-09-03 Thread mailnew4ster at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101933 --- Comment #2 from Paul Jackson --- I tried to work around the problem, and it's even worse than I expected. You can replace dll.cc with the following and observe the same crash. That means that even if I want to do manual memory management wi

[Bug c++/101933] New: Unloaded dll with global std::mutex causes exe to crash on exit #38

2021-08-16 Thread mailnew4ster at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101933 Bug ID: 101933 Summary: Unloaded dll with global std::mutex causes exe to crash on exit #38 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal