[PLUG] Malloc and Glibc

Felix Lee flee at aracnet.com
Tue Nov 26 17:47:32 UTC 2002


"Mathew, Tisson K" <tisson.k.mathew at intel.com>:
> A program that simply launches 10 threads that just malloc, wait 100
> milliseconds, and free the data and then loop.  
> This simple program segmentation faults. I'm using glibc version 2.2.2. I
> was wondering if malloc has reentrancy problems or not ? 

what's your sample program?  it looks like the malloc in
glibc 2.x should already cooperate with pthreads.  (it uses
pthread_atfork to set up the mutexes it needs.)
--




More information about the PLUG mailing list