From haikugeek@westhost36.westhost.net  Wed Nov 28 05:41:05 2001
Return-Path: <haikugeek@westhost36.westhost.net>
Received: from westhost36.westhost.net (westhost36.westhost.net [216.71.84.209])
	by hub.freebsd.org (Postfix) with ESMTP id EBE9237B417
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 28 Nov 2001 05:41:04 -0800 (PST)
Received: (from haikugeek@localhost)
	by westhost36.westhost.net (8.11.6/8.11.6) id fASDeFi14565
	for FreeBSD-gnats-submit@freebsd.org; Wed, 28 Nov 2001 07:40:15 -0600
Message-Id: <200111281340.fASDeFi14565@westhost36.westhost.net>
Date: Wed, 28 Nov 2001 07:40:15 -0600
From: Jonathan Mini <mini@haikugeek.com>
Reply-To: Jonathan Mini <mini@haikugeek.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: /boot/loader's panic reboots before user can read message
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         32351
>Category:       kern
>Synopsis:       /boot/loader's panic reboots before user can read message
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 28 05:50:01 PST 2001
>Closed-Date:    Wed Nov 28 06:00:41 PST 2001
>Last-Modified:  Wed Nov 28 06:00:56 PST 2001
>Originator:     Jonathan Mini
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD groove.haikugeek.com FreeBSD 5.0-CURRENT #1: Sun Nov 18 02:30:58
 GMT 2001 mini@:/usr/obj/usr/home/mini/work/src/sys/GENERIC i386

>Description:
        panic() in /boot/loader will emit a panic message and reboot
        immediately, which makes it impossible to read the message unless
        you are using a serial console.
>How-To-Repeat:
        The easiest way to panic the loader at the moment is to type this
        script:

	0 0 fclose fclose
>Fix:
        Apply this patch:

Index: panic.c
===================================================================
RCS file: /usr/FreeBSD/src/sys/boot/common/panic.c,v
retrieving revision 1.5
diff -c -r1.5 panic.c
*** panic.c     1999/08/28 00:39:51     1.5
--- panic.c     2001/11/28 20:08:32
***************
*** 50,54 ****
--- 50,58 ----
        va_end(ap);
        printf("\n");

+       printf("--> Press a key on the console to reboot <--\n");
+       getchar();
+       printf("Rebooting...\n");
+
        exit(1);
  }
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dcs 
State-Changed-When: Wed Nov 28 06:00:41 PST 2001 
State-Changed-Why:  
Committed, thanks. 


http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32351 
>Unformatted:
