[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fopen/malloc MT bug
From: |
Ulrich Drepper |
Subject: |
Re: fopen/malloc MT bug |
Date: |
18 Apr 2001 13:13:44 -0700 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.2 (Thelxepeia) |
Wojciech Piechowski <address@hidden> writes:
> It may be very difficult to write a test program to show the problem
> without mcheck, so I used it. Is there anyone who can authoritatively say
> or show that mcheck is not thread-safe() ? (authors here :-?) If yes, then
> why I no longer have my memory clobbered even without mcheck?
Just look at the source code. There is a lot of changing of global
variables without any locking. Don't use mcheck in multi-threaded
applications.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------