Unable to get a core-dump of a child process on Linux 2.6.5-7.316-smp #1 SMP system
Hi,
I am facing an issue in getting a core dump of a child process.
My system is Linux 2.6.5-7.316-smp #1 SMP.
The steps I have tried to get a core dump:
(1) When my application starts there are two processes running P(parent) and P1(child). They run as root.
(2) I login as root and then I issue a "kill -s SIGSEGV <pid of P1>". This should ideally create a core dump of the child process P1. But it doesnt. On doing this both the parent and child processes are killed and then restart after some time.
(3) SIGSEGV is not handled in P1.
(4) SIGSEGV is handled in P though. I have tried removing it, but that produces a core only for P process and not P1.
(5) I have set the ulimit to "unlimited".
(6) I have set "/proc/sys/kernel> cat suid_dumpable" to 1, so that all processes are able to core dump.
(7) I have about 1.4G in the partition.
I have just not been able to figure out a reason for this.
I would really appreciate any help on this one.
Thanks
Ravi
|