HP-UX HB v13.00 Ch-08 - Crash Dumps

HP-UX Handbook Rev 13.00 Page 27 (of 38)
Chapter 08 Crash Dumps
October 29, 2013
Shared Memory:
m 0 0x411057d6 --rw-rw-rw- root root
m 1 0x4e100002 --rw-rw-rw- root root
m 2 0x41142787 --rw-rw-rw- root root
m 3 0x5011e167 --r--r--r-- root other
m 9220 0x0c6629c9 --rw-r----- root root
...
$ Processes
Loaded 4116 proc_t entries in 'DefaultView'
$ keep p_stat (UX 10.X and 11.00 only)
Kept 281 entries in DefaultView
$ vp p_pid p_ppid p_comm | grep getty
0x00000663 0x00000001 getty
$ Ps -p 16440
Sleep PRI TID PID PPID PCOMM SC_NAME KSTAT CTXT_FLAGS
1026 661 12314 16440 23369 rm unlink TSSLEEP 0x00000000
Additionally there are other useful commands:
Get the command line of a process:
$ pcmd -p 16440
addr pindx pid : command
0x6393d80 2225 16440 : rm 1_450.dbf 1_4500.dbf 1_45000.dbf 1_45001.dbf
1_45002.dbf
Get the stacktrace of a process:
$ trace -a -p 16440
proc[2225] pid=16440 tid=12314 cmd="rm 1_450.dbf 1_4500.dbf 1_45000.dbf 1_45"
Process : p proc_t 0x6393d80
proc[2225] pid=16440 rm
Kthread : p kthread_t 0x67e89a8
Using PCB: p user_t 0x627f400.0x400003ffffff0000
SR5=0x0627f400
SP SZ RP Return Name
0x400003ffffff21a0 0x00c0 0x00128a8c _swtch+0xd4
arg0: 0x00000000001cc988
0x400003ffffff20e0 0x0130 0x001286ac _sleep+0x154
arg0: 0x0000000000957448
arg1: 0x0000000000000295
0x400003ffffff1fb0 0x00d0 0x001cc988 getnewbuf_desperate+0x258
arg0: 0x0000000000000001
arg1: 0x0000000000002000
0x400003ffffff1ee0 0x0120 0x00168d2c getnewbuf+0x584
arg0: 0x0000000000004850
arg1: 0x0000000000002000
...
...
Or use
$ trace -w -p 16440
Print values and structures: