From: jojelino <jojelino@gmail.com>
To: cygwin@cygwin.com
Subject: gdb hangs when it calls tcsetpgrp.
Date: Thu, 27 Jun 2013 17:46:00 -0000 [thread overview]
Message-ID: <kqhsru$s8k$1@ger.gmane.org> (raw)
I was using gdb for debugging ffmpeg raising SIGFPE. but gdb hangs after
entering command among of s,n,si,ni.
gdb has same pgrp over pgrp of debuggee. when tcsetpgrp is called in
gdb, you already know it sends __SIGSETPGRP signal to suspended
debuggee. but the debugger already suspended all thread of debuggee
without distinguishing whether the victim thread is wait_sig or not. so
the suspend process doesn't wake up until debugger handles debug event.
which is the cause of hang.
Although it seems that cygwin developers have already aware of sort of
this issue according to fhandler_termios.cc:85, so, it would be good if
cygwin can defer sending signal that would block for sure.
--
Regards.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
next reply other threads:[~2013-06-27 17:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-27 17:46 jojelino [this message]
2013-06-27 17:52 ` Christopher Faylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='kqhsru$s8k$1@ger.gmane.org' \
--to=jojelino@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).