public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/27244] New: GDB doesn't catch SIGCHLD
@ 2021-01-25 21:13 evans_chen1 at dell dot com
  2023-01-04  1:50 ` [Bug tdep/27244] " tromey at sourceware dot org
  0 siblings, 1 reply; 2+ messages in thread
From: evans_chen1 at dell dot com @ 2021-01-25 21:13 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 27244
           Summary: GDB doesn't catch SIGCHLD
           Product: gdb
           Version: 10.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: evans_chen1 at dell dot com
  Target Milestone: ---

Created attachment 13154
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13154&action=edit
sig.c

GDB Version: GNU gdb (GDB) 10.1 [GDB v10.1 for FreeBSD]
Machine: Virtualbox FreeBSD 12.2 RELEASE amd64 VHD virtual machine
Compiler used to compile GDB: FreeBSD clang version 8.0.1
Compiler used to compile the program: FreeBSD clang version 10.0.1, target
x86_64-unknown-freebsd12.2
Command used to compile: clang -ggdb sig.c -o sig
Source file “sig.c” is attached.

Description of incorrect behavior:
The following output was produced. For some reason, the SIGCHLD catchpoint
didn't activate and "Program received SIGCHLD" was not printed.

---BEGIN OUTPUT---

(gdb) catch signal SIGCHLD
Catchpoint 1 (signal SIGCHLD)
(gdb) r
Starting program: /root/sig
Finished.
[Inferior 1 (process 12929) exited normally]
(gdb) handle SIGCHLD print
Signal        Stop      Print   Pass to program Description
SIGCHLD       No        Yes     Yes             Child status changed
(gdb) r
Starting program: /root/sig
Finished.
[Inferior 1 (process 12983) exited normally]

---END OUTPUT---

-- 
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 tdep/27244] GDB doesn't catch SIGCHLD
  2021-01-25 21:13 [Bug gdb/27244] New: GDB doesn't catch SIGCHLD evans_chen1 at dell dot com
@ 2023-01-04  1:50 ` tromey at sourceware dot org
  0 siblings, 0 replies; 2+ messages in thread
From: tromey at sourceware dot org @ 2023-01-04  1:50 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org
          Component|gdb                         |tdep

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
FWIW this works ok on Linux:

Catchpoint 1 (signal SIGCHLD), 0x00007ffff7c3ec6b in kill () from
/lib64/libc.so.6

Moving it to "tdep" since it seems target-dependent.

-- 
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-01-04  1:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-25 21:13 [Bug gdb/27244] New: GDB doesn't catch SIGCHLD evans_chen1 at dell dot com
2023-01-04  1:50 ` [Bug tdep/27244] " tromey at sourceware dot 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).