From: "Miguel Freitas" <mfreitas@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Advice on debuging the fork syscall hanging forever
Date: Wed, 25 Apr 2007 12:05:09 -0300 [thread overview]
Message-ID: <f9eabcda0704250805w73279d07i4655f47fa00c2ff0@mail.gmail.com> (raw)
In-Reply-To: <f9eabcda0704250746j26c67d03wc971c4ca32312ca1@mail.gmail.com>
On 4/25/07, Miguel Freitas <mfreitas@gmail.com> wrote:
> hey, could it be that this -513 is actually -ERESTARTNOINTR?
if so, that would be a good explanation why it hangs.
- copy_process() checks for pending signals, then set retval =
-ERESTARTNOINTR and returns.
- handle_signal has the following code:
case -ERESTARTNOINTR:
regs->rax = regs->orig_rax;
regs->rip -= 2;
break;
looks like it will keep trying to reenter the syscall forever,
subtracting 2 from ip will restart the syscall. by some reason the
signal is never really handled.
Miguel
prev parent reply other threads:[~2007-04-25 15:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-25 14:21 Miguel Freitas
2007-04-25 14:46 ` Miguel Freitas
2007-04-25 15:05 ` Miguel Freitas [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=f9eabcda0704250805w73279d07i4655f47fa00c2ff0@mail.gmail.com \
--to=mfreitas@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®