From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26396 invoked by alias); 26 Jun 2014 12:43:57 -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 26372 invoked by uid 48); 26 Jun 2014 12:43:56 -0000 From: "palves at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/17093] New: follow-fork child, infcall that forks broken Date: Thu, 26 Jun 2014 12:43: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: 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-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/msg00492.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17093 Bug ID: 17093 Summary: follow-fork child, infcall that forks broken Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: palves at redhat dot com $ ./gdb ~/gdb/tests/main ... GNU gdb (GDB) 7.8.50.20140626-cvs ... (gdb) start Temporary breakpoint 1 at 0x4004cf: file main.c, line 5. Starting program: /home/pedro/gdb/tests/main Temporary breakpoint 1, main (argc=1, argv=0x7fffffffd928) at main.c:5 5 return 0; (gdb) set follow-fork-mode child (gdb) set detach-on-fork off (gdb) p fork () [New process 1887] Program received signal SIGSEGV, Segmentation fault. [Switching to process 1887] The program received a signal in another thread while making a function call from GDB. Evaluation of the expression containing the function (__libc_fork) will be abandoned. When the function is done executing, GDB will silently stop. (gdb) -- You are receiving this mail because: You are on the CC list for the bug.