Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jun 1999 21:16:55 -0500
From:      Dan Nelson <dnelson@emsphone.com>
To:        Greg Lehey <grog@lemis.com>
Cc:        "Ronald F. Guilmette" <rfg@monkeys.com>, Thomas David Rivers <rivers@dignus.com>, mistwolf@ethereal.net, questions@FreeBSD.ORG
Subject:   Re: A suggested kernel enhancement relating to kernel panics.
Message-ID:  <19990617211655.A9746@dan.emsphone.com>
In-Reply-To: <19990618100818.P9893@freebie.lemis.com>; from "Greg Lehey" on Fri Jun 18 10:08:19 GMT 1999
References:  <19990617174029.B7287@dan.emsphone.com> <28890.929659712@monkeys.com> <19990618100818.P9893@freebie.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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