The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 07-05-2002
Perderabo's Avatar
Perderabo Perderabo is offline
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,454
On HP-UX 10.20 the "file" command can tell you a little bit about the core file:
> file core
core: core file from 'sleep' - received SIGQUIT

That is the output I get from a core file that I intentionally created. And it's right, I did a "sleep 500" and then I sent a quit signal to the process.

To take it further, I would need to use a debugger. Usually that implies that the program needed to be built in a special way to enable the use of a particular debugger.

I could always do something like:
adb /usr/bin/sleep core
but this will be very rough since the sleep program has been stripped. adb, like all debuggers, is an interactive program. Knowing how to use it will require a lot of assembly language knowledge.

A core file is (basicly) the data and stack segments of the process. You can use programs like "strings" and "od" on it if you're looking for something in particular.
Reply With Quote