dave madden wrote:
> 
>  =>From:        ron flory <[EMAIL PROTECTED]>
>  =>...
>  => Speaking of threads, we have several Linux (RH6.0 based) machines that
>  =>segfault when using pthreads.  It happens with several different
>  =>programs, and always seems to happen in the libc 'free()' function.  SMP
>  =>seems to make it happen more often (as one would expect), yet the same
>  =>programs run fine under SUN Solaris Unix....
> 
> Did you compile with -D_REENTRANT (or -D_THREAD_SAFE)?  I'm not having
> any trouble with pthreads on RH5.2, kernel 2.3.3, KCC-3.3f.

 hi-

 yup, have been using -D_REENTRANT.  pthreads seems to have a problem
when more than one thread is trying to do a free()  [ or C++ delete() ]
call at the same time.  I've got one of our guys trying to put together
a small test program that always breaks-

ron
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]

Reply via email to