public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/30542] New: [gdb] PASS: gdb.base/watch-before-fork.exp: test: continue to watchpoint
@ 2023-06-12 13:19 vries at gcc dot gnu.org
  2023-06-14  5:52 ` [Bug gdb/30542] [gdb] FAIL: gdb.base/watch-before-fork.exp: test: continue to catch fork vries at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2023-06-12 13:19 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 30542
           Summary: [gdb] PASS: gdb.base/watch-before-fork.exp: test:
                    continue to watchpoint
           Product: gdb
           Version: 13.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

With a gdb 13.2 based package, on openSUSE Leap 15.4 powerpc64le, I run into:
...
(gdb) PASS: gdb.base/watch-before-fork.exp: test: continue to watchpoint
continue^M
Continuing.^M
[Detaching after fork from child process 19572]^M
^M
Hardware access (read/write) watchpoint 2: global_var^M
^M
Value = 1^M
0x00000001000007d0 in __do_global_dtors_aux ()^M
(gdb) FAIL: gdb.base/watch-before-fork.exp: test: continue to catch fork
...

One curious thing about the test-case is that it doesn't exercise the scenario
listed in the PR and indeed, the commit message: it doesn't do "catch fork".

However, if I checkout the commit and run the test, it passes, and when I
revert the fix, it fails, so the test-case does function as a regression test
for the fix.

Anyway, I can't think of a reason why __do_global_dtors_aux should be accessing
global_var, so for now I'm classifying as component gdb rather than testsuite.

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

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

* [Bug gdb/30542] [gdb] FAIL: gdb.base/watch-before-fork.exp: test: continue to catch fork
  2023-06-12 13:19 [Bug gdb/30542] New: [gdb] PASS: gdb.base/watch-before-fork.exp: test: continue to watchpoint vries at gcc dot gnu.org
@ 2023-06-14  5:52 ` vries at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2023-06-14  5:52 UTC (permalink / raw)
  To: gdb-prs

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

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[gdb] PASS:                 |[gdb] FAIL:
                   |gdb.base/watch-before-fork. |gdb.base/watch-before-fork.
                   |exp: test: continue to      |exp: test: continue to
                   |watchpoint                  |catch fork

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Fix summary.

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

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

end of thread, other threads:[~2023-06-14  5:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-12 13:19 [Bug gdb/30542] New: [gdb] PASS: gdb.base/watch-before-fork.exp: test: continue to watchpoint vries at gcc dot gnu.org
2023-06-14  5:52 ` [Bug gdb/30542] [gdb] FAIL: gdb.base/watch-before-fork.exp: test: continue to catch fork 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).