[uClibc]obscure malloc bug with debugging enabled ?

Erik Andersen andersen at lineo.com
Wed Jul 18 17:32:14 UTC 2001


On Thu Jul 19, 2001 at 11:23:41AM +1000, Glenn wrote:
> hmm, i changed the code and it segfaults elswhere, but still works under
> glibc.
> 
> Maybe im working it too hard.. here is the log from dmalloc when run
> succesfully with glibc (there are ~100kB of memmory leaks i need to fix up)

Have a look a 'man 3 malloc' regarding MALLOC_CHECK_, and then
try setting 'export MALLOC_CHECK_=2' under glibc to see if that
shows anything.  By default, glibc tries to be friendly to apps
overflowing their buffers and whatnot (rather shortsighted as a
default IMHO). Generally, random crashing bugs that move around
are indicitive of heap corruption somewhere...

 -Erik

--
Erik B. Andersen   email:  andersen at lineo.com
--This message was written using 73% post-consumer electrons--





More information about the uClibc mailing list