public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/30547] [gdb, s390x, ppc64] segfault in for_each_block Date: Tue, 31 Oct 2023 08:28:58 +0000 [thread overview] Message-ID: <bug-30547-4717-hQ5xD7FTzr@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-30547-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=30547 --- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> --- Reproduces (100% sofar, but not always at the same point) for me with: ... gdb -q -batch -x ./build/gdb/testsuite/outputs/gdb.base/vfork-follow-parent/gdb.in.2 ... Adding debug prints in target-dcache.c: ... fprintf (stderr, "set (%p): %p\n", current_program_space->aspace, dcache); ... fprintf (stderr, "get (%p): %p\n", current_program_space->aspace, res); ... gives us: ... $ gdb -q -batch -x ./build/gdb/testsuite/outputs/gdb.base/vfork-follow-parent/gdb.in.2 No breakpoints or watchpoints. Breakpoint 1 at 0x100007e4: file /home/vries/gdb/src/gdb/testsuite/gdb.base/vfork-follow-parent.c, line 34. get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) get (0x1000ae22f50): (nil) set (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 Breakpoint 1, main (argc=1, argv=0x3ffffffff388) at /home/vries/gdb/src/gdb/testsuite/gdb.base/vfork-follow-parent.c:34 34 alarm (30); No breakpoints or watchpoints. Breakpoint 2 at 0x100007ac: file /home/vries/gdb/src/gdb/testsuite/gdb.base/vfork-follow-parent.c, line 29. get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 Can not resume the parent process over vfork in the foreground while holding the child stopped. Try "set detach-on-fork" or "set schedule-multiple". get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 0x00003fffb7d4f778 in .__vfork () from /lib64/libc.so.6 Can not resume the parent process over vfork in the foreground while holding the child stopped. Try "set detach-on-fork" or "set schedule-multiple". 0x00003fffb7d4f778 in .__vfork () from /lib64/libc.so.6 [New inferior 2 (process 62858)] get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 [Inferior 2 (process 62858) exited normally] [Switching to inferior 1 [process 62856] (/home/vries/gdb/build/gdb/testsuite/outputs/gdb.base/vfork-follow-parent/vfork-follow-parent-exit)] [Switching to thread 1.1 (process 62856)] #0 0x00003fffb7d4f778 in .__vfork () from /lib64/libc.so.6 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 $1 = 1 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 get (0x1000ae22f50): 0x1000b15fbe0 Reading symbols from /home/vries/gdb/build/gdb/testsuite/outputs/gdb.base/vfork-follow-parent/vfork-follow-parent-exit... get (0x1000ae22f50): 0x785f77616b650000 Fatal signal: Segmentation fault ... -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2023-10-31 8:29 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-06-13 13:16 [Bug gdb/30547] New: [gdb, s390x] " vries at gcc dot gnu.org 2023-10-31 8:02 ` [Bug gdb/30547] [gdb, s390x, ppc64] " vries at gcc dot gnu.org 2023-10-31 8:28 ` vries at gcc dot gnu.org [this message] 2023-10-31 15:53 ` vries at gcc dot gnu.org 2023-11-01 9:42 ` vries at gcc dot gnu.org 2023-11-01 9:56 ` vries at gcc dot gnu.org 2023-11-02 10:49 ` vries at gcc dot gnu.org 2023-11-04 15:57 ` vries at gcc dot gnu.org 2023-11-28 9:31 ` cvs-commit at gcc dot gnu.org 2023-11-28 9:31 ` cvs-commit at gcc dot gnu.org 2023-11-28 9:54 ` vries at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-30547-4717-hQ5xD7FTzr@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).