Prevent reboot-after-panic behavior?

Glen Barber glen.j.barber at
Sat Jul 11 04:49:55 UTC 2009


On Sat, Jul 11, 2009 at 12:25 AM, jw<jwdevel at> wrote:
> I'm trying to figure out a strange panic issue (see:
> The problem is I generally need to run it overnight in order to reproduce it.
> By the time I get back to it, the machine has auto-rebooted, losing
> precious info in ttyv0.
> I cannot simply analyze a dump because the dump fails (see other
> thread for that info - possibly a separate issue).
> I am working on getting the dump to succeed, but in the meantime:
> Is there a way to turn off the auto-reboot behavior?
> I found this link:
> But it is about turning it *on* and is somewhat old.
> Is there a way to change the behavior without recompiling the kernel?

If you don't have debugging enabled in the kernel (KDB, DDB), no.  If
you do, you can set the following sysctl to disable automatic reboot
on panic:
   debug.debugger_on_panic: 1


Glen Barber

More information about the freebsd-questions mailing list