From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25355 invoked by alias); 25 Apr 2013 14:11:46 -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 25332 invoked by uid 48); 25 Apr 2013 14:11:46 -0000 From: "speedaemon1 at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug c++/15397] New: GDB fails on fork with exec* or posix-spawn* Date: Thu, 25 Apr 2013 14:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: speedaemon1 at gmail 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 X-SW-Source: 2013-q2/txt/msg00145.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15397 Bug #: 15397 Summary: GDB fails on fork with exec* or posix-spawn* Product: gdb Version: 7.3 Status: NEW Severity: critical Priority: P2 Component: c++ AssignedTo: unassigned@sourceware.org ReportedBy: speedaemon1@gmail.com Classification: Unclassified Created attachment 6997 --> http://sourceware.org/bugzilla/attachment.cgi?id=6997 GDB Trace of execution using posix_spawn() When attempting to debug a application in C++ that implements fork() to execute another process through either exec* or posix_spawn* GDB fails. 132,000 ~"/home/dkg/src/gdb/gdb-7.3/gdb/thread.c:620: internal-error: is_thread_state: Assertion `tp\' failed.\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable.\nQu\ it this debugging session? " Using fork() alone executes correctly. Only when using exec* or posix_spawn* generates the issue. Attempting this on the following platform OS: Debian Squeeze (Linux 2.6.32-5-amd64) GDB version 7.3 (Debian Backport) I am using Eclipse CDT IDE to interact with GDB and attached is the GDB Trace. -- 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.