Subject: Re: port-xen/29887: sysctl kern.consdev coredumps
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 06/23/2005 09:23:11
On Thu, Jun 23, 2005 at 12:19:47PM +0900, YAMAMOTO Takashi wrote:
> i meant "because the idea to produce (null) and suppress coredump is
> fundamentally bad."
I agree. We would not start mapping a userspace address at VA 0 again, to stop
dereferences of NULL pointers to core, right?
This does not mean that we should remove the "(null)" output from printf,
and maybe add it to puts as a stopgap fix.
But IMHO we should discourage passing NULL pointers as %s to *printf* in the
style doc and fix callers as we discover them.
Martin