Subject: Re: port-xen/29887: sysctl kern.consdev coredumps
To: None <port-xen-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 06/23/2005 07:24:03
The following reply was made to PR port-xen/29887; it has been noted by GNATS.
From: Martin Husemann <martin@duskware.de>
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
Cc: jhawk@MIT.EDU, gnats-bugs@netbsd.org,
port-xen-maintainer@netbsd.org, netbsd-bugs@netbsd.org,
tech-userlevel@netbsd.org
Subject: Re: port-xen/29887: sysctl kern.consdev coredumps
Date: Thu, 23 Jun 2005 09:23:11 +0200
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