From: Jeff Dike <jdike@addtoit.com>
To: "Christopher S. Aker" <caker@theshore.net>
Cc: uml-devel <user-mode-linux-devel@lists.sourceforge.net>
Subject: Re: [uml-devel] Kernel panic: handle_trap - failed to wait at end of syscall, errno = 4, status = 1151
Date: Sat, 19 Jun 2004 13:39:52 -0400 [thread overview]
Message-ID: <20040619173952.GA7740@ccure.user-mode-linux.org> (raw)
In-Reply-To: <000f01c45593$35c20e00$0201a8c0@hawk>
On Fri, Jun 18, 2004 at 07:19:57PM -0500, Christopher S. Aker wrote:
> Kernel panic: handle_trap - failed to wait at end of syscall, errno = 4, status =
> 1151
>
> err = waitpid(pid, &status, WUNTRACED);
> if((err < 0) || !WIFSTOPPED(status) || (WSTOPSIG(status) != SIGTRAP))
> panic("handle_trap - failed to wait at end of syscall, "
> "errno = %d, status = %d\n", errno, status);
Easy diagnosis - errno 4 is EINTR, this wasn't checking for that and redoing
the wait.
I've been adding EINTR safety in a bit at a time, just hadn't noticed this
yet.
Jeff
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2004-06-19 16:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-19 0:19 [uml-devel] Kernel panic: handle_trap - failed to wait at end of syscall, errno = 4, status = 1151 Christopher S. Aker
2004-06-19 17:39 ` Jeff Dike [this message]
2004-06-22 13:18 ` Joe Marzot
2004-06-22 15:43 ` Jeff Dike
2004-06-23 18:09 ` [PATCH] The fix for: Re: [uml-devel] Kernel panic: handle_trap - failed to wait at end of syscall, BlaisorBlade
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=20040619173952.GA7740@ccure.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=caker@theshore.net \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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