From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A888F3857C6C; Mon, 6 Jul 2020 12:38:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A888F3857C6C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594039105; bh=i/XyOkbBW/L1LvIp7cFxy/a5vsFbWN87KqdTZbgiIx4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hKiUFkVBf6mh3GNyOkHxfoCQIbZNHokPfRzrJWUS6XILnR5naK/klQdMOlavAWxs9 zeIr9fsB9LIOE2NMF6yyGC//UMyblnxMv+yIJy8ZX88dBB2Ljn4l+mAV0QF9z/B+PP Axqzfa3w8EJFjFeeac4+Ti1rtTm1P5HmhnTfR3wU= From: "fw 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: Mon, 06 Jul 2020 12:38:25 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: fw at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: Mon, 06 Jul 2020 12:38:25 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95989 --- Comment #11 from Florian Weimer --- It turns out that libc.a did not contain pthread_self until glibc 2.27. The symbol was only present in libc.so.6 (as a weird forwarder, for compatibili= ty with long-defunct LinuxThreads). This means there could be some fallout from requiring a definition of pthread_self in the statically linked case, in the form of linking failures without -lpthread on older glibc (such 2.17, as including in Red Hat Enterp= rise Linux 7).=