pldd - List the dynamic libraries linked into each process, including shared objects explicitly attached using dlopen(3C).
# hostname
MySolaris
# ps -ef | grep -i init | grep -v grep
root 1 0 0 Sep 18 ? 0:03 /sbin/init
# pldd 1
1: /sbin/init
/usr/lib/libc/libc_hwcap1.so.1
/lib/libcontract.so.1
/lib/libnvpair.so.1
/lib/libnsl.so.1
/lib/libscf.so.1
/lib/libuutil.so.1
/lib/libbsm.so.1
/lib/libtsol.so.2
# pldd -l 1
1: /sbin/init
/lib/libc.so.1
/lib/libcontract.so.1
/lib/libnvpair.so.1
/lib/libnsl.so.1
/lib/libscf.so.1
/lib/libuutil.so.1
/lib/libbsm.so.1
/lib/libtsol.so.2
# ps
PID TTY TIME CMD
29545 pts/4 0:00 bash
29573 pts/4 0:00 ps
# pldd 29545
29545: /usr/bin/bash -i
/lib/libsocket.so.1
/lib/libresolv.so.2
/lib/libnsl.so.1
/lib/libgen.so.1
/usr/lib/libc/libc_hwcap1.so.1
/lib/libcurses.so.1
/usr/lib/locale/en_US.UTF-8/en_US.UTF-8.so.3
/usr/lib/locale/common/methods_unicode.so.3
# find ../../ -name core
../../2.2/htdocs/tt/how-to/core
# 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'
# 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 pldd " to see the Manual Page for this command.