noinst_PROGRAMS += exp-drd-ppc64-aix5 vgpreload_exp-drd-ppc64-aix5.so
endif
-VGPRELOAD_DRD_SOURCES_COMMON = drd_intercepts.c
+VGPRELOAD_DRD_SOURCES_COMMON = drd_pthread_intercepts.c
vgpreload_exp_drd_x86_linux_so_SOURCES = $(VGPRELOAD_DRD_SOURCES_COMMON)
vgpreload_exp_drd_x86_linux_so_CPPFLAGS = $(AM_CPPFLAGS_X86_LINUX)
Thread 3:
Conflicting store by thread 3 at 0x........ size 4
at 0x........: t2 (hg03_inherit.c:28)
- by 0x........: vg_thread_wrapper (drd_intercepts.c:?)
+ by 0x........: vg_thread_wrapper (drd_pthread_intercepts.c:?)
by 0x........: (within libpthread-?.?.so)
by 0x........: clone (in /...libc...)
Location 0x........ is 0 bytes inside shared[1],
declared at hg03_inherit.c:11, in frame #? of thread 3
Other segment start (thread 1)
- at 0x........: pthread_join (drd_intercepts.c:?)
+ at 0x........: pthread_join (drd_pthread_intercepts.c:?)
by 0x........: main (hg03_inherit.c:49)
Other segment end (thread 1)
at 0x........: (within libpthread-?.?.so)
- by 0x........: pthread_join (drd_intercepts.c:?)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
by 0x........: main (hg03_inherit.c:63)
Conflicting store by thread 3 at 0x........ size 4
at 0x........: t2 (hg03_inherit.c:29)
- by 0x........: vg_thread_wrapper (drd_intercepts.c:?)
+ by 0x........: vg_thread_wrapper (drd_pthread_intercepts.c:?)
by 0x........: (within libpthread-?.?.so)
by 0x........: clone (in /...libc...)
Location 0x........ is 0 bytes inside shared[1],
declared at hg03_inherit.c:11, in frame #? of thread 3
Other segment start (thread 1)
- at 0x........: pthread_join (drd_intercepts.c:?)
+ at 0x........: pthread_join (drd_pthread_intercepts.c:?)
by 0x........: main (hg03_inherit.c:49)
Other segment end (thread 1)
at 0x........: (within libpthread-?.?.so)
- by 0x........: pthread_join (drd_intercepts.c:?)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
by 0x........: main (hg03_inherit.c:63)
ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
Thread 3:
Conflicting store by thread 3 at 0x........ size 4
at 0x........: t2 (hg03_inherit.c:28)
- by 0x........: vg_thread_wrapper (drd_intercepts.c:?)
+ by 0x........: vg_thread_wrapper (drd_pthread_intercepts.c:?)
by 0x........: (within libpthread-?.?.so)
by 0x........: clone (in /...libc...)
Location 0x........ is 0 bytes inside shared[1],
declared at hg03_inherit.c:11, in frame #? of thread 3
Other segment start (thread 1)
- at 0x........: pthread_join (drd_intercepts.c:?)
+ at 0x........: pthread_join (drd_pthread_intercepts.c:?)
by 0x........: main (hg03_inherit.c:49)
Other segment end (thread 1)
at 0x........: (within ld-?.?.so)
- by 0x........: pthread_join (drd_intercepts.c:?)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
by 0x........: main (hg03_inherit.c:63)
Conflicting store by thread 3 at 0x........ size 4
at 0x........: t2 (hg03_inherit.c:29)
- by 0x........: vg_thread_wrapper (drd_intercepts.c:?)
+ by 0x........: vg_thread_wrapper (drd_pthread_intercepts.c:?)
by 0x........: (within libpthread-?.?.so)
by 0x........: clone (in /...libc...)
Location 0x........ is 0 bytes inside shared[1],
declared at hg03_inherit.c:11, in frame #? of thread 3
Other segment start (thread 1)
- at 0x........: pthread_join (drd_intercepts.c:?)
+ at 0x........: pthread_join (drd_pthread_intercepts.c:?)
by 0x........: main (hg03_inherit.c:49)
Other segment end (thread 1)
at 0x........: (within ld-?.?.so)
- by 0x........: pthread_join (drd_intercepts.c:?)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
by 0x........: main (hg03_inherit.c:63)
ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
Thread 2:
Conflicting load by thread 2 at 0x........ size 4
at 0x........: th (hg04_race.c:10)
- by 0x........: vg_thread_wrapper (drd_intercepts.c:?)
+ by 0x........: vg_thread_wrapper (drd_pthread_intercepts.c:?)
by 0x........: (within libpthread-?.?.so)
by 0x........: clone (in /...libc...)
Location 0x........ is 0 bytes inside local var "shared"
Conflicting store by thread 2 at 0x........ size 4
at 0x........: th (hg04_race.c:10)
- by 0x........: vg_thread_wrapper (drd_intercepts.c:?)
+ by 0x........: vg_thread_wrapper (drd_pthread_intercepts.c:?)
by 0x........: (within libpthread-?.?.so)
by 0x........: clone (in /...libc...)
Location 0x........ is 0 bytes inside local var "shared"
Thread 2:
Conflicting load by thread 2 at 0x........ size 4
at 0x........: th (hg05_race2.c:17)
- by 0x........: vg_thread_wrapper (drd_intercepts.c:?)
+ by 0x........: vg_thread_wrapper (drd_pthread_intercepts.c:?)
by 0x........: (within libpthread-?.?.so)
by 0x........: clone (in /...libc...)
Location 0x........ is 0 bytes inside foo.poot[5].plop[11],
Conflicting store by thread 2 at 0x........ size 4
at 0x........: th (hg05_race2.c:17)
- by 0x........: vg_thread_wrapper (drd_intercepts.c:?)
+ by 0x........: vg_thread_wrapper (drd_pthread_intercepts.c:?)
by 0x........: (within libpthread-?.?.so)
by 0x........: clone (in /...libc...)
Location 0x........ is 0 bytes inside foo.poot[5].plop[11],
#include <omp.h>
#include <stdio.h>
#include <stdlib.h>
+#include "../drd_clientreq.h"
static int is_prime(int* const pflag, int v)
omp_set_num_threads(num_threads);
omp_set_dynamic(0);
+#if 1
+ {
+ int res;
+ VALGRIND_DO_CLIENT_REQUEST(res, 0, VG_USERREQ__DRD_TRACE_ADDR,
+ &total, 0, 0, 0, 0);
+ }
+#endif
+
for (i = 0; i < n; i++) {
pflag[i] = 1;
}
Thread 2:
Race condition: condition variable 0x........ has been signalled but the associated mutex 0x........ is not locked by the signalling thread
- at 0x........: pthread_cond_signal* (drd_intercepts.c:?)
+ at 0x........: pthread_cond_signal* (drd_pthread_intercepts.c:?)
by 0x........: thread_func (pth_cond_race.c:?)
- by 0x........: vg_thread_wrapper (drd_intercepts.c:?)
+ by 0x........: vg_thread_wrapper (drd_pthread_intercepts.c:?)
by 0x........: (within libpthread-?.?.so)
by 0x........: clone (in /...libc...)
Recursive locking not allowed: mutex 0x........, recursion count 1, owner 1.
- at 0x........: pthread_mutex_lock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_lock (drd_pthread_intercepts.c:?)
by 0x........: lock_twice (recursive_mutex.c:?)
by 0x........: main (recursive_mutex.c:?)
Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1.
- at 0x........: pthread_mutex_unlock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
by 0x........: lock_twice (recursive_mutex.c:?)
by 0x........: main (recursive_mutex.c:?)
Recursive locking not allowed: mutex 0x........, recursion count 1, owner 1.
- at 0x........: pthread_mutex_lock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_lock (drd_pthread_intercepts.c:?)
by 0x........: lock_twice (recursive_mutex.c:?)
by 0x........: main (recursive_mutex.c:?)
Thread 2:
Conflicting load by thread 2 at 0x........ size 4
at 0x........: thread (rwlock_race.c:?)
- by 0x........: vg_thread_wrapper (drd_intercepts.c:?)
+ by 0x........: vg_thread_wrapper (drd_pthread_intercepts.c:?)
by 0x........: (within libpthread-?.?.so)
by 0x........: clone (in /...libc...)
Location 0x........ is 0 bytes inside local var "s_racy"
Conflicting store by thread 2 at 0x........ size 4
at 0x........: thread (rwlock_race.c:?)
- by 0x........: vg_thread_wrapper (drd_intercepts.c:?)
+ by 0x........: vg_thread_wrapper (drd_pthread_intercepts.c:?)
by 0x........: (within libpthread-?.?.so)
by 0x........: clone (in /...libc...)
Location 0x........ is 0 bytes inside local var "s_racy"
Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1.
- at 0x........: pthread_mutex_unlock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
by 0x........: nearly_main (tc09_bad_unlock.c:27)
by 0x........: main (tc09_bad_unlock.c:49)
Thread 2:
Mutex not locked by calling thread: mutex 0x........, recursion count 1, owner 1.
- at 0x........: pthread_mutex_unlock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
by 0x........: child_fn (tc09_bad_unlock.c:11)
- by 0x........: vg_thread_wrapper (drd_intercepts.c:?)
+ by 0x........: vg_thread_wrapper (drd_pthread_intercepts.c:?)
by 0x........: (within libpthread-?.?.so)
by 0x........: clone (in /...libc...)
Thread 1:
Not a mutex
- at 0x........: pthread_mutex_unlock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
by 0x........: nearly_main (tc09_bad_unlock.c:41)
by 0x........: main (tc09_bad_unlock.c:49)
by 0x........: main (tc09_bad_unlock.c:49)
Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1.
- at 0x........: pthread_mutex_unlock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
by 0x........: nearly_main (tc09_bad_unlock.c:27)
by 0x........: main (tc09_bad_unlock.c:50)
Thread 2:
Mutex not locked by calling thread: mutex 0x........, recursion count 1, owner 1.
- at 0x........: pthread_mutex_unlock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
by 0x........: child_fn (tc09_bad_unlock.c:11)
- by 0x........: vg_thread_wrapper (drd_intercepts.c:?)
+ by 0x........: vg_thread_wrapper (drd_pthread_intercepts.c:?)
by 0x........: (within libpthread-?.?.so)
by 0x........: clone (in /...libc...)
Thread 1:
Not a mutex
- at 0x........: pthread_mutex_unlock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
by 0x........: nearly_main (tc09_bad_unlock.c:41)
by 0x........: main (tc09_bad_unlock.c:50)
Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1.
- at 0x........: pthread_mutex_unlock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
by 0x........: nearly_main (../../helgrind/tests/tc09_bad_unlock.c:27)
by 0x........: main (../../helgrind/tests/tc09_bad_unlock.c:49)
Detected the LinuxThreads threading library. Sorry, but DRD only supports
before unlock #3
before unlock #4
Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1.
- at 0x........: pthread_mutex_unlock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
by 0x........: nearly_main (tc10_rec_lock.c:42)
by 0x........: main (tc10_rec_lock.c:47)
before unlock #3
before unlock #4
Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1.
- at 0x........: pthread_mutex_unlock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
by 0x........: nearly_main (../../helgrind/tests/tc10_rec_lock.c:42)
by 0x........: main (../../helgrind/tests/tc10_rec_lock.c:47)
Reader-writer lock not locked by calling thread: rwlock 0x.........
- at 0x........: pthread_rwlock_unlock* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_unlock* (drd_pthread_intercepts.c:?)
by 0x........: main (tc12_rwl_trivial.c:29)
ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Reader-writer lock not locked by calling thread: rwlock 0x.........
- at 0x........: pthread_rwlock_unlock* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_unlock* (drd_pthread_intercepts.c:?)
by 0x........: main (../../helgrind/tests/tc12_rwl_trivial.c:29)
tc12_rwl_trivial: ../../helgrind/tests/tc12_rwl_trivial.c:29: main: Assertion `r == 0' failed.
Invalid semaphore: semaphore 0x........
- at 0x........: sem_wait* (drd_intercepts.c:?)
+ at 0x........: sem_wait* (drd_pthread_intercepts.c:?)
by 0x........: main (tc18_semabuse.c:34)
ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Not a mutex
- at 0x........: pthread_mutex_init (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:92)
Destroying locked mutex: mutex 0x........, recursion count 1, owner 1.
- at 0x........: pthread_mutex_destroy (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_destroy (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:102)
Not a mutex
- at 0x........: pthread_mutex_lock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_lock (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:108)
Not a mutex
- at 0x........: pthread_mutex_trylock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_trylock (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:116)
Not a mutex
- at 0x........: pthread_mutex_timedlock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_timedlock (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:121)
Not a mutex
- at 0x........: pthread_mutex_unlock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:125)
---------------- pthread_cond_wait et al ----------------
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_wait* (drd_intercepts.c:?)
+ at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:147)
FIXME: can't figure out how to verify wrap of pthread_cond_signal
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_timedwait* (drd_intercepts.c:?)
+ at 0x........: pthread_cond_timedwait* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:165)
---------------- pthread_rwlock_* ----------------
Reader-writer lock not locked by calling thread: rwlock 0x.........
- at 0x........: pthread_rwlock_unlock* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_unlock* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:179)
(1) no error on next line
(2) no error on next line
(3) ERROR on next line
Reader-writer lock not locked by calling thread: rwlock 0x.........
- at 0x........: pthread_rwlock_unlock* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_unlock* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:196)
Reader-writer lock reinitialization: rwlock 0x.........
- at 0x........: pthread_rwlock_init* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_init* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:199)
(4) no error on next line
(5) no error on next line
(8) ERROR on next line
Reader-writer lock not locked by calling thread: rwlock 0x.........
- at 0x........: pthread_rwlock_unlock* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_unlock* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:212)
---------------- sem_* ----------------
Invalid semaphore: semaphore 0x........
- at 0x........: sem_wait* (drd_intercepts.c:?)
+ at 0x........: sem_wait* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:242)
FIXME: can't figure out how to verify wrap of sem_post
Not a mutex
- at 0x........: pthread_mutex_init (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:92)
Destroying locked mutex: mutex 0x........, recursion count 1, owner 1.
- at 0x........: pthread_mutex_destroy (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_destroy (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:102)
make pthread_mutex_lock fail: skipped on glibc < 2.4
Not a mutex
- at 0x........: pthread_mutex_trylock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_trylock (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:116)
Not a mutex
- at 0x........: pthread_mutex_timedlock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_timedlock (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:121)
Not a mutex
- at 0x........: pthread_mutex_unlock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:125)
---------------- pthread_cond_wait et al ----------------
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_wait* (drd_intercepts.c:?)
+ at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:147)
FIXME: can't figure out how to verify wrap of pthread_cond_signal
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_timedwait* (drd_intercepts.c:?)
+ at 0x........: pthread_cond_timedwait* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:165)
---------------- pthread_rwlock_* ----------------
Reader-writer lock not locked by calling thread: rwlock 0x.........
- at 0x........: pthread_rwlock_unlock* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_unlock* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:179)
(1) no error on next line
(2) no error on next line
(3) ERROR on next line
Reader-writer lock not locked by calling thread: rwlock 0x.........
- at 0x........: pthread_rwlock_unlock* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_unlock* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:196)
Reader-writer lock reinitialization: rwlock 0x.........
- at 0x........: pthread_rwlock_init* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_init* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:199)
(4) no error on next line
(5) no error on next line
(8) ERROR on next line
Reader-writer lock not locked by calling thread: rwlock 0x.........
- at 0x........: pthread_rwlock_unlock* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_unlock* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:212)
---------------- sem_* ----------------
Invalid semaphore: semaphore 0x........
- at 0x........: sem_wait* (drd_intercepts.c:?)
+ at 0x........: sem_wait* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:242)
FIXME: can't figure out how to verify wrap of sem_post
[1/1] mutex_init invalid mutex 0x........
Not a mutex
- at 0x........: pthread_mutex_init (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:92)
[1/1] mutex_init mutex 0x........
[1/1] pre_mutex_lock mutex 0x........ rc 0 owner 0
[1/1] mutex_destroy mutex 0x........
Destroying locked mutex: mutex 0x........, recursion count 1, owner 1.
- at 0x........: pthread_mutex_destroy (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_destroy (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:102)
[1/1] pre_mutex_lock (?) 0x........ rc 0 owner 0
Not a mutex
- at 0x........: pthread_mutex_lock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_lock (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:108)
[1/1] post_mutex_lock (?) 0x........ rc 0 owner 0
[1/1] pre_mutex_lock (?) 0x........ rc 0 owner 0
Not a mutex
- at 0x........: pthread_mutex_trylock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_trylock (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:116)
[1/1] post_mutex_lock (?) 0x........ rc 0 owner 0
[1/1] pre_mutex_lock (?) 0x........ rc 0 owner 0
Not a mutex
- at 0x........: pthread_mutex_timedlock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_timedlock (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:121)
[1/1] post_mutex_lock (?) 0x........ rc 0 owner 0
[1/1] mutex_unlock ? 0x........ rc 0
Not a mutex
- at 0x........: pthread_mutex_unlock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:125)
---------------- pthread_cond_wait et al ----------------
[1/1] mutex_unlock error checking mutex 0x........ rc 0
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_wait* (drd_intercepts.c:?)
+ at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:147)
[1/1] cond_pre_wait 0x........
[1/1] cond_post_wait 0x........
[1/1] mutex_unlock error checking mutex 0x........ rc 0
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_timedwait* (drd_intercepts.c:?)
+ at 0x........: pthread_cond_timedwait* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:165)
[1/1] cond_pre_wait 0x........
[1/1] cond_post_wait 0x........
Reader-writer lock not locked by calling thread: rwlock 0x.........
- at 0x........: pthread_rwlock_unlock* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_unlock* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:179)
(1) no error on next line
(2) no error on next line
(3) ERROR on next line
Reader-writer lock not locked by calling thread: rwlock 0x.........
- at 0x........: pthread_rwlock_unlock* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_unlock* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:196)
Reader-writer lock reinitialization: rwlock 0x.........
- at 0x........: pthread_rwlock_init* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_init* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:199)
(4) no error on next line
(5) no error on next line
(8) ERROR on next line
Reader-writer lock not locked by calling thread: rwlock 0x.........
- at 0x........: pthread_rwlock_unlock* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_unlock* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:212)
---------------- sem_* ----------------
[1/1] semaphore_post_wait 0x........
Invalid semaphore: semaphore 0x........
- at 0x........: sem_wait* (drd_intercepts.c:?)
+ at 0x........: sem_wait* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:242)
[1/1] semaphore_post 0x........
[1/1] mutex_init invalid mutex 0x........
Not a mutex
- at 0x........: pthread_mutex_init (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:92)
[1/1] mutex_init mutex 0x........
[1/1] pre_mutex_lock mutex 0x........ rc 0 owner 0
[1/1] mutex_destroy mutex 0x........
Destroying locked mutex: mutex 0x........, recursion count 1, owner 1.
- at 0x........: pthread_mutex_destroy (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_destroy (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:102)
make pthread_mutex_lock fail: skipped on glibc < 2.4
[1/1] pre_mutex_lock (?) 0x........ rc 0 owner 0
Not a mutex
- at 0x........: pthread_mutex_trylock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_trylock (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:116)
[1/1] post_mutex_lock (?) 0x........ rc 0 owner 0
[1/1] pre_mutex_lock (?) 0x........ rc 0 owner 0
Not a mutex
- at 0x........: pthread_mutex_timedlock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_timedlock (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:121)
[1/1] post_mutex_lock (?) 0x........ rc 0 owner 0
[1/1] mutex_unlock ? 0x........ rc 0
Not a mutex
- at 0x........: pthread_mutex_unlock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:125)
---------------- pthread_cond_wait et al ----------------
[1/1] mutex_unlock error checking mutex 0x........ rc 0
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_wait* (drd_intercepts.c:?)
+ at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:147)
[1/1] cond_pre_wait 0x........
[1/1] cond_post_wait 0x........
[1/1] mutex_unlock error checking mutex 0x........ rc 0
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_timedwait* (drd_intercepts.c:?)
+ at 0x........: pthread_cond_timedwait* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:165)
[1/1] cond_pre_wait 0x........
[1/1] cond_post_wait 0x........
Reader-writer lock not locked by calling thread: rwlock 0x.........
- at 0x........: pthread_rwlock_unlock* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_unlock* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:179)
(1) no error on next line
(2) no error on next line
(3) ERROR on next line
Reader-writer lock not locked by calling thread: rwlock 0x.........
- at 0x........: pthread_rwlock_unlock* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_unlock* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:196)
Reader-writer lock reinitialization: rwlock 0x.........
- at 0x........: pthread_rwlock_init* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_init* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:199)
(4) no error on next line
(5) no error on next line
(8) ERROR on next line
Reader-writer lock not locked by calling thread: rwlock 0x.........
- at 0x........: pthread_rwlock_unlock* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_unlock* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:212)
---------------- sem_* ----------------
[1/1] semaphore_post_wait 0x........
Invalid semaphore: semaphore 0x........
- at 0x........: sem_wait* (drd_intercepts.c:?)
+ at 0x........: sem_wait* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:242)
[1/1] semaphore_post 0x........
[1/1] mutex_init invalid mutex 0x........
Not a mutex
- at 0x........: pthread_mutex_init (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:92)
[1/1] mutex_init mutex 0x........
[1/1] pre_mutex_lock mutex 0x........ rc 0 owner 0
[1/1] mutex_destroy mutex 0x........
Destroying locked mutex: mutex 0x........, recursion count 1, owner 1.
- at 0x........: pthread_mutex_destroy (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_destroy (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:102)
make pthread_mutex_lock fail: skipped on glibc < 2.4
[1/1] pre_mutex_lock (?) 0x........ rc 0 owner 0
Not a mutex
- at 0x........: pthread_mutex_trylock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_trylock (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:116)
[1/1] post_mutex_lock (?) 0x........ rc 0 owner 0
[1/1] pre_mutex_lock (?) 0x........ rc 0 owner 0
Not a mutex
- at 0x........: pthread_mutex_timedlock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_timedlock (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:121)
[1/1] post_mutex_lock (?) 0x........ rc 0 owner 0
[1/1] mutex_unlock ? 0x........ rc 0
Not a mutex
- at 0x........: pthread_mutex_unlock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:125)
---------------- pthread_cond_wait et al ----------------
[1/1] mutex_unlock error checking mutex 0x........ rc 0
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_wait* (drd_intercepts.c:?)
+ at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:147)
[1/1] cond_pre_wait 0x........
[1/1] cond_post_wait 0x........
[1/1] mutex_unlock error checking mutex 0x........ rc 0
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_timedwait* (drd_intercepts.c:?)
+ at 0x........: pthread_cond_timedwait* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:165)
[1/1] cond_pre_wait 0x........
[1/1] cond_post_wait 0x........
Reader-writer lock not locked by calling thread: rwlock 0x.........
- at 0x........: pthread_rwlock_unlock* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_unlock* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:179)
(1) no error on next line
(2) no error on next line
(3) ERROR on next line
Reader-writer lock not locked by calling thread: rwlock 0x.........
- at 0x........: pthread_rwlock_unlock* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_unlock* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:196)
Reader-writer lock reinitialization: rwlock 0x.........
- at 0x........: pthread_rwlock_init* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_init* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:199)
(4) no error on next line
(5) no error on next line
(8) ERROR on next line
Reader-writer lock not locked by calling thread: rwlock 0x.........
- at 0x........: pthread_rwlock_unlock* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_unlock* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:212)
---------------- sem_* ----------------
[1/1] semaphore_post_wait 0x........
Invalid semaphore: semaphore 0x........
- at 0x........: sem_wait* (drd_intercepts.c:?)
+ at 0x........: sem_wait* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:242)
[1/1] semaphore_post 0x........
at 0x........: __deallocate_stack (in libpthread-?.?.so)
by 0x........: __free_tcb (in libpthread-?.?.so)
by 0x........: pthread_join (in libpthread-?.?.so)
- by 0x........: pthread_join (drd_intercepts.c:?)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
by 0x........: main (tc22_exit_w_lock.c:43)
Allocation context: stack_cache_lock (offset 0, size 4) in libpthread-?.?.so, libpthread.so.0:BSS
Other segment start (thread 2)
at 0x........: __deallocate_stack (in libpthread-?.?.so)
by 0x........: __free_tcb (in libpthread-?.?.so)
by 0x........: pthread_join (in libpthread-?.?.so)
- by 0x........: pthread_join (drd_intercepts.c:?)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
by 0x........: main (tc22_exit_w_lock.c:43)
Allocation context: stack_cache_lock (offset 0, size 4) in libpthread-?.?.so, libpthread.so.0:BSS
Other segment start (thread 2)
at 0x........: __deallocate_stack (in libpthread-?.?.so)
by 0x........: __free_tcb (in libpthread-?.?.so)
by 0x........: pthread_join (in libpthread-?.?.so)
- by 0x........: pthread_join (drd_intercepts.c:?)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
by 0x........: main (tc22_exit_w_lock.c:43)
Allocation context: stack_used (offset 4, size 8) in libpthread-?.?.so, libpthread.so.0:Data
Other segment start (thread 2)
at 0x........: __deallocate_stack (in libpthread-?.?.so)
by 0x........: __free_tcb (in libpthread-?.?.so)
by 0x........: pthread_join (in libpthread-?.?.so)
- by 0x........: pthread_join (drd_intercepts.c:?)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
by 0x........: main (tc22_exit_w_lock.c:43)
Allocation context: stack_used (offset 0, size 8) in libpthread-?.?.so, libpthread.so.0:Data
Other segment start (thread 2)
at 0x........: __deallocate_stack (in libpthread-?.?.so)
by 0x........: __free_tcb (in libpthread-?.?.so)
by 0x........: pthread_join (in libpthread-?.?.so)
- by 0x........: pthread_join (drd_intercepts.c:?)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
by 0x........: main (tc22_exit_w_lock.c:43)
Allocation context: stack_cache (offset 0, size 8) in libpthread-?.?.so, libpthread.so.0:Data
Other segment start (thread 2)
at 0x........: __deallocate_stack (in libpthread-?.?.so)
by 0x........: __free_tcb (in libpthread-?.?.so)
by 0x........: pthread_join (in libpthread-?.?.so)
- by 0x........: pthread_join (drd_intercepts.c:?)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
by 0x........: main (tc22_exit_w_lock.c:43)
Allocation context: stack_cache (offset 4, size 8) in libpthread-?.?.so, libpthread.so.0:Data
Other segment start (thread 2)
at 0x........: __deallocate_stack (in libpthread-?.?.so)
by 0x........: __free_tcb (in libpthread-?.?.so)
by 0x........: pthread_join (in libpthread-?.?.so)
- by 0x........: pthread_join (drd_intercepts.c:?)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
by 0x........: main (tc22_exit_w_lock.c:43)
Allocation context: stack_cache_actsize (offset 0, size 4) in libpthread-?.?.so, libpthread.so.0:BSS
Other segment start (thread 2)
at 0x........: __deallocate_stack (in libpthread-?.?.so)
by 0x........: __free_tcb (in libpthread-?.?.so)
by 0x........: pthread_join (in libpthread-?.?.so)
- by 0x........: pthread_join (drd_intercepts.c:?)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
by 0x........: main (tc22_exit_w_lock.c:43)
Allocation context: stack_cache (offset 0, size 8) in libpthread-?.?.so, libpthread.so.0:Data
Other segment start (thread 2)
at 0x........: __deallocate_stack (in libpthread-?.?.so)
by 0x........: __free_tcb (in libpthread-?.?.so)
by 0x........: pthread_join (in libpthread-?.?.so)
- by 0x........: pthread_join (drd_intercepts.c:?)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
by 0x........: main (tc22_exit_w_lock.c:43)
Allocation context: stack_cache_actsize (offset 0, size 4) in libpthread-?.?.so, libpthread.so.0:BSS
Other segment start (thread 2)
at 0x........: __deallocate_stack (in libpthread-?.?.so)
by 0x........: __free_tcb (in libpthread-?.?.so)
by 0x........: pthread_join (in libpthread-?.?.so)
- by 0x........: pthread_join (drd_intercepts.c:?)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
by 0x........: main (tc22_exit_w_lock.c:43)
Allocation context: stack_cache_lock (offset 0, size 4) in libpthread-?.?.so, libpthread.so.0:BSS
Other segment start (thread 2)
at 0x........: __deallocate_stack (in libpthread-?.?.so)
by 0x........: __free_tcb (in libpthread-?.?.so)
by 0x........: pthread_join (in libpthread-?.?.so)
- by 0x........: pthread_join (drd_intercepts.c:?)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
by 0x........: main (tc22_exit_w_lock.c:43)
Allocation context: stack_cache_lock (offset 0, size 4) in libpthread-?.?.so, libpthread.so.0:BSS
Other segment start (thread 2)
(thread finished, call stack no longer available)
Mutex still locked at thread exit: address 0x........, recursion count 1, owner 3.
- at 0x........: pthread_join (drd_intercepts.c:?)
+ at 0x........: pthread_join (drd_pthread_intercepts.c:?)
by 0x........: main (tc22_exit_w_lock.c:43)
ERROR SUMMARY: 12 errors from 12 contexts (suppressed: 0 from 0)
Mutex still locked at thread exit: mutex 0x........, recursion count 1, owner 3.
- at 0x........: pthread_join (drd_intercepts.c:?)
+ at 0x........: pthread_join (drd_pthread_intercepts.c:?)
by 0x........: main (tc22_exit_w_lock.c:43)
ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Not a mutex
- at 0x........: pthread_cond_wait* (drd_intercepts.c:?)
+ at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
by 0x........: main (tc23_bogus_condwait.c:69)
Thread 3:
Race condition: condition variable 0x........ has been signalled but the associated mutex 0x........ is not locked by the signalling thread
- at 0x........: pthread_cond_signal* (drd_intercepts.c:?)
+ at 0x........: pthread_cond_signal* (drd_pthread_intercepts.c:?)
by 0x........: rescue_me (tc23_bogus_condwait.c:20)
- by 0x........: vg_thread_wrapper (drd_intercepts.c:?)
+ by 0x........: vg_thread_wrapper (drd_pthread_intercepts.c:?)
by 0x........: (within libpthread-?.?.so)
by 0x........: clone (in /...libc...)
Thread 1:
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_wait* (drd_intercepts.c:?)
+ at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
by 0x........: main (tc23_bogus_condwait.c:72)
Thread 3:
Race condition: condition variable 0x........ has been signalled but the associated mutex 0x........ is not locked by the signalling thread
- at 0x........: pthread_cond_signal* (drd_intercepts.c:?)
+ at 0x........: pthread_cond_signal* (drd_pthread_intercepts.c:?)
by 0x........: rescue_me (tc23_bogus_condwait.c:24)
- by 0x........: vg_thread_wrapper (drd_intercepts.c:?)
+ by 0x........: vg_thread_wrapper (drd_pthread_intercepts.c:?)
by 0x........: (within libpthread-?.?.so)
by 0x........: clone (in /...libc...)
Thread 1:
Not a mutex
- at 0x........: pthread_cond_wait* (drd_intercepts.c:?)
+ at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
by 0x........: main (tc23_bogus_condwait.c:75)
Thread 3:
Race condition: condition variable 0x........ has been signalled but the associated mutex 0x........ is not locked by the signalling thread
- at 0x........: pthread_cond_signal* (drd_intercepts.c:?)
+ at 0x........: pthread_cond_signal* (drd_pthread_intercepts.c:?)
by 0x........: rescue_me (tc23_bogus_condwait.c:28)
- by 0x........: vg_thread_wrapper (drd_intercepts.c:?)
+ by 0x........: vg_thread_wrapper (drd_pthread_intercepts.c:?)
by 0x........: (within libpthread-?.?.so)
by 0x........: clone (in /...libc...)
Thread 1:
Mutex not locked by calling thread: mutex 0x........, recursion count 1, owner 2.
- at 0x........: pthread_cond_wait* (drd_intercepts.c:?)
+ at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
by 0x........: main (tc23_bogus_condwait.c:78)
Thread 3:
Race condition: condition variable 0x........ has been signalled but the associated mutex 0x........ is not locked by the signalling thread
- at 0x........: pthread_cond_signal* (drd_intercepts.c:?)
+ at 0x........: pthread_cond_signal* (drd_pthread_intercepts.c:?)
by 0x........: rescue_me (tc23_bogus_condwait.c:32)
- by 0x........: vg_thread_wrapper (drd_intercepts.c:?)
+ by 0x........: vg_thread_wrapper (drd_pthread_intercepts.c:?)
by 0x........: (within libpthread-?.?.so)
by 0x........: clone (in /...libc...)
The impossible happened: mutex 0x........ is locked simultaneously by two threads (recursion count 1, owners 2 and 1) !
Thread 2:
Mutex not locked by calling thread: mutex 0x........, recursion count 2, owner 1.
- at 0x........: pthread_mutex_unlock (drd_intercepts.c:?)
+ at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
by 0x........: grab_the_lock (tc23_bogus_condwait.c:42)
- by 0x........: vg_thread_wrapper (drd_intercepts.c:?)
+ by 0x........: vg_thread_wrapper (drd_pthread_intercepts.c:?)
by 0x........: (within libpthread-?.?.so)
by 0x........: clone (in /...libc...)
Locking rwlock via pthread_rwlock_timedrdlock().
Attempt to lock for writing recursively (not allowed).
Recursive writer locking not allowed: rwlock 0x.........
- at 0x........: pthread_rwlock_wrlock* (drd_intercepts.c:?)
+ at 0x........: pthread_rwlock_wrlock* (drd_pthread_intercepts.c:?)
by 0x........: main (trylock.c:?)
Locking mutex via pthread_mutex_trylock().
Locking mutex via pthread_mutex_lock().