Subject: Re: panicstr in crash dump change
To: None <eeh@netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-kern
Date: 04/21/2001 02:23:48
eeh@netbsd.org wrote:

> 	Anyone see any problems with this?
> 
> 	@@ -202,12 +205,19 @@ panic(fmt, va_alist)
> 	 	if (!panicstr)
> 	 		panicstr = fmt;
> 	 	doing_shutdown = 1;
> 	+
> 	+	mbp = msgbufp;
> 	+	if (mbp->msg_magic == MSG_MAGIC)
> 	+		panicstart = mbp->msg_bufx;
> 	 	
> What if msgbufp is not a valid pointer?

I'm using the same test as that in putchar() below that.  I guess if the
msgbufp pointer is hosed, you wont see the panic string on the console
either...

Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD CDs, Support and Service:    http://www.wasabisystems.com/