This is the mail archive of the
pthreads-win32@sources.redhat.com
mailing list for the pthreas-win32 project.
Win2000 and condvar tests
- To: pthreads-win32 at sourceware dot cygnus dot com
- Subject: Win2000 and condvar tests
- From: "Stephen R. Johns" <stephen dot johns at securelogix dot com>
- Date: Mon, 26 Mar 2001 16:03:27 -0600
Since my post about the the Linux threads unlocking others'
mutexes, I decided to look at condvars to get around it.
The problem is that on both of my systems (Win2000 5.00.2195 and
NT 4.00.1381), only condvar tests 1 and 2 (TESTS/condvar1.c and
TESTS/condvar2.c) pass. 3 and up sigsegv:
Program received signal SIGSEGV, Segmentation fault.
0x10001f35 in
ptw32_cond_timedwait__FPP15pthread_cond_t_PP16pthread_mutex_t_PC8timespec
(cond=0x403000, mutex=0x403010, abstime=0x243ff50) at condvar.c:689
which is:
pthread_cleanup_pop (1); /* Always cleanup */
stack trace:
#0 0x10001f35 in
ptw32_cond_timedwait__FPP15pthread_cond_t_PP16pthread_mutex_t_PC8timespec
(cond=0x403000, mutex=0x403010, abstime=0x243ff50) at condvar.c:689
#1 0x10001fbc in pthread_cond_timedwait (cond=0x403000, mutex=0x403010,
abstime=0x243ff50) at condvar.c:815
#2 0x401839 in main () at condvar3.c:100
Any ideas?