Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading the contents of a core dump file

Status
Not open for further replies.

douggy

Technical User
Jan 18, 2001
78
GB
Hi There,

I have an application which is creating a core dump file:

"core.15703"

I can't <more> this file. It tells me it's not a text file.

How do I read/locate the contents of this core file.= in order to find out about the error.

Regards
Mark
 
I don't know the exact answer, but I can show you the way:

You have to look at it with a debugger.
You should look for adb or sdb.

Something like &quot;adb core.15703&quot; should show you few things.

You can also type &quot;man core&quot;, and you'll have doc about the core file, and related binaries.
 
What I usually do is head the file. Thus &quot;head -# corefile&quot; this will give you the first # of lines of the file. You can usually get an idea of what caused the core file in the first 25 lines or so.

Good luck,

Troy
 
The program that uses the core files is called crash.

the core file itself is a snapshot of memory and various other things at the time of the crash.

It is somewhat a pain to use (well) so i generally just look to see what else has happened recently (if the crashing program has been running successfully before).

good luck
 
Sorry dont know where my brain was when i was typing the previous response.....

I was thinking of the dump image when a PANIC has occurred.

yes adb is the tool to use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top