Random failures when calling free()/malloc()

Dan Kegel dank@kegel.com
Sat Jul 19 20:30:00 GMT 2003


Martin Schlemmer wrote:
> On Sat, 2003-07-19 at 18:39, Dan Kegel wrote:
> 
>>BTW, have you cranked glibc's malloc debugging setting
>>up to the max?  There's also a sanity check routine you
>>could call periodically before the failure...
> 
> 
> Ok, got this:
> 
> --------------------------------------
> malloc.c:3212: munmap_chunk: Assertion `((p->prev_size + size) &
> (mp_.pagesize-1)) == 0' failed.
> --------------------------------------
> 
> Pretty much the same as the rest, just ending in the assert and not
> the unlink().

Run that in gdb and let's see a backtrace...
- Dan

-- 
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045



More information about the Libc-alpha mailing list