Debug kernel panic

From TykWiki
Revision as of 18:59, 25 August 2012 by Tykling (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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'