From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D5ACF3858C53; Sun, 25 Sep 2022 18:53:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D5ACF3858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664132035; bh=rxClaU0Xn9tw95Woi+YfvgXxEGOc8/QYhR7fad42G4s=; h=From:To:Subject:Date:From; b=uFCgJAPq7r8IIXG4A2DO4LPggotYVc55TieQafiGkFA66h3SAIkiod6xVynPtZzgl L53CxuPhiX0/KPjzAj2w2UtgwmCCYnMK8mNc17qAkzArmstMe9jebuSH0KLlDPFS06 qEF28J0ZB2m0Lc04//ZS45PoOTwcqyKvlPjLLWTQ= From: "diskpoppy at proton dot me" To: gdb-prs@sourceware.org Subject: [Bug gdb/29612] New: Does not follow child processes spawned with posix_spawn() Date: Sun, 25 Sep 2022 18:53:55 +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: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: diskpoppy at proton dot me 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 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=3D29612 Bug ID: 29612 Summary: Does not follow child processes spawned with posix_spawn() Product: gdb Version: 12.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: diskpoppy at proton dot me Target Milestone: --- I'm using homebrew gdb 12.1 on macOS 11.6.4 I have "set follow-fork-mode child" I expected for gdb to follow the process spawned with posix_spawn Minimal program using posix_spawn (that spawns itself, but it could also sp= awn other executables): #include #define NULL 0 extern char **environ; int main(int argc, char** argv) { if(argc > 1 && argv[1][0] =3D=3D 'g') { return 1; } pid_t pid_this =3D 0; char * argv_this[] =3D {"test_program", "g", NULL}; posix_spawn(&pid_this, "/path/test_program", NULL, NULL, argv_this, environ); return 0; } --=20 You are receiving this mail because: You are on the CC list for the bug.=