public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/31715] New: race condition in cooked_index_shard::finalize
@ 2024-05-09  9:35 bernd.edlinger at hotmail dot de
  2024-05-09  9:36 ` [Bug gdb/31715] " bernd.edlinger at hotmail dot de
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: bernd.edlinger at hotmail dot de @ 2024-05-09  9:35 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 31715
           Summary: race condition in cooked_index_shard::finalize
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: bernd.edlinger at hotmail dot de
  Target Milestone: ---

There are a number of test cases where a thread sanitizer
built on host=x86_64-linux-gnu, using gcc 12.2.0 (Debian 12.2.0-14),
reports race conditons.
gdb.base/align-c++.exp
gdb.base/align-c.exp
gdb.base/batch-preserve-term-settings.exp
gdb.base/break.exp (several times)
gdb.base/cached-source-file.exp
gdb.base/chng-syms.exp
... etc. etc.

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

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

* [Bug gdb/31715] race condition in cooked_index_shard::finalize
  2024-05-09  9:35 [Bug gdb/31715] New: race condition in cooked_index_shard::finalize bernd.edlinger at hotmail dot de
@ 2024-05-09  9:36 ` bernd.edlinger at hotmail dot de
  2024-05-09  9:37 ` bernd.edlinger at hotmail dot de
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bernd.edlinger at hotmail dot de @ 2024-05-09  9:36 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
Created attachment 15503
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15503&action=edit
tsan output from gdb.base/align-c++.exp

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

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

* [Bug gdb/31715] race condition in cooked_index_shard::finalize
  2024-05-09  9:35 [Bug gdb/31715] New: race condition in cooked_index_shard::finalize bernd.edlinger at hotmail dot de
  2024-05-09  9:36 ` [Bug gdb/31715] " bernd.edlinger at hotmail dot de
@ 2024-05-09  9:37 ` bernd.edlinger at hotmail dot de
  2024-05-09  9:38 ` bernd.edlinger at hotmail dot de
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bernd.edlinger at hotmail dot de @ 2024-05-09  9:37 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
Created attachment 15504
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15504&action=edit
tsan output from gdb.base/align-c.exp

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

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

* [Bug gdb/31715] race condition in cooked_index_shard::finalize
  2024-05-09  9:35 [Bug gdb/31715] New: race condition in cooked_index_shard::finalize bernd.edlinger at hotmail dot de
  2024-05-09  9:36 ` [Bug gdb/31715] " bernd.edlinger at hotmail dot de
  2024-05-09  9:37 ` bernd.edlinger at hotmail dot de
@ 2024-05-09  9:38 ` bernd.edlinger at hotmail dot de
  2024-05-09  9:43 ` bernd.edlinger at hotmail dot de
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bernd.edlinger at hotmail dot de @ 2024-05-09  9:38 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #3 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
Created attachment 15505
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15505&action=edit
tsan output from gdb.base/batch-preserve-term-settings.exp

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

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

* [Bug gdb/31715] race condition in cooked_index_shard::finalize
  2024-05-09  9:35 [Bug gdb/31715] New: race condition in cooked_index_shard::finalize bernd.edlinger at hotmail dot de
                   ` (2 preceding siblings ...)
  2024-05-09  9:38 ` bernd.edlinger at hotmail dot de
@ 2024-05-09  9:43 ` bernd.edlinger at hotmail dot de
  2024-05-17 14:14 ` tromey at sourceware dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bernd.edlinger at hotmail dot de @ 2024-05-09  9:43 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #4 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
Created attachment 15506
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15506&action=edit
tsan output from gdb.base/break.exp

These are some samples how the tsan reports look like
They are all very similar to those.

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

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

* [Bug gdb/31715] race condition in cooked_index_shard::finalize
  2024-05-09  9:35 [Bug gdb/31715] New: race condition in cooked_index_shard::finalize bernd.edlinger at hotmail dot de
                   ` (3 preceding siblings ...)
  2024-05-09  9:43 ` bernd.edlinger at hotmail dot de
@ 2024-05-17 14:14 ` tromey at sourceware dot org
  2024-05-17 15:21 ` tromey at sourceware dot org
  2024-05-18 14:17 ` bernd.edlinger at hotmail dot de
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2024-05-17 14:14 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org
             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] 8+ messages in thread

* [Bug gdb/31715] race condition in cooked_index_shard::finalize
  2024-05-09  9:35 [Bug gdb/31715] New: race condition in cooked_index_shard::finalize bernd.edlinger at hotmail dot de
                   ` (4 preceding siblings ...)
  2024-05-17 14:14 ` tromey at sourceware dot org
@ 2024-05-17 15:21 ` tromey at sourceware dot org
  2024-05-18 14:17 ` bernd.edlinger at hotmail dot de
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2024-05-17 15:21 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #5 from Tom Tromey <tromey at sourceware dot org> ---
Can you try the dwarf synchronous change for this one?
https://sourceware.org/pipermail/gdb-patches/2024-May/209267.html

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

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

* [Bug gdb/31715] race condition in cooked_index_shard::finalize
  2024-05-09  9:35 [Bug gdb/31715] New: race condition in cooked_index_shard::finalize bernd.edlinger at hotmail dot de
                   ` (5 preceding siblings ...)
  2024-05-17 15:21 ` tromey at sourceware dot org
@ 2024-05-18 14:17 ` bernd.edlinger at hotmail dot de
  6 siblings, 0 replies; 8+ messages in thread
From: bernd.edlinger at hotmail dot de @ 2024-05-18 14:17 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #6 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
Confirmed.
The reported race conditions are no longer reproducible with your patch.

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

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

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

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-09  9:35 [Bug gdb/31715] New: race condition in cooked_index_shard::finalize bernd.edlinger at hotmail dot de
2024-05-09  9:36 ` [Bug gdb/31715] " bernd.edlinger at hotmail dot de
2024-05-09  9:37 ` bernd.edlinger at hotmail dot de
2024-05-09  9:38 ` bernd.edlinger at hotmail dot de
2024-05-09  9:43 ` bernd.edlinger at hotmail dot de
2024-05-17 14:14 ` tromey at sourceware dot org
2024-05-17 15:21 ` tromey at sourceware dot org
2024-05-18 14:17 ` bernd.edlinger at hotmail dot de

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).