Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: HEADS UP: panic behaviour changed



On Sat, 31 Jan 2009, Andrew Doran wrote:
I changed it so that the debugger is no longer automatically entered if the
system panics. Dropping to the debugger is especially inappropriate if the
victim is on call or using X at the time.

It will just dump and reboot now. To enter the debugger automatically set
ddb.onpanic=1 in /etc/sysctl.conf.

There's some scope for improvement here, for example waiting a few seconds
and prompting before reboot..

In g4u, I huse patch (see below) to actually halt the system without jumping into the DDB. Maybe it would be nice to specify what the system should do, in some variable/sysctl/kernel option: halt, reboot, ddb.


 - Hubert

Index: subr_prf.c
===================================================================
RCS file: /cvsroot/src/sys/kern/subr_prf.c,v
retrieving revision 1.124
diff -u -r1.124 subr_prf.c
--- subr_prf.c  23 Sep 2008 22:20:24 -0000      1.124
+++ subr_prf.c  16 Nov 2008 23:54:43 -0000
@@ -202,6 +202,9 @@
        }

        bootopt = RB_AUTOBOOT;
+#ifdef HALT_ON_PANIC
+       bootopt |= RB_HALT;             /* HF/G4U */
+#endif
        if (dumponpanic)
                bootopt |= RB_DUMP;
        if (doing_shutdown)


Home | Main Index | Thread Index | Old Index