From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 51B603858D32; Fri, 31 Mar 2023 14:54:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 51B603858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1680274494; bh=ougzw91ifLEv230yMIgMcXMhyriIHL68INuhWv8w9J8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=x0TJf2xDCzInv6zunIkQ9vOY8SekZd7Q/f7ET19u9zZR4HNrHCvRJBwX3p/gxicj9 W3N57P73eM0zjMJRrQki1hy+m+YrVg+SaMjRWaZWB8V/O63wfygi8hx9n6es0f6YFq 8c9Fp9s8z5ncWYnI8pPXvbV5xRk+RRHM61Ave4vc= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/30261] [gdb] segfaults in gdb.base/index-cache.exp Date: Fri, 31 Mar 2023 14:54:52 +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: 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: --- 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=3D30261 --- Comment #10 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Tom Tromey : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D6f214d0f3998= 47b13f979651c3b46befcbb42140 commit 6f214d0f399847b13f979651c3b46befcbb42140 Author: Tom Tromey Date: Fri Mar 24 15:53:22 2023 -0600 Fix race in background index-cache writing Tom de Vries pointed out a bug in the index-cache background writer -- sometimes it will fail. He also noted that it fails when the number of worker threads is set to zero. These turn out to be the same problem -- the cache can't be written to until the per-BFD's "index_table" member is set. This patch avoids the race by rearranging the code slightly, to ensure the cache cannot possibly be written before the member is set. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30261 --=20 You are receiving this mail because: You are on the CC list for the bug.=