[LCP](no subject)

Joachim Bauernberger bj at gmx.net
Sun Apr 21 02:35:06 UTC 2002


Hi Bill,
Thanks for your reply.
  
> You're using a switch statement on the pid?  Looking for -1, 0, default?
> 
> Which process is getting the signal, the parent or the child?  Or is
> fork()
> failing and you're not checking for the -1?
> 
> Bill
  
Yes. I do a switch. The parent gets the signal after calling fork
successfully.
However at this time the program looses it's framepointer information.
The signal is being generated after trying to return from the function. 
(I think the process doesn't know anymore where to return to ...). 
Also, I have never come across a sigbus in my code before so I tried to
compile 
it under libc6 to see if it  would make a difference. The result on libc6 is
a segv. 
Reading up on it I learned that the difference between a sigbus and sigsegv
is 
that a sigbus is generated if non-existing address space is referenced while
a 
sigsegv means the address does not contain memory owned by the program.  
But not sure if this is also true on non Linux systems or even non i386 
architectures.
  
Regards,
Joachim

-- 
You can download my public pgp key from:
http://foofbar.gmxhome.de/pgp/joachim.html
PGP fingerprint:
25 96 E0 25 48 D9 8E 10  3C C0 48 E7 AF 5A E2 C6  A3 15 05 E6





More information about the linuxCprogramming mailing list