This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Is -lmcheck thread-safe in glibc 2.0.7 on Linux 2.2x?


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]