Subject: Re: port-xen/29887: sysctl kern.consdev coredumps
To: Jason Thorpe <firstname.lastname@example.org>
From: Bill Studenmund <email@example.com>
Date: 06/21/2005 13:07:27
Content-Type: text/plain; charset=us-ascii
On Tue, Jun 21, 2005 at 12:52:32PM -0700, Jason Thorpe wrote:
> On Jun 21, 2005, at 12:48 PM, Bill Studenmund wrote:
> >If the program is trying to printf() something, it's trying to say
> >something. Whether or not it's in unrecoverable error land or not, my
> >experience is it's easier to figure out what's wrong if you see
> >"client=3D(null)" or some such in an output file rather than getting =20
> >a core
> >dump. Yes, you can figure it out from the core dump, but the printf =20
> >it quicker.
> In the case of "client=3D(null)", maybe. But consider cases where you =
> would not be able to distinguish the magic from user-provided input.
I've tried to consider them, and I do not see what you're aluding to.
Yes, it is impossible to differentiate between code printf()ing a NULL=20
pointer and printf()ing "(null)". I however fail to see what that=20
contributes to the discussion. Please explain.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)
-----END PGP SIGNATURE-----