Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jan 2013 07:22:34 +0000
From:      Ben Morrow <ben@morrow.me.uk>
To:        sodynet1@gmail.com, freebsd-stable@freebsd.org
Subject:   Re: Failsafe on kernel panic
Message-ID:  <20130117072226.GA38991@anubis.morrow.me.uk>
In-Reply-To: <CAEW%2BogaTKTdG=dvZfR1=E3t5v_X98bXTrGWrzp=pNexUa3aYPg@mail.gmail.com>
References:  <CAEW%2BogYvJih5nEpFWPDjfRWxeURQYp=KM=WckmKB_VB=CxEUbQ@mail.gmail.com> <201301161513.27016.jhb@freebsd.org> <CAEW%2BogbQ3WD3ekVZ0GCgsd3UbL1YHzra-=jKEo6-1t11OMYkFg@mail.gmail.com> <1358392725.32417.179.camel@revolution.hippie.lan>

next in thread | previous in thread | raw e-mail | index | archive | help

Quoth Sami Halabi <sodynet1@gmail.com>:
> בתאריך 17 בינו 2013 05:18, מאת "Ian Lepore" <ian@freebsd.org>:
> >
> > From src/sys/conf/NOTES, this may be what you're looking for...
> >
> > #
> > # Don't enter the debugger for a panic. Intended for unattended operation
> > # where you may want to enter the debugger from the console, but still want
> > # the machine to recover from a panic.
> > #
> > options         KDB_UNATTENDED
> >
> > But I think it only has meaning if you have option KDB in effect,
> > otherwise it should just reboot itself after a 15 second pause.
>
> Its only a kernel option? There is no flag to pass to the loader?

    ~% sysctl -ad | grep panic
    kern.stop_scheduler_on_panic: stop scheduler upon entering panic
    kern.sync_on_panic: Do a sync before rebooting from a panic
    debug.trace_on_panic: Print stack trace on kernel panic
    debug.debugger_on_panic: Run debugger on kernel panic
    debug.kdb.panic: set to panic the kernel
    machdep.enable_panic_key: Enable panic via keypress specified in kbdmap(5)
    machdep.panic_on_nmi: Panic on NMI

These are also tunables which can be set in /boot/loader.conf or at the
loader prompt.

Ben




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130117072226.GA38991>