Debug kernel panic: Difference between revisions
From TykWiki
Jump to navigationJump to search
(Created page with "To debug a FreeBSD kernel panic, and to make the machine reboot instead of sitting there when it does happen, I add the following line to <code>/etc/crontab</etc>: <code> @reb...") |
No edit summary |
||
Line 1: | Line 1: | ||
To debug a FreeBSD kernel panic, and to make the machine reboot instead of sitting there when it does happen, I add the following line to <code>/etc/crontab</ | To debug a FreeBSD kernel panic, and to make the machine reboot instead of sitting there when it does happen, I add the following line to <code>/etc/crontab</code>: | ||
<code> | <code> | ||
@reboot root /sbin/ddb script 'kdb.enter.panic=textdump set; capture on; show allpcpu; bt; ps; alltrace; show alllock; show lockedvnods; call doadump; reset' | @reboot root /sbin/ddb script 'kdb.enter.panic=textdump set; capture on; show allpcpu; bt; ps; alltrace; show alllock; show lockedvnods; call doadump; reset' | ||
</code> | </code> |
Revision as of 18:58, 25 August 2012
To debug a FreeBSD kernel panic, and to make the machine reboot instead of sitting there when it does happen, I add the following line to /etc/crontab
:
@reboot root /sbin/ddb script 'kdb.enter.panic=textdump set; capture on; show allpcpu; bt; ps; alltrace; show alllock; show lockedvnods; call doadump; reset'