From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C2AFD385803B; Mon, 25 Jan 2021 21:13:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C2AFD385803B From: "evans_chen1 at dell dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/27244] New: GDB doesn't catch SIGCHLD Date: Mon, 25 Jan 2021 21:13:18 +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: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: evans_chen1 at dell dot com X-Bugzilla-Status: UNCONFIRMED 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 attachments.created 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2021 21:13:18 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27244 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=3D13154&action=3Ded= it 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 =E2=80=9Csig.c=E2=80=9D 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--- --=20 You are receiving this mail because: You are on the CC list for the bug.=