public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug cli/13727] New: [linux-nat] GDB hangs, it does not kill all inferiors
@ 2012-02-23 10:16 jan.kratochvil at redhat dot com
2012-10-24 16:37 ` [Bug cli/13727] " palves at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-02-23 10:16 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=13727
Bug #: 13727
Summary: [linux-nat] GDB hangs, it does not kill all inferiors
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: cli
AssignedTo: unassigned@sourceware.org
ReportedBy: jan.kratochvil@redhat.com
Classification: Unclassified
Target: x86_64-unknown-linux-gnu
gdb ~/t/forkdetach -ex 'set detach-on-fork off' -ex 'set non-stop on' -ex 'set
target-async on'
(gdb) run &
info threads
Id Target Id Frame
7 process 12639 "sleep" (running)
6 process 12630 "sh" (running)
5 process 12626 "sleep" (running)
4 process 12623 "sh" (running)
3 process 12620 "sleep" (running)
2 process 12611 "sh" (running)
* 1 process 12601 "forkdetach" (running)
q
A debugging session is active.
Inferior 10 [process 12648] will be killed.
Inferior 9 [process 12645] will be killed.
Inferior 8 [process 12644] will be killed.
Inferior 7 [process 12639] will be killed.
Inferior 6 [process 12630] will be killed.
Inferior 5 [process 12626] will be killed.
Inferior 4 [process 12623] will be killed.
Inferior 3 [process 12620] will be killed.
Inferior 2 [process 12611] will be killed.
Inferior 1 [process 12601] will be killed.
Quit anyway? (y or n) y
<hang>
#include <unistd.h>
#include <assert.h>
#include <stdio.h>
int
main (void)
{
for (;;)
{
int i;
sleep (5);
puts ("fork");
i = fork ();
assert (i >= 0);
if (i == 0)
{
sleep (1);
execlp ("sh", "sh", "-c", "echo x;sleep 60", NULL);
assert (0);
}
}
}
--
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] 2+ messages in thread
end of thread, other threads:[~2012-10-24 16:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-23 10:16 [Bug cli/13727] New: [linux-nat] GDB hangs, it does not kill all inferiors jan.kratochvil at redhat dot com
2012-10-24 16:37 ` [Bug cli/13727] " 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).