Bug 31751 - re-enable background DWARF reading
Summary: re-enable background DWARF reading
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on: 29286 31626 31713 31715 31716 30837 31260 31262 31264
Blocks: 29366
  Show dependency treegraph
 
Reported: 2024-05-17 14:13 UTC by Tom Tromey
Modified: 2024-05-22 16:20 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Tromey 2024-05-17 14:13:53 UTC
Background DWARF reading (see bug #29942) caused a number
of races.  (I'll change the known ones to block this bug.)

I think we should disable background reading for gdb 15,
then fix the bugs and try to re-enable it for a later release.
Comment 2 Sourceware Commits 2024-05-22 16:16:19 UTC
The master branch has been updated by Tom Tromey <tromey@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b013bd16630fb243d6fa0ee5d4c4eae77f6e5176

commit b013bd16630fb243d6fa0ee5d4c4eae77f6e5176
Author: Tom Tromey <tromey@adacore.com>
Date:   Fri May 17 08:55:46 2024 -0600

    Default dwarf_synchronous to true
    
    Unfortunately the background DWARF reading series introduced a number
    of races, as repored by thread sanitizer.  This patch changes gdb to
    disable this feature for the time being -- in particular for the gdb
    15 release.
    
    I've filed a bug and linked all the known races to it.  Once those are
    fixed we can re-enable this feature by default.
    
    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31751
Comment 3 Tom Tromey 2024-05-22 16:20:39 UTC
That patch disabled the feature, but we should leave
this bug open for re-enabling the feature and eventually
backing out that patch.