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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu.org

--- Comment #19 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
The test fails on a SPARC64/Linux box with:

GNU C Library (Debian GLIBC 2.32-4) stable release version 2.32.
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 10.3.0.
libc ABIs: UNIQUE IFUNC ABSOLUTE
For bug reporting instructions, please see:
<http://www.debian.org/Bugs/>.

It looks like we have the same problem with pthread_join now:

Thread 1 "95989" received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x0000000000105670 in __gthread_join (
    __value_ptr=<error reading variable: dwarf2_find_location_expression:
Corrupted DWARF expression.>, 
    __threadid=<error reading variable: dwarf2_find_location_expression:
Corrupted DWARF expression.>)
    at
/home/ebotcazou/build/sparc64-linux-gnu/libstdc++-v3/include/sparc64-linux-gnu/bits/gthr-default.h:669
#2  std::thread::join (this=0x7fefffff0b0)
    at /home/ebotcazou/src/libstdc++-v3/src/c++11/thread.cc:112
#3  0x0000000000103164 in std::jthread::join (this=0x7fefffff0a8)
    at /home/ebotcazou/install/include/c++/12.0.0/thread:160
#4  0x00000000001030e8 in std::jthread::~jthread (this=0x7fefffff0a8, 
    __in_chrg=<optimized out>)
    at /home/ebotcazou/install/include/c++/12.0.0/thread:130
#5  0x0000000000100d88 in test01 () at 95989.cc:33
#6  0x0000000000100ea8 in main () at 95989.cc:52

Reply via email to