public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/12850] New: `interrupt' command can hang
@ 2011-06-06 20:56 jan.kratochvil at redhat dot com
2011-06-06 20:57 ` [Bug gdb/12850] " jan.kratochvil at redhat dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-06-06 20:56 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12850
Summary: `interrupt' command can hang
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: gdb
AssignedTo: unassigned@sourceware.org
ReportedBy: jan.kratochvil@redhat.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] 7+ messages in thread
* [Bug gdb/12850] `interrupt' command can hang
2011-06-06 20:56 [Bug gdb/12850] New: `interrupt' command can hang jan.kratochvil at redhat dot com
@ 2011-06-06 20:57 ` jan.kratochvil at redhat dot com
2011-06-06 20:58 ` jan.kratochvil at redhat dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-06-06 20:57 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12850
--- Comment #1 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-06-06 20:57:16 UTC ---
set target-async on
set non-stop on
set pagination off
file sleep
run 1h &
shell sleep 1s
interrupt
During `interrupt' the process is already stopped, no new waitpid event gets
reported, GDB hangs indefinitely.
ptrace(PTRACE_CONT, 27365, 0x1, SIG_0) = 0
--- {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=27365, si_status=SIGTRAP,
si_utime=0, si_stime=0} (Child exited) ---
wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], 0, NULL) = 27365
tkill(27365, SIG_0) = 0
tkill(27365, SIGSTOP) = 0
wait4(27365, <unfinished ...>
--
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] 7+ messages in thread
* [Bug gdb/12850] `interrupt' command can hang
2011-06-06 20:56 [Bug gdb/12850] New: `interrupt' command can hang jan.kratochvil at redhat dot com
2011-06-06 20:57 ` [Bug gdb/12850] " jan.kratochvil at redhat dot com
@ 2011-06-06 20:58 ` jan.kratochvil at redhat dot com
2011-06-07 10:09 ` pedro at codesourcery dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-06-06 20:58 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12850
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |x86_64-fedora15-linux-gnu
Host| |x86_64-fedora15-linux-gnu
--- Comment #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-06-06 20:58:03 UTC ---
GNU gdb (GDB) 7.3.50.20110605-cvs
--
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] 7+ messages in thread
* [Bug gdb/12850] `interrupt' command can hang
2011-06-06 20:56 [Bug gdb/12850] New: `interrupt' command can hang jan.kratochvil at redhat dot com
2011-06-06 20:57 ` [Bug gdb/12850] " jan.kratochvil at redhat dot com
2011-06-06 20:58 ` jan.kratochvil at redhat dot com
@ 2011-06-07 10:09 ` pedro at codesourcery dot com
2011-06-07 10:50 ` pedro at codesourcery dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pedro at codesourcery dot com @ 2011-06-07 10:09 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12850
Pedro Alves <pedro at codesourcery dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pedro at codesourcery dot
| |com
--- Comment #3 from Pedro Alves <pedro at codesourcery dot com> 2011-06-07 10:09:14 UTC ---
debug gdb with gdb, replace that shell sleep 1s with a much larger sleep,
and ctrl-c after sourcing the test script, and we'll find:
(top-gdb) bt
#0 0x00007ffff74ec754 in __libc_wait (stat_loc=0x7fffffffd6b8) at
../sysdeps/unix/sysv/linux/wait.c:32
#1 0x0000000000607de2 in shell_escape (arg=0x1e2d4e6 "sleep 10000s",
from_tty=0) at ../../src/gdb/cli/cli-cmds.c:753
#2 0x0000000000600ef5 in do_cfunc (c=0x1e25080, args=0x1e2d4e6 "sleep 10000s",
from_tty=0) at ../../src/gdb/cli/cli-decode.c:67
#3 0x0000000000603fbc in cmd_func (cmd=0x1e25080, args=0x1e2d4e6 "sleep
10000s", from_tty=0) at ../../src/gdb/cli/cli-decode.c:1777
During symbol reading, unsupported tag: 'DW_TAG_const_type'.
#4 0x000000000048905d in execute_command (p=0x1e2d4f1 "s", from_tty=0) at
../../src/gdb/top.c:435
#5 0x000000000048934e in command_loop () at ../../src/gdb/top.c:549
#6 0x0000000000488dc7 in read_command_file (stream=0x1e4e0b0) at
../../src/gdb/top.c:327
#7 0x0000000000606e0f in script_from_file (stream=0x1e4e0b0, file=0x1c2f157
"x") at ../../src/gdb/cli/cli-script.c:1619
#8 0x0000000000607992 in source_script_from_stream (stream=0x1e4e0b0,
file=0x1c2f157 "x") at ../../src/gdb/cli/cli-cmds.c:559
#9 0x0000000000607a27 in source_script_with_search (file=0x1c2f157 "x",
from_tty=1, search_path=0) at ../../src/gdb/cli/cli-cmds.c:590
#10 0x0000000000607c1d in source_command (args=0x1c2f157 "x", from_tty=1) at
../../src/gdb/cli/cli-cmds.c:665
#11 0x0000000000600ef5 in do_cfunc (c=0x1e230f0, args=0x1c2f157 "x",
from_tty=1) at ../../src/gdb/cli/cli-decode.c:67
#12 0x0000000000603fbc in cmd_func (cmd=0x1e230f0, args=0x1c2f157 "x",
from_tty=1) at ../../src/gdb/cli/cli-decode.c:1777
#13 0x000000000048905d in execute_command (p=0x1c2f157 "x", from_tty=1) at
../../src/gdb/top.c:435
#14 0x00000000006cd62c in command_handler (command=0x1c2f150 "source x") at
../../src/gdb/event-top.c:499
#15 0x00000000006cdc3b in command_line_handler (rl=0x1e6ca00 "") at
../../src/gdb/event-top.c:704
#16 0x00000000007f3983 in rl_callback_read_char () at
../../src/readline/callback.c:220
#17 0x00000000006ccc05 in rl_callback_read_char_wrapper (client_data=0x0) at
../../src/gdb/event-top.c:177
#18 0x00000000006cd51b in stdin_event_handler (error=0, client_data=0x0) at
../../src/gdb/event-top.c:434
#19 0x00000000006cbba8 in handle_file_event (data=...) at
../../src/gdb/event-loop.c:831
#20 0x00000000006cb074 in process_event () at ../../src/gdb/event-loop.c:402
shell_escape is not async friendly with it's direct call to "wait" :-/
...
if (pid != -1)
while ((rc = wait (&status)) != pid && rc != -1)
;
--
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] 7+ messages in thread
* [Bug gdb/12850] `interrupt' command can hang
2011-06-06 20:56 [Bug gdb/12850] New: `interrupt' command can hang jan.kratochvil at redhat dot com
` (2 preceding siblings ...)
2011-06-07 10:09 ` pedro at codesourcery dot com
@ 2011-06-07 10:50 ` pedro at codesourcery dot com
2011-06-07 15:25 ` jan.kratochvil at redhat dot com
2011-06-07 17:29 ` jan.kratochvil at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: pedro at codesourcery dot com @ 2011-06-07 10:50 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12850
--- Comment #4 from Pedro Alves <pedro at codesourcery dot com> 2011-06-07 10:50:23 UTC ---
I meant, calling waitpid instead should fix it.
--
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] 7+ messages in thread
* [Bug gdb/12850] `interrupt' command can hang
2011-06-06 20:56 [Bug gdb/12850] New: `interrupt' command can hang jan.kratochvil at redhat dot com
` (3 preceding siblings ...)
2011-06-07 10:50 ` pedro at codesourcery dot com
@ 2011-06-07 15:25 ` jan.kratochvil at redhat dot com
2011-06-07 17:29 ` jan.kratochvil at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-06-07 15:25 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12850
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at sourceware |jan.kratochvil at redhat
|dot org |dot com
--- Comment #5 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-06-07 15:24:56 UTC ---
[patch] Fix `shell' command for async (PR 12850)
http://sourceware.org/ml/gdb-patches/2011-06/msg00095.html
--
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] 7+ messages in thread
* [Bug gdb/12850] `interrupt' command can hang
2011-06-06 20:56 [Bug gdb/12850] New: `interrupt' command can hang jan.kratochvil at redhat dot com
` (4 preceding siblings ...)
2011-06-07 15:25 ` jan.kratochvil at redhat dot com
@ 2011-06-07 17:29 ` jan.kratochvil at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-06-07 17:29 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12850
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #6 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-06-07 17:28:30 UTC ---
Checked in:
http://sourceware.org/ml/gdb-cvs/2011-06/msg00039.html
--
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] 7+ messages in thread
end of thread, other threads:[~2011-06-07 17:29 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-06 20:56 [Bug gdb/12850] New: `interrupt' command can hang jan.kratochvil at redhat dot com
2011-06-06 20:57 ` [Bug gdb/12850] " jan.kratochvil at redhat dot com
2011-06-06 20:58 ` jan.kratochvil at redhat dot com
2011-06-07 10:09 ` pedro at codesourcery dot com
2011-06-07 10:50 ` pedro at codesourcery dot com
2011-06-07 15:25 ` jan.kratochvil at redhat dot com
2011-06-07 17:29 ` jan.kratochvil 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).