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
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 3 lines
How about setting up a signal handler? Makes things simpler.
Parent already has a signal handler.
Child does not reach it. It simply exists.
Quoted 18 lines
-- Anand K.
----- Original Message -----
From: "Nir Livni" <[email protected]>
Newsgroups: mailinglists.external.linux-kernel
To: <[email protected]>
Cc: "Nir Livni" <[email protected]>
Sent: Wednesday, May 28, 2003 4:18 AM
Subject:fork()returns on parent but not returns on childQuoted 2 lines
Hi all,
I am experiencing a problem, wherefork()returns succesfully on parent,but
Quoted 3 lines
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()
Quoted 20 lines
Quoted 5 lines
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 fewtools.
Quoted 1 line
2. I tried to look at strace output, but the problem does not occur if I
use
Quoted 12 lines
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
Quoted 4 lines
Quoted 4 lines
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/