From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C7FC9385840F; Tue, 21 Sep 2021 13:42:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C7FC9385840F From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/95989] Segmentation fault compiling with static libraries and using jthread::request_stop Date: Tue, 21 Sep 2021 13:42:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2021 13:42:14 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95989 Eric Botcazou changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot gnu.o= rg --- Comment #19 from Eric Botcazou --- 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: . 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=3D,=20 __threadid=3D) at /home/ebotcazou/build/sparc64-linux-gnu/libstdc++-v3/include/sparc64-linux-= gnu/bits/gthr-default.h:669 #2 std::thread::join (this=3D0x7fefffff0b0) at /home/ebotcazou/src/libstdc++-v3/src/c++11/thread.cc:112 #3 0x0000000000103164 in std::jthread::join (this=3D0x7fefffff0a8) at /home/ebotcazou/install/include/c++/12.0.0/thread:160 #4 0x00000000001030e8 in std::jthread::~jthread (this=3D0x7fefffff0a8,=20 __in_chrg=3D) 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=