Debug kernel panic

From TykWiki
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'