Sources Bugzilla – Bug 12751
request to document that mcheck is not thread safe.
Last modified: 2012-08-30 16:15:27 UTC
Attempting to use -lmcheck on a threaded program, I was not able to locate the error in the source associated with an apparent mcheck() MCHECK_HEAD status result. I found on stackoverflow: http://stackoverflow.com/questions/314931/glibcs-lmcheck-option-and-multithreading saying that mcheck is not actually thread safe, referencing the following bug report: http://sourceware.org/bugzilla/show_bug.cgi?id=6547 This bug is opened to request that the non-thread-safe nature of mcheck() be documented explicitly in the libc info page 'Heap Consistency Checking'.