Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Nov 2001 07:40:15 -0600
From:      haikugeek@westhost36.westhost.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/32351: /boot/loader's panic reboots before user can read message
Message-ID:  <200111281340.fASDeFi14565@westhost36.westhost.net>

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

>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:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 28 05:50:01 PST 2001
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:
 To: FreeBSD-gnats-submit@freebsd.org
 From: Jonathan Mini <mini@haikugeek.com>
 Reply-To: Jonathan Mini <mini@haikugeek.com>
 Cc: 
 X-send-pr-version: 3.113
 X-GNATS-Notify: 
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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