From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EA73E3858C2A; Wed, 3 Jan 2024 05:51:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EA73E3858C2A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704261119; bh=xhvBzXUFP9Fm8tr3TkESZD9XXvmuU/JUObIxXZKmbG0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=R33sHeUuEafDO6JelpD7gy7f4U/Zy1k8UD7LWoGeY3qZ4wSu0Ge47UF+dvdyhWfEb lCziz2+gOCqIQVnN/Dl96botHpkGx2bA0/UD0SXLVVc/r1C4GNgVb/90E+i7Y6TajU LfkflDQYW3gQ4rGld/xtyKqMFDdYjrQBKiQ35ipE= 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:51:59 +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: RESOLVED X-Bugzilla-Resolution: WONTFIX 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: bug_status resolution 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 ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |WONTFIX --- Comment #5 from Andrew Pinski --- Not a GCC bug as GCC is not involved here, thread_local might be a C/C++ concept and the compiler generates code to use per thread local variables b= ut it is it is glibc which implements __tls_get_addr for use in shared librari= es. Also I doubt this is a glibc issue either. Basically if you use getpwuid, e= tc. in a static linked executable, it will use dlopen and TLS in a shared libra= ry is not compatiable with a static linked executable.=