From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11215 invoked by alias); 25 Oct 2012 15:17:59 -0000 Received: (qmail 11195 invoked by uid 48); 25 Oct 2012 15:17:57 -0000 From: "palves at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/14766] New: vfork child exit with "set follow-fork-mode child" broken Date: Thu, 25 Oct 2012 15:17: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-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: palves at redhat 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-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2012-q4/txt/msg00142.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14766 Bug #: 14766 Summary: vfork child exit with "set follow-fork-mode child" broken Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: gdb AssignedTo: unassigned@sourceware.org ReportedBy: palves@redhat.com Classification: Unclassified #include #include int main () { int pid; pid = vfork (); if (pid == 0) { printf ("I'm the child!\n"); _exit (0); } else { printf ("I'm the proud parent of child #%d!\n", pid); } return 0; } $ ./gdb ./testsuite/gdb.base/foll-vfork-exit -ex "set follow-fork-mode child" GNU gdb (GDB) 7.5.50.20121008-cvs ... (gdb) r Starting program: /home/pedro/gdb/mygit/build/gdb/testsuite/gdb.base/foll-vfork-exit [New process 4673] I'm the child! I'm the proud parent of child #4673! Couldn't get registers: No such process. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Couldn't get registers: No such process. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Couldn't get registers: No such process. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (gdb) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.