Core file analysis

How can we analyze a core file and determine why it was generated on a solaris system?

I know file core filename will tell us what program generated the file. But, what to do next to get more details?

Thanks,

This might give clues:

PATH=$PATH:/usr/proc/bin
pargs core
pstack core
pflags core
pldd core
pmap core

this might be usefull for you:
sat.lksf_sat_crashcore.tex - Less known Solaris Features - wikis.sun.com

Of those listed, the "pstack" utility is probably the most useful.

Even better, you can use "dbx" from Sun Studio compiler suite.

Thanks all.

file core

e.g.
core: core file from 'cat' - received SIGQUIT

strings core

A bit of a random approach but will sometimes reveal what the program wanted to tell you. (Like "cannot create semaphore").