From owner-freebsd-questions Thu Jun 17 19:22:52 1999 Delivered-To: freebsd-questions@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 2058115413 for ; Thu, 17 Jun 1999 19:22:38 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id LAA07747; Fri, 18 Jun 1999 11:52:35 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id LAA01806; Fri, 18 Jun 1999 11:52:44 +0930 (CST) Date: Fri, 18 Jun 1999 11:52:44 +0930 From: Greg Lehey To: Dan Nelson 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: <19990618115244.R9893@freebie.lemis.com> References: <19990617174029.B7287@dan.emsphone.com> <28890.929659712@monkeys.com> <19990618100818.P9893@freebie.lemis.com> <19990617211655.A9746@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <19990617211655.A9746@dan.emsphone.com>; from Dan Nelson on Thu, Jun 17, 1999 at 09:16:55PM -0500 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thursday, 17 June 1999 at 21:16:55 -0500, Dan Nelson wrote: > 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. The background here is that Ronald does not have enough swap to save a core dump, and it's inconvenient to add another disk. >>> 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 don't understand the connection with what I just wrote. > 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 :) Agreed. Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message