Prevent reboot-after-panic behavior?

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


Hi.

On Sat, Jul 11, 2009 at 12:25 AM, jw<jwdevel at gmail.com> wrote:
> I'm trying to figure out a strange panic issue (see:
> http://lists.freebsd.org/pipermail/freebsd-questions/2009-July/201842.html).
>
> 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: http://www.webhostingtalk.com/showthread.php?t=438372
> 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

HTH.

-- 
Glen Barber


More information about the freebsd-questions mailing list