Deadman
code is enabled by setting snooping in /etc/system. Make the
following
entry in the /etc/system file:
set
snooping = 1
Reboot
the system with kadb:
ok
boot kadb
When
the next hang occurs, hopefully the deadman timer will be triggered,
and
the system will drop into kadb:
#
~stopped at 0xfbd01028: ta 0x7d
kadb[0]:
At
this point, any specific debugger commands can be run to examine the
current
state of the system. Of particular interest are:
$r
dump the registers
$c
dump the current stack backtrace
freemem/D
see how much memory is free
When
kadb debugging is complete, attempt to take a core dump by doing:
kadb[0]:
$q
ok
sync
Regards
Gurudatta N.R
No comments:
Post a Comment