Operating System - HP-UX
1833678 Members
4080 Online
110062 Solutions
New Discussion

Re: Generate a core for a hung process

 
John Tyler
Advisor

Generate a core for a hung process

Hi!

I am trying to generate a core dump of a hung process. i tried kill -11 with no luck. THere is no existing core file which can prevent a new core file from being created. The parent process is the init process.

Is there any other way to force the process to dump core.

Any thoughts or ideas?

thanks.
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: Generate a core for a hung process

Hi John,

If the parent is init, the process is a zombie and will not respond to signals. You can't kill them no matter what you try. The only way to get rid of them is to reboot.

Pete

Pete
Paula J Frazer-Campbell
Honored Contributor

Re: Generate a core for a hung process

Instead of trying to get it to dump, why not leave it hung and examine the memory?

Or if you can do a TOC and then examine the crash files.

Also does the process have sufficient permission to write where it is being started from?


Paula
If you can spell SysAdmin then you is one - anon
Robert-Jan Goossens
Honored Contributor

Re: Generate a core for a hung process

Hi,

Maybe you can do something with truss/tusc truss is the Solaris version, beleave tusc is the HPux version.

http://www.pugcentral.org/howto/truss.htm

download
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/tusc-7.3/

Hope it helps,

Robert-Jan.