1833304 Members
3206 Online
110051 Solutions
New Discussion

analyze core dump

 
SOLVED
Go to solution
Dagmar Boelen
Frequent Advisor

analyze core dump

I Found several core dumps on my system. My first question is how can I analyze these core dumps? On which location are these dumps usually created? Can the kernel itself create a core dump? and what about a application dump?
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: analyze core dump

Quick and dirty way is:

strings core | more

You can get some useful information from that.

If oracle or some other application creates a dump, the same command may or may not be effective. You have to see the vendor for that.

Kernel problems can create dumps, but if they are serious, the box wont boot in the first place, you'll get a kernel panic at boot time.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Massimo Bianchi
Honored Contributor

Re: analyze core dump

Hi,
everything can do a dump.
When is the kernel, your system does a "panic" and reboot.

To find the application that generates the dump,
usa the command "file" against the core.

Core can be anywhere.

To analyze a dump, there was a nice thread full of instruction...
i will search it.

HTH,
Massimo
melvyn burnard
Honored Contributor

Re: analyze core dump

There are different ways of getting a core dumped.
A program can core dump, leaving a file named core, in a directory usually where it was started from or in certain applications in specified directories. and example is where cmcld (serviceGuard daemon) core dumps and leaves a core file in /var/adm/cmcluster

You can look at these files using :
what
file
strings


A kernel or system panic will create a core dump, this normally goes into /var/adm/crash, and consists of mutiple file.
If you have had one of these, then you have had a serious problem at some time.
These normally need analysing by your local HP Response Centre
Hope that helps

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Umapathy S
Honored Contributor

Re: analyze core dump

Dagmar,
All applications will core dump when encountering SIGSEGV and SIGBUS errors provided they have permission to dump.

You can analyze these core dumps through many commands.

file core will give which application and why
strings will print out all the info in the core which will be the superset of executable. So there will be too much information.
what gives also the necessary info.

kernel dumps and they can be analyzed to the good by q4.

applications dumps can be analyzed by gdb. It can pinpoin the error if the debug flag is set. You can print the stack trace to get to the exact place where it got dumped.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
twang
Honored Contributor

Re: analyze core dump

Fragon
Trusted Contributor
Solution

Re: analyze core dump

Hi,
A good tool in HP-UX for analyze core dump is q4. You can get the English version manual of q4 here:
http://hpux.0451.net/download/q4docs.zip

-ux
Steven E. Protter
Exalted Contributor

Re: analyze core dump

You can't analyze core dumps with q4. It works with crash dumps in /var/adm/crash

Please post a procdure for using it on core dumps, I'd like to know how.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Caesar_3
Esteemed Contributor

Re: analyze core dump

Hello!

For the begin you can use the what command
and for more you have the q4 script
to debug the core dump.
More info about the q4 is on the
docs.hp.com

Caesar