https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95989
--- Comment #21 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jackson Huff from comment #20) > Have there been any updates regarding segfaults with pthread_join? I'm also > getting a segfault but with the C++20 jthread::detach() function instead. There isn't enough context to give a useful answer. It's not clear if your question is related to this bug report at all, as you're talking about a different function. You haven't said if you're linking statically or dynamically, or which OS you're using, or which version of GCC. There was an update fixing some weak symbol issues for Glibc >= 2.34 (see r12-5108) and this specific bug is fixed now (the failing test was a different problem). I suggest you open a new bug with all the necessary information (see https://gcc.gnu.org/bugs/ for what's needed) or ask on the gcc-help mailing list instead.