public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/96817] New: __cxa_guard_acquire unsafe against dynamically loaded pthread
@ 2020-08-27 12:32 yshuiv7 at gmail dot com
  2020-08-27 12:48 ` [Bug libstdc++/96817] " yshuiv7 at gmail dot com
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: yshuiv7 at gmail dot com @ 2020-08-27 12:32 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96817
           Summary: __cxa_guard_acquire unsafe against dynamically loaded
                    pthread
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: yshuiv7 at gmail dot com
  Target Milestone: ---

If pthread is loaded dynamically via dlopen() after libstdc++ is loaded,
__gthread_active_p() would return wrong result, cause guard acquire to be
thread unsafe.

An example of this problem:
https://gitlab.freedesktop.org/mesa/mesa/-/issues/3199

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2020-11-04 15:36 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-27 12:32 [Bug libstdc++/96817] New: __cxa_guard_acquire unsafe against dynamically loaded pthread yshuiv7 at gmail dot com
2020-08-27 12:48 ` [Bug libstdc++/96817] " yshuiv7 at gmail dot com
2020-08-27 12:48 ` redi at gcc dot gnu.org
2020-08-27 12:53 ` yshuiv7 at gmail dot com
2020-08-27 12:58 ` rguenth at gcc dot gnu.org
2020-08-27 13:05 ` yshuiv7 at gmail dot com
2020-08-27 13:06 ` yshuiv7 at gmail dot com
2020-08-27 13:15 ` redi at gcc dot gnu.org
2020-08-27 13:23 ` redi at gcc dot gnu.org
2020-08-27 13:26 ` yshuiv7 at gmail dot com
2020-08-27 13:34 ` redi at gcc dot gnu.org
2020-08-27 14:02 ` redi at gcc dot gnu.org
2020-08-27 14:04 ` redi at gcc dot gnu.org
2020-09-25 18:11 ` redi at gcc dot gnu.org
2020-09-25 19:55 ` redi at gcc dot gnu.org
2020-09-25 20:37 ` yshuiv7 at gmail dot com
2020-09-25 20:40 ` yshuiv7 at gmail dot com
2020-09-26 19:41 ` cvs-commit at gcc dot gnu.org
2020-10-25  9:27 ` rimvydas.jas at gmail dot com
2020-10-25 22:08 ` redi at gcc dot gnu.org
2020-11-04 15:34 ` cvs-commit at gcc dot gnu.org
2020-11-04 15:36 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).