public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/30695] New: [gdb, tsan] FAIL: gdb.base/bg-exec-sigint-bp-cond.exp: no force memory write: SIGINT does not interrupt background execution
@ 2023-07-29  7:18 vries at gcc dot gnu.org
  2023-07-29  7:29 ` [Bug gdb/30695] " vries at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2023-07-29  7:18 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 30695
           Summary: [gdb, tsan] FAIL: gdb.base/bg-exec-sigint-bp-cond.exp:
                    no force memory write: SIGINT does not interrupt
                    background execution
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

With an -fsanitize=thread build, I ran into:
...
FAIL: gdb.base/bg-exec-sigint-bp-cond.exp: no force memory write: SIGINT does
not interrupt background execution
FAIL: gdb.base/bg-exec-sigint-bp-cond.exp: force memory write: SIGINT does not
interrupt background execution
...

The first in more detail:
...
(gdb) PASS: gdb.base/bg-exec-sigint-bp-cond.exp: no force memory write: break
foo if <condition>
c&^M
Continuing.^M
(gdb) ^M
Breakpoint 2, foo () at
/labs/tdevries/gdb/src/gdb/testsuite/gdb.base/bg-exec-sigint-bp-cond.c:23^M
23        return 0;^M
FAIL: gdb.base/bg-exec-sigint-bp-cond.exp: no force memory write: SIGINT does
not interrupt background execution
...

Instead, we expect to see:
...
(gdb) PASS: gdb.base/bg-exec-sigint-bp-cond.exp: no force memory write: break
foo if <condition>
c&^M
Continuing.^M
(gdb) Quit^M
(gdb) quit_count=1
Quit^M
(gdb) quit_count=2
Quit^M
(gdb) quit_count=3
Quit^M
(gdb) quit_count=4
Quit^M
(gdb) quit_count=5
Quit^M
(gdb) quit_count=6
Quit^M
(gdb) quit_count=7
Quit^M
(gdb) quit_count=8
Quit^M
(gdb) quit_count=9
Quit^M
(gdb) quit_count=10
^M
Breakpoint 2, foo () at
/data/vries/gdb/src/gdb/testsuite/gdb.base/bg-exec-sigint-bp-cond.c:23^M
23        return 0;^M
PASS: gdb.base/bg-exec-sigint-bp-cond.exp: no force memory write: SIGINT does
not interrupt background execution
...

Triggering this may be a timing issue, this is on a fast server with lots of
memory.

On my laptop, the test passes with an -fsanitize=thread build.

-- 
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:[~2023-08-02 14:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-29  7:18 [Bug gdb/30695] New: [gdb, tsan] FAIL: gdb.base/bg-exec-sigint-bp-cond.exp: no force memory write: SIGINT does not interrupt background execution vries at gcc dot gnu.org
2023-07-29  7:29 ` [Bug gdb/30695] " vries at gcc dot gnu.org
2023-08-02  0:35 ` vries at gcc dot gnu.org
2023-08-02 14:38 ` vries at gcc dot gnu.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).