Subject: Re: port-xen/29887: sysctl kern.consdev coredumps
To: None <port-xen-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: James Chacon <jmc@NetBSD.org>
List: netbsd-bugs
Date: 06/17/2005 21:12:02
The following reply was made to PR port-xen/29887; it has been noted by GNATS.

From: James Chacon <jmc@NetBSD.org>
To: Martin Husemann <martin@duskware.de>
Cc: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>, christos@zoulas.com,
	gnats-bugs@NetBSD.org, port-xen-maintainer@NetBSD.org,
	gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org,
	tech-userlevel@NetBSD.org
Subject: Re: port-xen/29887: sysctl kern.consdev coredumps
Date: Fri, 17 Jun 2005 16:10:55 -0500

 On Fri, Jun 17, 2005 at 11:03:46PM +0200, Martin Husemann wrote:
 > On Fri, Jun 17, 2005 at 01:20:39PM -0500, James Chacon wrote:
 > > The bug you cite doesn't discuss that. It's simply noting that 
 > > printf("%s", NULL) is undefined behavior [..]
 > 
 > Which, IMHO, we should avoid in our code. How to catch it easily is an
 > open question.
 
 I do agree w. Christos here that if historically our printf has returned
 (null) here that should probably be the behavior we should continue. The 
 standard just says this is undefined behavior in that case, not that we have
 to abort/core.
 
 James