From: Joe Marzot <gmarzot@nortelnetworks.com>
To: Jeff Dike <jdike@addtoit.com>
Cc: "Christopher S. Aker" <caker@theshore.net>,
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: Tue, 22 Jun 2004 09:18:42 -0400 [thread overview]
Message-ID: <40D831B2.8060108@nortelnetworks.com> (raw)
In-Reply-To: 20040619173952.GA7740@ccure.user-mode-linux.org
would this be something simple like
do {
err = waitpid(pid, &status, WUNTRACED);
} while ((err < 0) && (errno == EINTR));
strangely I am seeing this error also w/ host 2.4.20-24.8 +
host-skas3a-2.4.25.patch and 2.4.22+uml_patch-2.4.24-1.
regards, GSM
Jeff Dike wrote:
> 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
>
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
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-22 13:19 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
2004-06-22 13:18 ` Joe Marzot [this message]
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=40D831B2.8060108@nortelnetworks.com \
--to=gmarzot@nortelnetworks.com \
--cc=caker@theshore.net \
--cc=jdike@addtoit.com \
--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