Beruflich Dokumente
Kultur Dokumente
Deadlock
Coffman conditions
Hang
No forward progress
In Solaris
Mutexes
Readers-Write locks
Condition Variables
Crash Dump Analysis MFF UK Deadlocks and hangs 7
Mutex
::cpuinfo
::threadlist / ::findstack
::tCreadli6t -v K le66
8r5_enter
::findlocks
Needs ::typegraph
The only option if the hang occurs too early before a dump can
be generated
Crash Dump Analysis MFF UK Deadlocks and hangs 19
Binary search on a stack trace
(1)On a hung system, break into kmdb
(2)$C
(3)Pick the return address in the middle of the stack trace
(4)Set a breakpoint to it
(5):c
(6)If the breakpoint was hit, clear all breakpoints (:z) and repeat the search on
the lower half of the stack trace
If the breakpoint was not hit, clear all breakpoints (:z) and repeat the search
on the upper half of the stack trace
It is possible that the stack trace starts with the top-level function; in that
case, try to put a breakpoint to a function called from it and see if it gets
called
Crash Dump Analysis MFF UK Deadlocks and hangs 20
Enforcing crash dump
halt -d
reboot -d
uadmin 5 1
$<systemdump
Crash Dump Analysis MFF UK Deadlocks and hangs 21
Enforcing crash dump (2)
sync
Using a button
Deadman timer
Crash Dump Analysis MFF UK Deadlocks and hangs 22
Deadman timer
set snooping=1