6.2-PRE: Fatal Trap?

Stefan Bethke stb at lassitu.de
Mon Jan 1 07:10:18 PST 2007

Am 01.01.2007 um 12:31 schrieb Chris:

> Is it possible to make it auto run debugger, then auto run backtrace
> then dump the output to disk so people who have no local access can
> get backtraces?

No, but you can enable crashdumps and run the debugger on the dump  
afterwards. Add
to /etc/rc.conf, then run /etc/rc.d/dumpon start.  When the next  
panic occurs, the kernel will write the dump to the configured swap  
space, and the system will save the dump to /var/crash on rebooting.   
on how to get a backtrace from that dump.

If you're short on space in /var, and/or you have a large amount of  
RAM, you can set the sysctl debug.minidump to 1 to have the kernel  
only dump relevant portions of memory, instead of everything.  This,  
however, is experimental in -stable, afaik.


Stefan Bethke <stb at lassitu.de>   Fon +49 170 346 0140

More information about the freebsd-stable mailing list