Date: Thu, 20 Mar 1997 10:26:09 -0500 From: dennis <dennis@etinc.com> To: dg@root.com Cc: hackers@FreeBSD.ORG Subject: Re: insight on malloc crash... Message-ID: <3.0.32.19970320102606.00b2adb0@etinc.com>
next in thread | raw e-mail | index | archive | help
At 05:52 PM 3/19/97 -0800, David Greenman wrote: >>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? FYI: The answer, if anyone is interested, is that in 2.2 the userland prototype (in string.h) is not compatible with the kernel version in sys/systm.h, even though the 'c' call is the same. Dennis
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.32.19970320102606.00b2adb0>