From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6AC3D3857C7D; Tue, 12 Jul 2022 15:20:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6AC3D3857C7D From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug build/29359] New: [gdb/build] Flush out thread sanitizer issues Date: Tue, 12 Jul 2022 15:20:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2022 15:20:19 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29359 Bug ID: 29359 Summary: [gdb/build] Flush out thread sanitizer issues Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: build Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- In PR29286 I ran into a few race condition that are now hard to reproduce, = but not fixed AFAICT. See f.i. the patch at PR 29286 comment 6. Which made me wonder which other race conditions are lurking. I wonder if there's anything I can do to flush these out. >>From what I understand, the race conditions are due to executing this: ... void cooked_index::finalize () { m_future =3D gdb::thread_pool::g_thread_pool->post_task ([this] () { do_finalize (); }); } ... and not waiting for it, so perhaps adding a sleep () here could help? --=20 You are receiving this mail because: You are on the CC list for the bug.=