This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: Is -lmcheck thread-safe in glibc 2.0.7 on Linux 2.2x?
- To: george@moberg.com
- Subject: Re: Is -lmcheck thread-safe in glibc 2.0.7 on Linux 2.2x?
- From: Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
- Date: 9 Jul 1999 07:59:31 -0000
- CC: libc-alpha@sourceware.cygnus.com
- References: <XFMail.990708170746.george@moberg.com>
Hello,
> I was suspecting that, since it's using the malloc hooks, which themselves
> aren't protected by the mutex for the arena, etc. Is there another package
> compatible with glibc which can be used for memory debugging in a multithreaded
> program?
Hmm, the MALLOC_CHECK_=1 functionality is thread-safe (I hope). It
may be not quite as comprehensive as -lmcheck, but I've found many,
many bugs using it.
In glibc-2.1 (not sure about 2.0.7), it will detect overruns of a
single byte _very_ reliably.
Regards,
Wolfram.
--
`Surf the sea, not double-u three...'
wmglo@dent.med.uni-muenchen.de