[Bug libstdc++/96817] __cxa_guard_acquire unsafe against dynamically loaded pthread

yshuiv7 at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Aug 27 13:26:41 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96817

--- Comment #9 from Yuxuan Shui <yshuiv7 at gmail dot com> ---
(In reply to Jonathan Wakely from comment #7)
> It will work when Glibc defines all the pthread functions in libc.so and
> libpthread.so becomes empty.

Won't that mean libstdc++ will always use the thread-safe behavior? If that's
the goal, why don't we just remove the __gthread_active_p check?


More information about the Gcc-bugs mailing list