1 2 The object at address 0x........ is not a mutex. 3 at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?) 4 by 0x........: main (tc23_bogus_condwait.c:69) 5 6 Thread 3: 7 Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread. 8 at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?) 9 by 0x........: rescue_me (tc23_bogus_condwait.c:20) 10 by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) 11 cond 0x........ was first observed at: 12 at 0x........: pthread_cond_init (drd_pthread_intercepts.c:?) 13 by 0x........: main (tc23_bogus_condwait.c:56) 14 15 Thread 1: 16 Mutex not locked: mutex 0x........, recursion count 0, owner 0. 17 at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?) 18 by 0x........: main (tc23_bogus_condwait.c:72) 19 mutex 0x........ was first observed at: 20 at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) 21 by 0x........: main (tc23_bogus_condwait.c:51) 22 23 Thread 3: 24 Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread. 25 at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?) 26 by 0x........: rescue_me (tc23_bogus_condwait.c:24) 27 by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) 28 cond 0x........ was first observed at: 29 at 0x........: pthread_cond_init (drd_pthread_intercepts.c:?) 30 by 0x........: main (tc23_bogus_condwait.c:56) 31 mutex 0x........ was first observed at: 32 at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) 33 by 0x........: main (tc23_bogus_condwait.c:51) 34 35 Thread 1: 36 The object at address 0x........ is not a mutex. 37 at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?) 38 by 0x........: main (tc23_bogus_condwait.c:75) 39 rwlock 0x........ was first observed at: 40 at 0x........: pthread_rwlock_init (drd_pthread_intercepts.c:?) 41 by 0x........: main (tc23_bogus_condwait.c:57) 42 43 Thread 3: 44 Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread. 45 at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?) 46 by 0x........: rescue_me (tc23_bogus_condwait.c:28) 47 by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) 48 cond 0x........ was first observed at: 49 at 0x........: pthread_cond_init (drd_pthread_intercepts.c:?) 50 by 0x........: main (tc23_bogus_condwait.c:56) 51 rwlock 0x........ was first observed at: 52 at 0x........: pthread_rwlock_init (drd_pthread_intercepts.c:?) 53 by 0x........: main (tc23_bogus_condwait.c:57) 54 55 Thread 1: 56 Mutex not locked by calling thread: mutex 0x........, recursion count 1, owner 2. 57 at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?) 58 by 0x........: main (tc23_bogus_condwait.c:78) 59 mutex 0x........ was first observed at: 60 at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) 61 by 0x........: main (tc23_bogus_condwait.c:53) 62 63 Thread 3: 64 Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread. 65 at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?) 66 by 0x........: rescue_me (tc23_bogus_condwait.c:32) 67 by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) 68 cond 0x........ was first observed at: 69 at 0x........: pthread_cond_init (drd_pthread_intercepts.c:?) 70 by 0x........: main (tc23_bogus_condwait.c:56) 71 mutex 0x........ was first observed at: 72 at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) 73 by 0x........: main (tc23_bogus_condwait.c:53) 74 75 The impossible happened: mutex 0x........ is locked simultaneously by two threads (recursion count 1, owners 2 and 1) ! 76 Thread 2: 77 Mutex not locked by calling thread: mutex 0x........, recursion count 2, owner 1. 78 at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) 79 by 0x........: grab_the_lock (tc23_bogus_condwait.c:42) 80 by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) 81 mutex 0x........ was first observed at: 82 at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) 83 by 0x........: main (tc23_bogus_condwait.c:53) 84 85 86 ERROR SUMMARY: 11 errors from 9 contexts (suppressed: 0 from 0) 87