Mikolaj Golub at
Sun Oct 4 18:40:41 UTC 2009


This simple script is useful for me and might be useful for other people
too. The script creates tar archive that contains all files needed for
debugging FreeBSD kernel crash (vmcore, kernel, loaded modules, sources that
appear in backtrace). This is useful e.g. for debugging a crash on another
host, sending it to developers or if you are going to upgrade the kernel on
crashed host but would like to keep crashdump in case the developers ask you
to provide additional info.

Created tar contains also a script that when being run inside unpacked archive
will give kgdb(1) session with crash core loaded in it. The script should be
run with root privileges because it does chroot(8) before starting kgdb(1).

I think I don't have to warn here that a crashdump may be sent only to person
you trust :-).

Mikolaj Golub

More information about the freebsd-hackers mailing list