Date: Wed, 19 Mar 1997 17:52:29 -0800 From: David Greenman <dg@root.com> To: dennis <dennis@etinc.com> Cc: hackers@FreeBSD.ORG Subject: Re: insight on malloc crash... Message-ID: <199703200152.RAA18256@root.com> In-Reply-To: Your message of "Wed, 19 Mar 1997 19:04:57 EST." <3.0.32.19970319190454.00b222d0@etinc.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>Can anyone give some insight on why the following code might >panic v2.2 (while it has been working happily since 1.x) > >p=malloc(size,M_DEVBUF,M_WAITOK); >if (p) > bzero(p,size) > > >bzero is panicing....did something change? this stuff isnt very >well document :/ The only thing that comes to mind off-hand is that "size" might be bogus (either 0 or way too large). Is the panic on the first byte zeroed, or is it some amount into the malloced area? -DG David Greenman Core-team/Principal Architect, The FreeBSD Project
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703200152.RAA18256>