home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime.austin.ibm.com!yogi.austin.ibm.com!marc
- From: marc@yogi.austin.ibm.com (Marc J. Stephenson)
- Newsgroups: comp.unix.aix
- Subject: Re: Core File Question- Who created it?
- Message-ID: <1992Sep8.143420.21935@awdprime.austin.ibm.com>
- Date: 8 Sep 92 14:34:20 GMT
- References: <22064@nntp_server.ems.cdc.com> <rob.715618443@cod.csi.on.ca>
- Sender: news@awdprime.austin.ibm.com (USENET News)
- Distribution: usa
- Organization: IBM, Austin
- Lines: 40
-
- In article <rob.715618443@cod.csi.on.ca> rob@csi.on.ca (Rob McAteer) writes:
- >bguest@ateam.ems.cdc.com (Brandon Guest) writes:
- >
- >> Given a core file, how can I figure out what object file created it?
- >>Any help would be greatly appreciated. Email replies okay.
- >AIX provides a command 'crash' that can provice some cryptic clues about
- >a core dump (I don't know if it is "universal").
- >--
- >Rob McAteer CAnet: rob@csi.on.ca
- >Carp Systems International Voice: (613) 592-5780
- >600 Terry Fox Drive, Suite 200 Fax: (613) 592-0584
- >Kanata, Ontario, Canada K2L 4B6
-
- crash is useful for looking at system dumps; not core dumps.
-
- There are lots of ways to look at the core file to determine who dumped core -
- my favorite is to run dbx on anything. dbx will identify the name of the
- program which dumped (unless the program matches the core file). One
- example of an implementation:
-
- $ ls
- core
- $ echo q | dbx -q /etc/motd
- Core file program (hello) does not match current program (core ignored)
- warning: cannot execute /etc/motd
- reading symbolic information ...
-
- The program which dumped core in the above example is hello, as indicated in
- parentheses. By specifying /etc/motd as the "debuggee," I guaranteed that
- the debuggee would not match the program which dumped core.
-
- By the way, the information is indeed in the ld_info structure - the "execed"
- program name is found in the first ld_info structure (in the ldinfo_filename
- field (described in /usr/include/sys/ldr.h)) pointed to by the c_tab field
- in the core file header. A program could easily be written to print out the
- name of the program - I just let dbx do it for me.
- --
- Marc Stephenson IBM AWD (Advanced Workstations Division - Austin,TX)
- DISCLAIMER: The content of this posting is independent of official IBM position.
- INTERNET->marc@perfmap.austin.ibm.com VNET: MARC at AUSVMQ IBM T/L: 678-3189
-