1830868 Members
1808 Online
110017 Solutions
New Discussion

core dump; kill - ??

 
SOLVED
Go to solution
Shivkumar
Super Advisor

core dump; kill - ??

Dear Sirs,

Which number along with "kill -? PID" command would produce a core dump file ?

Thanks,
Shiv
4 REPLIES 4
Rajeev  Shukla
Honored Contributor
Solution

Re: core dump; kill - ??

kill -3 $PID will do that, have a look at the man pages of kill and kill -l command
Indira Aramandla
Honored Contributor

Re: core dump; kill - ??

Yes kill -3 will terminate with core dump; can be trapped

IA
Never give up, Keep Trying
Fabio Ettore
Honored Contributor

Re: core dump; kill - ??

Hi,

I know the -3 option on kill command. It is the known option to obtain it.
However keep in mind the option -6 even if it is undocumented.

I had a problem with a java process and I launched successfully

kill -6

in order to obtain core dump.
I think it depends if the process to be killed produces output (for that -3 option) or it is a process which doesn't provide output (for that -6 option should work).

Usually I saw -6 used for core dump java processes.

Hope this helps you.

Best regards,
Fabio
WISH? IMPROVEMENT!
Muthukumar_5
Honored Contributor

Re: core dump; kill - ??

See signal 5 man page. Signal with Action ii will create Core files.

Refer http://nixdoc.net/man-pages/HP-UX/man5/signal.5.html

hth.
Easy to suggest when don't know about the problem!