From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 21C1C385840D; Mon, 12 Jun 2023 13:19:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 21C1C385840D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1686575970; bh=WwKoEtWqPh3KvtvQ2kvqpbn3o5CJWjadIZISDkHlooE=; h=From:To:Subject:Date:From; b=ckB1CKmVZb8FiI8UChBO5hFIBNvkqHZZyTS9Azg487P8/SPCBOzmb03spBXoKD5Y9 vRX69NboNuDIKL/bnXSpn010b+KA/67DTxP9TXHcuzR6oRSnOOV01hP/4D5mHNYEkf 7G7rKwIiNJHfzyLSO737DRLCV3rFp5ejc8CrkBfU= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/30542] New: [gdb] PASS: gdb.base/watch-before-fork.exp: test: continue to watchpoint Date: Mon, 12 Jun 2023 13:19:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 13.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30542 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 int= o: ... (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 =3D 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 scena= rio 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 te= st for the fix. Anyway, I can't think of a reason why __do_global_dtors_aux should be acces= sing global_var, so for now I'm classifying as component gdb rather than testsui= te. --=20 You are receiving this mail because: You are on the CC list for the bug.=