We help IT Professionals succeed at work.

How to read and understand the Unix core file

Crazycrux
Crazycrux used Ask the Experts™
on
Hi,

How to read and understand the Unix core.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
You can use "pmap core" and/or "pstack core" to read core files.

pmap - display information about the address space of a process

pstack - print a hex-symbolic stack trace for each lwp in each process
Have a look at this: http://en.wikipedia.org/wiki/Core_dump

In the old days I used 'adb' to look at stack dumps to scheck why a program crashed. Nowadays 'gdb' is available. Just depend on your UNIX/Linux system what's available. However, man adb will give you some clues.