Dave - Handy Tip on setting up automated coredump handling for FreeBSD

New About Yours API Help
936 bytes, Plain text
http://www.etinc.com/122/Using-FreeBSD-Text-Dumps

TLDR:

add this to /etc/ddb.conf:

/etc/ddb.conf 
# $FreeBSD$
#
#  This file is read when going to multi-user and its contents piped thru
#  ``ddb'' to define debugging scripts.
#
# see ``man 4 ddb'' and ``man 8 ddb'' for details.
#

script lockinfo=show locks; show alllocks; show lockedvnods

# kdb.enter.panic       panic(9) was called.
script kdb.enter.panic=textdump set; capture on; run lockinfo; show pcpu; bt; ps; alltrace; capture off; call doadump; reset

# kdb.enter.witness     witness(4) detected a locking error.
script kdb.enter.witness=run lockinfo


and these to /etc/sysctl.conf:

# debug
# http://www.etinc.com/122/Using-FreeBSD-Text-Dumps
debug.ddb.textdump.pending=1
debug.kdb.alt_break_to_debugger=1

and your next kernel coredump will be diligently auto-converted for you to text and dropped in /var/crash/ as usual, then rebooted.
Pasted 4 weeks ago — Expires in 337 days
URL: http://dpaste.com/27YH93Y