From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3AB453820786; Wed, 24 Aug 2022 12:16:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3AB453820786 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661343389; bh=/LPwuv4LZAPKWt4FniaZX4kagVH8VtAxvOjXnObnan8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=e25AFvonBDOmyYpqS8nXOy+5F9hvH0ob15amN2e2OPJht7pQFS8Z2P4U82e3Nx6fS eCnxG0ZM+VfSh0IfCoVmTJK0fgygXTk64CpI51OpLiM9cLzKQtLvlQP4upt+pih+TN 6gcyP9RkqN2ErM1yraLzCCzYFclLq+vISe72cLpU= From: "malat at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/103629] [11/12/13 Regression] Possible miscompilation visible using pthread + exception Date: Wed, 24 Aug 2022 12:16:26 +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: 11.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: malat at debian dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.4 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103629 --- Comment #24 from Mathieu Malaterre --- I have change the openvdb.cc code into: % cat openvdb.cc #include "Tree.h" static std::string do_segfault() { return Tree::treeType(); } #ifdef VIS __attribute__((visibility("default"))) #endif void initialize() { do_segfault(); } Now I can demonstrate that the issue only happen when using the visibility = flag (no-symptom using the default UNIX mechanism to export all symbols).=