Link to home
Start Free TrialLog in
Avatar of ReetiJ
ReetiJFlag for Australia

asked on

how to read a core file in unix. (the file name is "core")

How to read a core file in unix. It is not having any extension and it is not readbale.
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Core files are memory dumps that are examined using debugger ... Core files are generated typically at the time of crash and they are used for debugging process state at the time of crash
e.g.
gdb corefile executablefile
Avatar of Tintin
Tintin

Doing

file core

will tell you which process dumped core.

In Solaris, you can analyse a core file with

dbx
mdb
pstack

You won't have gdb on your system, unless you've installed the GNU debugger.
Avatar of ReetiJ

ASKER

thanks. I am unable to use gdb. Is there any useful tip on how to use mdb ?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
To get a quick glance at the file use:

#>strings core | more
Avatar of ReetiJ

ASKER

deleting question
Avatar of ReetiJ

ASKER

delete
Canceling account is not a valid reason for self accept. What was the solution you reached?