pthread_rwlock_unlock segfault!

Rob Landley rob at landley.net
Mon Sep 22 17:30:20 UTC 2008


On Thursday 04 September 2008 11:03:05 Gustavo Moreira wrote:
> I'm using uClibc 0.9.29, the rwlock struct is into Posix
> (shm_open/mmap) shared memory with PTHREAD_PROCESS_SHARED
> process-shared attribute.
> Four processes are using this rwlock concurrently, but curiously ever
> breaks here (see below).
> I added some additional information that I think will be helpful.
> uClibc was compiled with Thread library implementation (linuxthreads
> (stable/old))
> # HAS_NO_THREADS is not set
> UCLIBC_HAS_THREADS=y
> PTHREADS_DEBUG_SUPPORT=y
> LINUXTHREADS_OLD=y

Could you attach a complete .config and a test.c file which I can compile into 
an a.out against both uClibc and glibc which demonstrates the segfault?

Thanks,

Rob



More information about the uClibc mailing list