Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew Walrond <andrew@walrond.org>
To: gdb@sources.redhat.com
Subject: Re: gdb drops out with 'I/O possible message'
Date: Mon, 31 Oct 2005 10:03:00 -0000	[thread overview]
Message-ID: <200510311003.10718.andrew@walrond.org> (raw)
In-Reply-To: <jebr1658ej.fsf@sykes.suse.de>

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 just looks like gdb is catching a SIGIO and exiting...

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.

Hmmm

Anyhow; I'll try the gdb inside gdb thing next time I can prodice this 
behaviour with any regularity.

Thanks

Andrew Walrond


  reply	other threads:[~2005-10-31 10:03 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 [this message]
2005-10-31 14:18         ` Daniel Jacobowitz

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=200510311003.10718.andrew@walrond.org \
    --to=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