public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/31626] New: [gdb/symtab] data races in gdb.rust/dwindex.exp
@ 2024-04-10 11:27 vries at gcc dot gnu.org
  2024-04-10 15:19 ` [Bug symtab/31626] " tromey at sourceware dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2024-04-10 11:27 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31626

            Bug ID: 31626
           Summary: [gdb/symtab] data races in gdb.rust/dwindex.exp
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

Created attachment 15457
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15457&action=edit
gdb.log

I did a run with fedora asahi 39 and -fsanitize=thread, and ran into a issues I
haven't seen before in test-case gdb.rust/dwindex.exp:
...
SUMMARY: ThreadSanitizer: data race bfd.h:2449 in bfd_get_section_limit_octets
SUMMARY: ThreadSanitizer: data race /home/vries/gdb/src/bfd/bfdio.c:514 in
bfd_seek
...

Rust compiler version:
...
$ rustc --version
rustc 1.77.0 (aedd173a2 2024-03-17) (Fedora 1.77.0-1.fc39)
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug symtab/31626] [gdb/symtab] data races in gdb.rust/dwindex.exp
  2024-04-10 11:27 [Bug symtab/31626] New: [gdb/symtab] data races in gdb.rust/dwindex.exp vries at gcc dot gnu.org
@ 2024-04-10 15:19 ` tromey at sourceware dot org
  2024-05-17 14:16 ` tromey at sourceware dot org
  2024-05-17 14:25 ` tromey at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2024-04-10 15:19 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31626

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org
             Blocks|                            |29366


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=29366
[Bug 29366] [meta] New DWARF indexer meta bug
-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug symtab/31626] [gdb/symtab] data races in gdb.rust/dwindex.exp
  2024-04-10 11:27 [Bug symtab/31626] New: [gdb/symtab] data races in gdb.rust/dwindex.exp vries at gcc dot gnu.org
  2024-04-10 15:19 ` [Bug symtab/31626] " tromey at sourceware dot org
@ 2024-05-17 14:16 ` tromey at sourceware dot org
  2024-05-17 14:25 ` tromey at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2024-05-17 14:16 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31626

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |31751


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=31751
[Bug 31751] re-enable background DWARF reading
-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug symtab/31626] [gdb/symtab] data races in gdb.rust/dwindex.exp
  2024-04-10 11:27 [Bug symtab/31626] New: [gdb/symtab] data races in gdb.rust/dwindex.exp vries at gcc dot gnu.org
  2024-04-10 15:19 ` [Bug symtab/31626] " tromey at sourceware dot org
  2024-05-17 14:16 ` tromey at sourceware dot org
@ 2024-05-17 14:25 ` tromey at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2024-05-17 14:25 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31626

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
Both load_auto_scripts_for_objfile and gdb_bfd_map_section call
bfd_get_full_section_contents, which might seek/read.

The BFD threading approach is that really only one thread
can use a BFD at a time, so in this case we probably need
the locking in gdb.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-05-17 14:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-10 11:27 [Bug symtab/31626] New: [gdb/symtab] data races in gdb.rust/dwindex.exp vries at gcc dot gnu.org
2024-04-10 15:19 ` [Bug symtab/31626] " tromey at sourceware dot org
2024-05-17 14:16 ` tromey at sourceware dot org
2024-05-17 14:25 ` tromey at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).