From: Daniel Jacobowitz <drow@false.org>
To: Andrew Walrond <andrew@walrond.org>
Cc: gdb@sources.redhat.com
Subject: Re: gdb drops out with 'I/O possible message'
Date: Mon, 31 Oct 2005 14:18:00 -0000 [thread overview]
Message-ID: <20051031141800.GA25504@nevyn.them.org> (raw)
In-Reply-To: <200510311003.10718.andrew@walrond.org>
On Mon, Oct 31, 2005 at 10:03:10AM +0000, Andrew Walrond wrote:
> On Monday 31 October 2005 09:43, Andreas Schwab wrote:
> >
> > Some process (ruby?) is probably enabling async I/O on stdin, which causes
> > all processes in the same process group to receive SIGIO whenever
> > something is available to be read on stdin. Then the process crashes and
> > has no chance to disable async I/O. With the next debugging session a new
> > process group is created, but the SIGIO signals are still sent to the old
> > (now defunct) process group, effectively dropping them on the floor.
>
> So is gdb in the same process group as the debug target process? (FWIW the
> process in question forks off several other processes) And will receive the
> same SIGIOs?
It should not be; it goes to some effort to always keep the foreground
process group set correctly.
> In other (non ruby) applications where I have seen this problem, I do
>
> std::ios::sync_with_stdio(false)
>
> which presumably enables async I/O on stdin/stdout etc.
No, that has nothing to do with async I/O; it's just a question of
buffering.
--
Daniel Jacobowitz
CodeSourcery, LLC
prev parent reply other threads:[~2005-10-31 14:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-28 22:30 Andrew Walrond
2005-10-28 23:15 ` Daniel Jacobowitz
2005-10-31 6:53 ` Andrew Walrond
2005-10-31 9:43 ` Andreas Schwab
2005-10-31 10:03 ` Andrew Walrond
2005-10-31 14:18 ` Daniel Jacobowitz [this message]
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=20051031141800.GA25504@nevyn.them.org \
--to=drow@false.org \
--cc=andrew@walrond.org \
--cc=gdb@sources.redhat.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