From owner-freebsd-questions Thu Jun 17 19:17:33 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 62C9414E14 for ; Thu, 17 Jun 1999 19:17:31 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id VAA09820; Thu, 17 Jun 1999 21:16:55 -0500 (CDT) (envelope-from dan) Date: Thu, 17 Jun 1999 21:16:55 -0500 From: Dan Nelson To: Greg Lehey Cc: "Ronald F. Guilmette" , Thomas David Rivers , mistwolf@ethereal.net, questions@FreeBSD.ORG Subject: Re: A suggested kernel enhancement relating to kernel panics. Message-ID: <19990617211655.A9746@dan.emsphone.com> References: <19990617174029.B7287@dan.emsphone.com> <28890.929659712@monkeys.com> <19990618100818.P9893@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <19990618100818.P9893@freebie.lemis.com>; from "Greg Lehey" on Fri Jun 18 10:08:19 GMT 1999 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Jun 18), Greg Lehey said: > >> When savecore saves a core, it logs the panic string via syslog: > >> > >> if (panicstr) > >> syslog(LOG_ALERT, "reboot after panic: %s", panic_mesg); > >> else > >> syslog(LOG_ALERT, "reboot"); > >> > >> So it's in /var/log/messages too. > > You're assuming that syslog is still running. We're in a panic > situation here. savecore is run from /etc/rc. Assuming a core was dumped on panic, the message will get logged on the next reboot. > > Well, I am getting sudden/unexpected reboots and this has happened > > several times now. Each time I look in /var/log/messages and there > > is NOTHING there... > > That's normal. When you panic, you stop writing to disk (except for > the dump). Maybe he's not panicing then. I've had my BSD box do a spontaneous reboot on me once or twice. This kind of crash is mighty hard to debug though, since it doesn't leave anything to debug :) -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message