public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg59@srcf.ucam.org>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: "Ortwin Glück" <odi@odi.ch>, linux-kernel@vger.kernel.org
Subject: Re: freeze when strace X
Date: Wed, 9 Jun 2010 21:53:50 +0100	[thread overview]
Message-ID: <20100609205350.GA28383@srcf.ucam.org> (raw)
In-Reply-To: <alpine.LFD.2.00.1006092232180.2933@localhost.localdomain>

On Wed, Jun 09, 2010 at 10:47:23PM +0200, Thomas Gleixner wrote:
> On Wed, 9 Jun 2010, Matthew Garrett wrote:
> > strace needs to output text via X, which generates output which needs to 
> > be output via X... and you'll tend to deadlock. If X is holding any 
> > interesting kernel locks at that point then it wouldn't surprise me if 
> > the machine ends up dead.
> 
> Nothing to do with kernel locks. strace hooks into the syscall and
> intercepts the data, so X is stopped at that point. Now try to send
> output to a program which you stopped yourself :)

Oh, yeah, and ctrl+alt+fwhatever is handled by X.

-- 
Matthew Garrett | mjg59@srcf.ucam.org

      reply	other threads:[~2010-06-09 20:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-09 18:38 freeze when strace X Ortwin Glück
2010-06-09 19:52 ` Matthew Garrett
2010-06-09 20:02   ` Ortwin Glück
2010-06-09 20:06     ` Matthew Garrett
2010-06-09 20:26       ` Ortwin Glück
2010-06-09 20:47       ` Thomas Gleixner
2010-06-09 20:53         ` Matthew Garrett [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=20100609205350.GA28383@srcf.ucam.org \
    --to=mjg59@srcf.ucam.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=odi@odi.ch \
    --cc=tglx@linutronix.de \
    /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