[Bug libgcc/91737] On Alpine Linux (libmusl) a statically linked C++ program which throws the first exception in two threads at the same time can busy spin on shutdown after main().

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Sep 13 23:22:00 GMT 2019


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |MOVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This has been discussed over and over again.  This is an issue in the libc and
not in GCC.  In your case in libmusl.
Glibc has a similar bug and been discussed how to fix it.
The way Glibc is going to fix it (though it has not yet) is that libpthread.a
will be really just include one object file which includes all of the pthread
library.

libmusl should fix it a similar way.


More information about the Gcc-bugs mailing list