https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117751
--- Comment #1 from Sam James <sjames at gcc dot gnu.org> --- Program received signal SIGABRT, Aborted. t__pthread_kill_implementation (threadid=<optimized out>, signo=6, no_tid=0) at pthread_kill.c:44 44 return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0; (gdb) bt #0 __pthread_kill_implementation (threadid=<optimized out>, signo=6, no_tid=0) at pthread_kill.c:44 #1 __pthread_kill_internal (threadid=<optimized out>, signo=6) at pthread_kill.c:78 #2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at pthread_kill.c:89 #3 0x00007ffff79688b2 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #4 0x00007ffff794b832 in __GI_abort () at abort.c:79 #5 0x0000555555554401 in test01 () at ./libstdc++-v3/testsuite/18_support/50594.cc:66 #6 main () at ./libstdc++-v3/testsuite/18_support/50594.cc:71