$ whatis core

core - process core file

core (5) - core dump file

Examples:

# hostname

MySolaris

Find the core file relative to the current directory I am in now.

# find . -name core

./2.2/htdocs/tt/how-to/core

Show me the format of this core file.

# file ./2.2/htdocs/tt/how-to/core

./2.2/htdocs/tt/how-to/core: ELF 32-bit LSB core file 80386 Version 1, from 'testme'

Show me the shared libraries that are used by this core file.

# pldd ./2.2/htdocs/tt/how-to/core

core './2.2/htdocs/tt/how-to/core' of 27028: ./testme

/usr/lib/libc/libc_hwcap1.so.1

# cd ../2.2/htdocs/tt/how-to/core

# file core

core: ELF 32-bit LSB core file 80386 Version 1, from 'testme'

# pldd -l core

core 'core' of 27028: ./testme

/lib/libc.so.1

To analyze the core file using adb debugger.

# adb core

core file = core -- program ``/var/apache2/2.2/htdocs/tt/how-to/testme'' on platform i86pc

SIGFPE: Arithmetic Exception

To get status of the current core file.

::status

debugging core file of testme (32-bit) from isas53

file: /var/apache2/2.2/htdocs/tt/how-to/testme

initial argv: ./testme

threading model: native threads

status: process terminated by SIGFPE (Arithmetic Exception), addr=8050d5d

To get the Registers values

$r

%cs = 0x0043 %eax = 0x00000000

%ds = 0x004b %ebx = 0xfeffb8f4

%ss = 0x004b %ecx = 0x08047d04

%es = 0x004b %edx = 0x00000000

%fs = 0x0000 %esi = 0x08047ce8

%gs = 0x01c3 %edi = 0x08047d88

%eip = 0x08050d5d main+0x99

%ebp = 0x08047d08

%kesp = 0x00000000

%eflags = 0x00010212

id=0 vip=0 vif=0 ac=0 vm=0 rf=1 nt=0 iopl=0x0

status=

%esp = 0x08047cdc

%trapno = 0x0

%err = 0x0

To get the stack.

$c

main+0x99(1, 8047d2c, 8047d34, 8050de0, 0, 0)

_start+0x83(1, 8047df0, 0, 8047df9, 8047e36, 8047e46)

$C

08047d08 main+0x99(1, 8047d2c, 8047d34, 8050de0, 0, 0)

08047d20 _start+0x83(1, 8047df0, 0, 8047df9, 8047e36, 8047e46)

To guit from the adb deugger.

$q

Please click on " man corei " to see the Manual Page for this command.


Previous Home Page Next


Contact us      |      About us      |      Term of use      |       Copyright © 2000-2024 MyWebUniversity.com ™