From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 99E403858CD1; Fri, 23 Feb 2024 15:22:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 99E403858CD1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1708701772; bh=477PxRrfESK1g3DAsOuP6/b+C3R3RywuzDDnHdQVcss=; h=From:To:Subject:Date:In-Reply-To:References:From; b=o3mI31TznYPpoLp6uBHbFV5ADapjLt6ezozd9VifhDtdA1tLede1a2loxRaMyrgFm 9uAfPBdz5hcxLW2KGGnIXmxVQawjdIpnvnRgbAKtD3vgexplG5vm63+wbroRbsMmye JEuQ9AaQKU44PhoqpiwkwDRfOCsyGC3XqUW1bOEU= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug dap/31263] [gdb] ThreadSanitizer: data race extension.c:755 in set_active_ext_lang(extension_language_defn const*) Date: Fri, 23 Feb 2024 15:22:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: dap X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot 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=3D31263 --- Comment #3 from Tom Tromey --- This one is kind of ugly because we basically need a mutex so that set_quit_flag can safely be called off the main thread. I must have thought this was an atomic operation when I wrote this patch :( Anyway the issue is that some hosts don't have threading support in the c++ compiler, so making a mutex is difficult. Not sure what to do there. I'm leaning toward just allowing the race in this situation, but disabling DAP would be a possibility as well. --=20 You are receiving this mail because: You are on the CC list for the bug.=