This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/12850] `interrupt' command can hang


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]