Subject: Re: malloc problem
To: <>
From: Simon Burge <>
List: tech-userlevel
Date: 11/17/2001 14:22:18
Giles Lean wrote:

> > The following program crashes on NetBSD/i386-1.5.2. I expected malloc() to
> > return NULL and setting errno to ENOMEM instead of getting a crash. Is there
> > any explanation for this, or is it a bug?
> Bug.
> On NetBSD/1.5.1 this malloc() succeeds if there is sufficient memory
> or fails correctly setting errno to ENOMEM as required.  If this
> doesn't work on 1.5.2 then there's an introduced problem, it would
> seem.  Can someone else verify on 1.5.2?

Works fine on 1.5.3_ALPHA (on an Alpha).

Simon Burge                            <>
NetBSD CDs, Support and Service: