Operating System - HP-UX
1826160 Members
4424 Online
109691 Solutions
New Discussion

How to enable getting core file on HP 11

 
Amod
Occasional Advisor

How to enable getting core file on HP 11

Hi All,

Can someone tell me what I need to do to get a core file after getting segmentation violation. I can see my process is getting
SIGSEGV, but no core file is generated.

I am using HP-UX 11 machine

Thanks,
Amod
If you can't change it, enjoy it !!
2 REPLIES 2
Zeev Schultz
Honored Contributor

Re: How to enable getting core file on HP 11

Hi

I can guess that your process exits with exit() and not abort() so SIGSEGV is there but no crashdump. Read man 5 signal which says there should not allways be core file dumped for this signal.

Can be that enabling debugging for compiler would cause core dump (a guess).

Zeev
So computers don't think yet. At least not chess computers. - Seymour Cray
Mike Stroyan
Honored Contributor

Re: How to enable getting core file on HP 11

Creating a core file is the default for a fatal SIGSEGV. Something is preventing a core file.

Core files are suppressed for setuid or setgid programs.

Core files can be suppressed by a "ulimit -c 0" shell command.

Core files can be suppressed by lacking write permission in the current directory.