From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13872 invoked by alias); 16 May 2014 17:48:35 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 13836 invoked by uid 48); 16 May 2014 17:48:34 -0000 From: "dje at google dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/16953] New: New inferior for each rerun of a simple fork/exec of hello, where hello binary is missing. Date: Fri, 16 May 2014 17:48:00 -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: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dje at google dot com X-Bugzilla-Status: NEW 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 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q2/txt/msg00238.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16953 Bug ID: 16953 Summary: New inferior for each rerun of a simple fork/exec of hello, where hello binary is missing. Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: dje at google dot com fork-exec-hello.c: #include #include #include const char hello[] = "./hello.x64"; int main () { int child; int status; child = fork (); if (child < 0) { perror ("fork"); exit (1); } if (child == 0) { execl (hello, hello, NULL); perror ("execl"); } else { waitpid (child, &status, 0); } return 0; } hello.c: well, you know ... With hello.x64 binary missing: (gdb) set follow-fork child (gdb) r Starting program: /home/dje/src/play/fork-exec-hello.x64 [New process 6671] execl: No such file or directory [Inferior 2 (process 6671) exited normally] (gdb) i inf Num Description Executable * 2 /home/dje/src/play/fork-exec-hello.x64 1 /home/dje/src/play/fork-exec-hello.x64 (gdb) r Starting program: /home/dje/src/play/fork-exec-hello.x64 [New process 6674] execl: No such file or directory [Inferior 3 (process 6674) exited normally] (gdb) i inf Num Description Executable * 3 /home/dje/src/play/fork-exec-hello.x64 2 /home/dje/src/play/fork-exec-hello.x64 1 /home/dje/src/play/fork-exec-hello.x64 (gdb) r Starting program: /home/dje/src/play/fork-exec-hello.x64 [New process 6677] execl: No such file or directory [Inferior 4 (process 6677) exited normally] (gdb) i inf Num Description Executable * 4 /home/dje/src/play/fork-exec-hello.x64 3 /home/dje/src/play/fork-exec-hello.x64 2 /home/dje/src/play/fork-exec-hello.x64 1 /home/dje/src/play/fork-exec-hello.x64 (gdb) -- You are receiving this mail because: You are on the CC list for the bug.