From: Gerd Knorr <kraxel@suse.de>
To: Gerd Knorr <kraxel@suse.de>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: "xm save" trouble -- deadlock?
Date: Tue, 01 Nov 2005 18:15:27 +0100 [thread overview]
Message-ID: <4367A2AF.2090707@suse.de> (raw)
In-Reply-To: <43679B4C.3030804@suse.de>
> xend in turn doesn't read from the pipe but is waiting for some lock:
>
> master-xen root /vm/ttylinux# strace -p6567
> Process 6567 attached - interrupt to quit
> futex(0x8087370, FUTEX_WAIT, 0, NULL <unfinished ...>
> Process 6567 detached
Oh, xend is multithreaded:
master-xen root /vm/ttylinux# ls /proc/6567/task
. .. 6567 6568 6569 6570 6571 6581 7977
7977 seems to be responsible for the xc_save and does this:
master-xen root /vm/ttylinux# strace -p7977
Process 7977 attached - interrupt to quit
read(20, <unfinished ...>
Process 7977 detached
fd 20 is the other end of the *stdout* pipe, whereas xc_save writes
stuff to *stderr*. Hmm. Maybe xend causes the deadlock by simply
reading from the wrong file handle?
Some of the other threads behave in a strange way as well:
master-xen root /vm/ttylinux# strace -p6568
Process 6568 attached - interrupt to quit
select(4, [3], [], [], {0, 960000}) = 0 (Timeout)
futex(0x80e53b8, FUTEX_WAKE, 1) = 0
accept(3, 0x408193f8, [110]) = -1 EAGAIN (Resource
temporarily unavailable)
There is no point in calling accept(3) unless select() flags file handle
#3 as readable.
Looks like I'll go browse some python code tomorrow ...
Gerd
next prev parent reply other threads:[~2005-11-01 17:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-01 16:43 "xm save" trouble -- deadlock? Gerd Knorr
2005-11-01 17:15 ` Gerd Knorr [this message]
2005-11-01 18:54 ` Ewan Mellor
2005-11-02 9:25 ` Gerd Knorr
2005-11-02 10:04 ` Ewan Mellor
2005-11-02 11:24 ` Gerd Knorr
2005-11-02 15:35 ` Gerd Knorr
2005-11-02 15:41 ` Ewan Mellor
2005-11-02 17:23 ` Gerd Knorr
2005-11-01 18:58 ` Ewan Mellor
2005-11-02 11:34 ` Gerd Knorr
2005-11-02 18:28 ` Kip Macy
2005-11-03 8:53 ` Gerd Knorr
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=4367A2AF.2090707@suse.de \
--to=kraxel@suse.de \
--cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.