From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5AFD93858D38; Fri, 8 Mar 2024 14:32:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5AFD93858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1709908346; bh=GaC8PbQkmYsE9MvjzaHv3QkZM9fCE1j03NTrIGBHIGI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gIgCzOdGkLrQN6Ytk0T4a45wxXi3zygDjPJU0T5iwJckVASBmzVMMDLiFmYPiHV50 L3XvbXN90SqcHVPbpAGs3hHcvh1Lpp44EVNRcHIzRWO15v5EWpFX9aWYjxE0NLk1fm RTl/k7ZhgiZox7n3BfLDbGDQGgNNjAHI4s9d8yIo= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/31260] [gdb] ThreadSanitizer: data race /usr/include/c++/13/optional:286 in std::_Optional_payload_base > >::_M_destroy() Date: Fri, 08 Mar 2024 14:32:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey at sourceware dot org X-Bugzilla-Target-Milestone: 15.1 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31260 --- Comment #6 from Sourceware Commits --- The master branch has been updated by Tom Tromey : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3De9b738dfbdc5= 04589e1a365ce32981f4b23c22c3 commit e9b738dfbdc504589e1a365ce32981f4b23c22c3 Author: Tom Tromey Date: Thu Jan 25 06:48:22 2024 -0700 Avoid race when reading dwz file PR gdb/31260 points out a race introduced by the background reading changes. If a given objfile is re-opened when it is already being read, dwarf2_initialize_objfile will call dwarf2_read_dwz_file again, causing the 'dwz_file' to be reset. This patch fixes the problem by arranging to open the dwz just once: when the dwarf2_per_bfd object is created. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31260 --=20 You are receiving this mail because: You are on the CC list for the bug.=