From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2EBD33858408; Wed, 3 Jan 2024 05:25:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2EBD33858408 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704259522; bh=WHkAFF5zUdgv2YLPSpgAal3wU/zF57vrq/KGGvZ8LaU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=io5XlKe1DqAOGQA2svxZTzPDZINeXkvPz4dZWL0Y9wf0mE2i+yuz31hAuQ6KZfjfI DeIGoGO2ckBCryDXi5W2SXxMvimejnF/TwQbb2W5OI1n6ERQfQ0N5XdCXmcCfXMeO+ dVPTOuFHhlztrvG83CtAlUNKmKfNxPxlxJUvjKcQ= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113211] Trying to initialize the tripwire database ends up with a SEGV if a uid cannot be found Date: Wed, 03 Jan 2024 05:25:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on bug_status everconfirmed 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113211 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-01-03 Status|UNCONFIRMED |WAITING Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski --- Why do you think this is a GCC bug rather than a glibc or systemd issue? Looking at the assembly that you provided: 0x00007ffff7bf869f <+15>: call 0x7ffff7bf7c80 <__tls_get_addr@plt> =3D> 0x00007ffff7bf86a4 <+20>: mov 0x1c(%rax),%eax That looks correct, RAX is the return value of __tls_get_addr here. Note __tls_get_addr is not implemented by GCC but by glibc.=