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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to read a Core dump file

Status
Not open for further replies.

InduPramod

IS-IT--Management
Apr 17, 2001
53
ZA
Hi,

Can anyone help me to read a core dump file. When I do pg core file, it shows all the ascii character. Is there any other way to read a core dump file

 
This might not be of much help, but strings core | pg should at least give you the readable information from the file. HTH.
 
Hi KenCuningham,

you mean pg <core_dump_file>. We tried that. It doesn't work. The machine hangs. Is there any other way of doing i
 
No, that's not what I meant. Have a look at the man page for strings. Try this in the directory your core file is in:

strings core | pg

This should give you whatever printable characters are present in the file and might also tell you which process the core file originated from. Core files are notoriously difficult for end-users (by that I mean the usual Sys Admin staff) to make sense of and are of more use to system engineers trying to get a handle on what's going wrong. HTH.

 
Hi

Core is a binray file which will be created when there is some segmentation fault or something else has happened. You need to use dbx kind of tool to analyze it.

You cannot use pg command on core.

If you just wanted to know what caused the core
1. You can check in error log
2. #lquerypv -h <path_to_core_file> 6b0 64
or #strings <path_to_core_file> |grep &quot;_=&quot;

JSiva Om Maha Ganapathiye Namaga!
 
Hello,
Does anyone know whether it is possible to take timestamps with millisecond granularity ? An equivalent of a &quot;date&quot; command for shell scripts that reports milliseconds.

Thanks
 
Tom, I'm not sure how your question ended up here, but there are several examples of reporting milliseconds in the Perl Forum, I suggest you check there. Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top