|
|
signal 9 generates core file
Greetings,
I am very strange for that! I work on Solaris 2.7, C language program,
compiled by gcc. Sometime, I find core file. With gdb open the core file, it
shows that terminated by signal 9.
My confusions are:
1) How signal 9 can generate core file? Normally signal 9 will terminate
process immediately and directly, no core file generated.
2) Basically, we are sure no people kill the process with signal 9. Could
system kill the process automatically under some condition?
Thanks in advance!
Evan
|
|
0
|
|
|
|
Reply
|
music4
|
12/24/2003 12:41:50 AM |
|
On Tue, 23 Dec 2003 19:41:50 -0500, music4 wrote:
> Greetings,
>
> I am very strange for that! I work on Solaris 2.7, C language program,
> compiled by gcc. Sometime, I find core file. With gdb open the core
> file, it shows that terminated by signal 9.
>
> My confusions are:
>
> 1) How signal 9 can generate core file? Normally signal 9 will terminate
> process immediately and directly, no core file generated.
>
> 2) Basically, we are sure no people kill the process with signal 9.
> Could system kill the process automatically under some condition?
I have some code that does the following:
void
sig_handler(int s)
{
fprintf(stderr, "%s\n", signalstr(s));
if (s == SIGSEGV || s == SIGINT) {
raise(SIGKILL);
}
sleep(1);
}
If your program is faulting miserably you might as well deliver the Coup
de Gras.
Mike
|
|
0
|
|
|
|
Reply
|
Michael
|
12/24/2003 5:55:07 AM
|
|
"music4" <music4@163.net> writes:
>1) How signal 9 can generate core file? Normally signal 9 will terminate
>process immediately and directly, no core file generated.
"Bug in gdb".
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
|
|
0
|
|
|
|
Reply
|
Casper
|
12/24/2003 10:47:19 AM
|
|
|
2 Replies
273 Views
(page loaded in 0.175 seconds)
|
|
|
|
|
|
|
|
|