https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67791
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- Yes, this is a known problem with the __gthread_active_p() trick we use, which doesn't work when libpthread gets loaded later via a dlopen call.