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.
https://sourceware.org/pipermail/gdb-patches/2024-May/209267.html
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
That patch disabled the feature, but we should leave this bug open for re-enabling the feature and eventually backing out that patch.