From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 90DBC385770A; Mon, 24 Jul 2023 15:58:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 90DBC385770A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1690214283; bh=Onzj/jbFUFLRII0JIEcMxYY8Xf4FztpbcoIzZ3t/DG0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vNmwqWd2usM6OkTCoQXaL1RPnc2hD9xM3FVUaFdqF/ohtjrbBawyWCHDfu2JHTksC RHbyb3DOdbVreubyA+cKTuT1m3IGBHfajbaspzXllE5THJi3SUUuOKERYXeWPc+tNc bO4j4A7VQcuIrSbxEvxBtqw2/CznRvLTtXNYoJY8= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/30672] [gdb/symtab] data race in cooked_index_shard::do_finalize() / cooked_index_entry::write_scope Date: Mon, 24 Jul 2023 15:58:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30672 --- Comment #4 from Tom de Vries --- The problem here is as follows. This bit of code: ... const char *local_name =3D for_main ? name : canonical; ... is compiled by gcc at -O2 to load both name and canonical. This speculative load is considered harmless by the compiler, because it's considered side-effect free. The speculation however introduces a data race, which tsan reports. --=20 You are receiving this mail because: You are on the CC list for the bug.=