From owner-freebsd-bugs Wed Nov 28 5:50:13 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5E4E137B41E for ; Wed, 28 Nov 2001 05:50:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fASDo1820702; Wed, 28 Nov 2001 05:50:01 -0800 (PST) (envelope-from gnats) Received: from westhost36.westhost.net (westhost36.westhost.net [216.71.84.209]) by hub.freebsd.org (Postfix) with ESMTP id EBE9237B417 for ; 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: haikugeek@westhost36.westhost.net To: FreeBSD-gnats-submit@freebsd.org Subject: kern/32351: /boot/loader's panic reboots before user can read message Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 Reply-To: Jonathan Mini 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