public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15397] New: GDB fails on fork with exec* or posix-spawn*
@ 2013-04-25 14:11 speedaemon1 at gmail dot com
2013-04-25 14:13 ` [Bug c++/15397] " speedaemon1 at gmail dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: speedaemon1 at gmail dot com @ 2013-04-25 14:11 UTC (permalink / raw)
To: gdb-prs
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/15397] GDB fails on fork with exec* or posix-spawn*
2013-04-25 14:11 [Bug c++/15397] New: GDB fails on fork with exec* or posix-spawn* speedaemon1 at gmail dot com
@ 2013-04-25 14:13 ` speedaemon1 at gmail dot com
2013-04-25 14:16 ` [Bug gdb/15397] " speedaemon1 at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: speedaemon1 at gmail dot com @ 2013-04-25 14:13 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15397
--- Comment #1 from speedaemon1 at gmail dot com 2013-04-25 14:13:17 UTC ---
Created attachment 6998
--> http://sourceware.org/bugzilla/attachment.cgi?id=6998
C++ code for test
The attached file contains the code used to test the issue.
--
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug gdb/15397] GDB fails on fork with exec* or posix-spawn*
2013-04-25 14:11 [Bug c++/15397] New: GDB fails on fork with exec* or posix-spawn* speedaemon1 at gmail dot com
2013-04-25 14:13 ` [Bug c++/15397] " speedaemon1 at gmail dot com
2013-04-25 14:16 ` [Bug gdb/15397] " speedaemon1 at gmail dot com
@ 2013-04-25 14:16 ` speedaemon1 at gmail dot com
2013-04-30 15:19 ` palves at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: speedaemon1 at gmail dot com @ 2013-04-25 14:16 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15397
speedaemon1 at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |speedaemon1 at gmail dot
| |com
--
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug gdb/15397] GDB fails on fork with exec* or posix-spawn*
2013-04-25 14:11 [Bug c++/15397] New: GDB fails on fork with exec* or posix-spawn* speedaemon1 at gmail dot com
2013-04-25 14:13 ` [Bug c++/15397] " speedaemon1 at gmail dot com
@ 2013-04-25 14:16 ` speedaemon1 at gmail dot com
2013-04-25 14:16 ` speedaemon1 at gmail dot com
2013-04-30 15:19 ` palves at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: speedaemon1 at gmail dot com @ 2013-04-25 14:16 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15397
speedaemon1 at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug gdb/15397] GDB fails on fork with exec* or posix-spawn*
2013-04-25 14:11 [Bug c++/15397] New: GDB fails on fork with exec* or posix-spawn* speedaemon1 at gmail dot com
` (2 preceding siblings ...)
2013-04-25 14:16 ` speedaemon1 at gmail dot com
@ 2013-04-30 15:19 ` palves at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: palves at redhat dot com @ 2013-04-30 15:19 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15397
Pedro Alves <palves at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |palves at redhat dot com
Resolution| |WORKSFORME
--- Comment #2 from Pedro Alves <palves at redhat dot com> 2013-04-30 15:19:51 UTC ---
Please try a more recent GDB; we've just released 7.6.
That said, I've tried it myself, on the command line, with:
$ gdb -i=mi pr6998 -ex "set target-async on" -ex "set non-stop on" -ex "set
detach-on-fork off"
both mainline and 7.6, and I saw no crash.
Please reopen if you can reproduce this with 7.6 or mainline.
Thanks.
--
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-04-30 15:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-25 14:11 [Bug c++/15397] New: GDB fails on fork with exec* or posix-spawn* speedaemon1 at gmail dot com
2013-04-25 14:13 ` [Bug c++/15397] " speedaemon1 at gmail dot com
2013-04-25 14:16 ` [Bug gdb/15397] " speedaemon1 at gmail dot com
2013-04-25 14:16 ` speedaemon1 at gmail dot com
2013-04-30 15:19 ` palves at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).