linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fork() crashes on child but returns success on parent
@ 2003-05-28 11:36 Nir Livni
  2003-05-29  7:13 ` Anand K
  0 siblings, 1 reply; 2+ messages in thread
From: Nir Livni @ 2003-05-28 11:36 UTC (permalink / raw)
  To: linux-kernel

Now I know for sure that the child crashes (SIGSEGV) before fork() returns.
I could see it in the UML debugger.
It does not use the signal handler I have set up of the SIGSEGV. It simply
crashes and exits.

Could this be any kernel problem ?
Any ideas what should I do next to track this problem ?

> Subject: fork() returns on parent but not returns on child
> 
> 
> Hi all,
> I am experiencing a problem, where fork() returns succesfully 
> on parent, but does not return on child. The child process 
> simply "disappears". I believe it might have got a SIGSEGV 
> (if it makes any sence) before fork() has returned.
> 
> I would like to track down this problem.
> What I did so far is:
> 1. I tried first to make sure there are no memory overruns 
> using few tools. 2. I tried to look at strace output, but the 
> problem does not occur if I use strace 3. I make a 
> UserModeLinux machine and now I would like to breakpoint the 
> created child before it crashes (assuming it really crashes)
> 
> How do I do that ?
> 
> Thanks,
> Nir
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: fork() crashes on child but returns success on parent
  2003-05-28 11:36 fork() crashes on child but returns success on parent Nir Livni
@ 2003-05-29  7:13 ` Anand K
  0 siblings, 0 replies; 2+ messages in thread
From: Anand K @ 2003-05-29  7:13 UTC (permalink / raw)
  To: Nir Livni; +Cc: linux-kernel

Just wondering if you have masked off this signal, even though you have
setup signal handlers.

thanks,
Anand K.
----- Original Message -----
From: "Nir Livni" <nirl@cyber-ark.com>
Newsgroups: mailinglists.external.linux-kernel
To: <linux-kernel@vger.kernel.org>
Sent: Wednesday, May 28, 2003 5:08 PM
Subject: fork() crashes on child but returns success on parent


> Now I know for sure that the child crashes (SIGSEGV) before fork()
returns.
> I could see it in the UML debugger.
> It does not use the signal handler I have set up of the SIGSEGV. It simply
> crashes and exits.
>
> Could this be any kernel problem ?
> Any ideas what should I do next to track this problem ?
>
> > Subject: fork() returns on parent but not returns on child
> >
> >
> > Hi all,
> > I am experiencing a problem, where fork() returns succesfully
> > on parent, but does not return on child. The child process
> > simply "disappears". I believe it might have got a SIGSEGV
> > (if it makes any sence) before fork() has returned.
> >
> > I would like to track down this problem.
> > What I did so far is:
> > 1. I tried first to make sure there are no memory overruns
> > using few tools. 2. I tried to look at strace output, but the
> > problem does not occur if I use strace 3. I make a
> > UserModeLinux machine and now I would like to breakpoint the
> > created child before it crashes (assuming it really crashes)
> >
> > How do I do that ?
> >
> > Thanks,
> > Nir
> >
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-29  6:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-28 11:36 fork() crashes on child but returns success on parent Nir Livni
2003-05-29  7:13 ` Anand K

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).