]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Reverted r11536 because it didn't have the desired effect - changing the behavior...
authorBart Van Assche <bvanassche@acm.org>
Sun, 13 Feb 2011 07:55:36 +0000 (07:55 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sun, 13 Feb 2011 07:55:36 +0000 (07:55 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11539

28 files changed:
drd/drd_pthread_intercepts.c
drd/tests/annotate_hb_err.stderr.exp
drd/tests/bar_bad.stderr.exp
drd/tests/hold_lock_1.stderr.exp
drd/tests/hold_lock_2.stderr.exp
drd/tests/pth_barrier_race.stderr.exp
drd/tests/pth_barrier_reinit.stderr.exp
drd/tests/pth_cancel_locked.stderr.exp
drd/tests/pth_cancel_locked.stderr.exp-darwin
drd/tests/pth_cond_race.stderr.exp
drd/tests/pth_inconsistent_cond_wait.stderr.exp1
drd/tests/pth_inconsistent_cond_wait.stderr.exp2
drd/tests/pth_mutex_reinit.stderr.exp
drd/tests/pth_uninitialized_cond.stderr.exp
drd/tests/recursive_mutex.stderr.exp-darwin
drd/tests/recursive_mutex.stderr.exp-linux
drd/tests/rwlock_type_checking.stderr.exp
drd/tests/tc04_free_lock.stderr.exp
drd/tests/tc09_bad_unlock.stderr.exp
drd/tests/tc09_bad_unlock.stderr.exp-glibc2.8
drd/tests/tc10_rec_lock.stderr.exp
drd/tests/tc12_rwl_trivial.stderr.exp
drd/tests/tc18_semabuse.stderr.exp
drd/tests/tc22_exit_w_lock.stderr.exp-64bit
drd/tests/tc23_bogus_condwait.stderr.exp-linux-ppc
drd/tests/tc23_bogus_condwait.stderr.exp-linux-x86
drd/tests/thread_name.stderr.exp
drd/tests/trylock.stderr.exp

index ac0b8f741c5a82f2ffde8bea204c761867b521ea..44da42dee0a1b5db5ac90810fe9398f9285ce5a2 100644 (file)
    PTH_FUNC(ret_ty, zf ## ZDZa, implf, argl_decl, argl);
 
 /*
- * Macros for controlling inlining explicitly such that call stacks in
- * regression tests do not depend on compiler optimization options.
+ * Not inlining one of the intercept functions will cause the regression
+ * tests to fail because this would cause an additional stackfram to appear
+ * in the output. The __always_inline macro guarantees that inlining will
+ * happen, even when compiling with optimization disabled.
  */
 #undef __always_inline /* since already defined in <cdefs.h> */
 #if __GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ >= 2
 #else
 #define __always_inline __inline__
 #endif
-#if __GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ >= 2
-#define __never_inline __attribute__((noinline))
-#else
-#define __never_inline
-#endif
 
 /* Local data structures. */
 
@@ -371,7 +368,7 @@ static void DRD_(set_main_thread_state)(void)
  * glibc-2.9/nptl/pthread_create.c.
  */
 
-static __never_inline
+static __always_inline
 int pthread_create_intercept(pthread_t* thread, const pthread_attr_t* attr,
                              void* (*start)(void*), void* arg)
 {
@@ -451,7 +448,7 @@ PTH_FUNCS(int, pthreadZucreate, pthread_create_intercept,
            void *(*start) (void *), void *arg),
           (thread, attr, start, arg));
 
-static __never_inline
+static __always_inline
 int pthread_join_intercept(pthread_t pt_joinee, void **thread_return)
 {
    int      ret;
@@ -472,7 +469,7 @@ PTH_FUNCS(int, pthreadZujoin, pthread_join_intercept,
           (pthread_t pt_joinee, void **thread_return),
           (pt_joinee, thread_return));
 
-static __never_inline
+static __always_inline
 int pthread_detach_intercept(pthread_t pt_thread)
 {
    int ret;
@@ -494,7 +491,7 @@ PTH_FUNCS(int, pthreadZudetach, pthread_detach_intercept,
 // NOTE: be careful to intercept only pthread_cancel() and not
 // pthread_cancel_init() on Linux.
 
-static __never_inline
+static __always_inline
 int pthread_cancel_intercept(pthread_t pt_thread)
 {
    int res;
@@ -512,7 +509,7 @@ int pthread_cancel_intercept(pthread_t pt_thread)
 PTH_FUNCS(int, pthreadZucancel, pthread_cancel_intercept,
           (pthread_t thread), (thread))
 
-static __never_inline
+static __always_inline
 int pthread_once_intercept(pthread_once_t *once_control,
                            void (*init_routine)(void))
 {
@@ -534,7 +531,7 @@ PTH_FUNCS(int, pthreadZuonce, pthread_once_intercept,
           (pthread_once_t *once_control, void (*init_routine)(void)),
           (once_control, init_routine));
 
-static __never_inline
+static __always_inline
 int pthread_mutex_init_intercept(pthread_mutex_t *mutex,
                                  const pthread_mutexattr_t* attr)
 {
@@ -559,7 +556,7 @@ PTH_FUNCS(int, pthreadZumutexZuinit, pthread_mutex_init_intercept,
           (pthread_mutex_t *mutex, const pthread_mutexattr_t* attr),
           (mutex, attr));
 
-static __never_inline
+static __always_inline
 int pthread_mutex_destroy_intercept(pthread_mutex_t* mutex)
 {
    int ret;
@@ -577,7 +574,7 @@ int pthread_mutex_destroy_intercept(pthread_mutex_t* mutex)
 PTH_FUNCS(int, pthreadZumutexZudestroy, pthread_mutex_destroy_intercept,
           (pthread_mutex_t *mutex), (mutex));
 
-static __never_inline
+static __always_inline
 int pthread_mutex_lock_intercept(pthread_mutex_t* mutex)
 {
    int   ret;
@@ -595,7 +592,7 @@ int pthread_mutex_lock_intercept(pthread_mutex_t* mutex)
 PTH_FUNCS(int, pthreadZumutexZulock, pthread_mutex_lock_intercept,
           (pthread_mutex_t *mutex), (mutex));
 
-static __never_inline
+static __always_inline
 int pthread_mutex_trylock_intercept(pthread_mutex_t* mutex)
 {
    int   ret;
@@ -613,7 +610,7 @@ int pthread_mutex_trylock_intercept(pthread_mutex_t* mutex)
 PTH_FUNCS(int, pthreadZumutexZutrylock, pthread_mutex_trylock_intercept,
           (pthread_mutex_t *mutex), (mutex));
 
-static __never_inline
+static __always_inline
 int pthread_mutex_timedlock_intercept(pthread_mutex_t *mutex,
                                       const struct timespec *abs_timeout)
 {
@@ -633,7 +630,7 @@ PTH_FUNCS(int, pthreadZumutexZutimedlock, pthread_mutex_timedlock_intercept,
           (pthread_mutex_t *mutex, const struct timespec *abs_timeout),
           (mutex, abs_timeout));
 
-static __never_inline
+static __always_inline
 int pthread_mutex_unlock_intercept(pthread_mutex_t *mutex)
 {
    int ret;
@@ -653,7 +650,7 @@ int pthread_mutex_unlock_intercept(pthread_mutex_t *mutex)
 PTH_FUNCS(int, pthreadZumutexZuunlock, pthread_mutex_unlock_intercept,
           (pthread_mutex_t *mutex), (mutex));
 
-static __never_inline
+static __always_inline
 int pthread_cond_init_intercept(pthread_cond_t* cond,
                                 const pthread_condattr_t* attr)
 {
@@ -673,7 +670,7 @@ PTH_FUNCS(int, pthreadZucondZuinit, pthread_cond_init_intercept,
           (pthread_cond_t* cond, const pthread_condattr_t* attr),
           (cond, attr));
 
-static __never_inline
+static __always_inline
 int pthread_cond_destroy_intercept(pthread_cond_t* cond)
 {
    int ret;
@@ -691,7 +688,7 @@ int pthread_cond_destroy_intercept(pthread_cond_t* cond)
 PTH_FUNCS(int, pthreadZucondZudestroy, pthread_cond_destroy_intercept,
           (pthread_cond_t* cond), (cond));
 
-static __never_inline
+static __always_inline
 int pthread_cond_wait_intercept(pthread_cond_t *cond, pthread_mutex_t *mutex)
 {
    int   ret;
@@ -710,7 +707,7 @@ PTH_FUNCS(int, pthreadZucondZuwait, pthread_cond_wait_intercept,
           (pthread_cond_t *cond, pthread_mutex_t *mutex),
           (cond, mutex));
 
-static __never_inline
+static __always_inline
 int pthread_cond_timedwait_intercept(pthread_cond_t *cond,
                                      pthread_mutex_t *mutex,
                                      const struct timespec* abstime)
@@ -738,7 +735,7 @@ PTH_FUNCS(int, pthreadZucondZutimedwait, pthread_cond_timedwait_intercept,
 // argument to be passed to pthread_cond_signal_np() and hence will cause this
 // last function to crash.
 
-static __never_inline
+static __always_inline
 int pthread_cond_signal_intercept(pthread_cond_t* cond)
 {
    int   ret;
@@ -756,7 +753,7 @@ int pthread_cond_signal_intercept(pthread_cond_t* cond)
 PTH_FUNCS(int, pthreadZucondZusignal, pthread_cond_signal_intercept,
           (pthread_cond_t* cond), (cond));
 
-static __never_inline
+static __always_inline
 int pthread_cond_broadcast_intercept(pthread_cond_t* cond)
 {
    int   ret;
@@ -775,7 +772,7 @@ PTH_FUNCS(int, pthreadZucondZubroadcast, pthread_cond_broadcast_intercept,
           (pthread_cond_t* cond), (cond));
 
 #if defined(HAVE_PTHREAD_SPIN_LOCK)
-static __never_inline
+static __always_inline
 int pthread_spin_init_intercept(pthread_spinlock_t *spinlock, int pshared)
 {
    int ret;
@@ -793,7 +790,7 @@ int pthread_spin_init_intercept(pthread_spinlock_t *spinlock, int pshared)
 PTH_FUNCS(int, pthreadZuspinZuinit, pthread_spin_init_intercept,
           (pthread_spinlock_t *spinlock, int pshared), (spinlock, pshared));
 
-static __never_inline
+static __always_inline
 int pthread_spin_destroy_intercept(pthread_spinlock_t *spinlock)
 {
    int ret;
@@ -811,7 +808,7 @@ int pthread_spin_destroy_intercept(pthread_spinlock_t *spinlock)
 PTH_FUNCS(int, pthreadZuspinZudestroy, pthread_spin_destroy_intercept,
           (pthread_spinlock_t *spinlock), (spinlock));
 
-static __never_inline
+static __always_inline
 int pthread_spin_lock_intercept(pthread_spinlock_t *spinlock)
 {
    int   ret;
@@ -829,7 +826,7 @@ int pthread_spin_lock_intercept(pthread_spinlock_t *spinlock)
 PTH_FUNCS(int, pthreadZuspinZulock, pthread_spin_lock_intercept,
           (pthread_spinlock_t *spinlock), (spinlock));
 
-static __never_inline
+static __always_inline
 int pthread_spin_trylock_intercept(pthread_spinlock_t *spinlock)
 {
    int   ret;
@@ -847,7 +844,7 @@ int pthread_spin_trylock_intercept(pthread_spinlock_t *spinlock)
 PTH_FUNCS(int, pthreadZuspinZutrylock, pthread_spin_trylock_intercept,
           (pthread_spinlock_t *spinlock), (spinlock));
 
-static __never_inline
+static __always_inline
 int pthread_spin_unlock_intercept(pthread_spinlock_t *spinlock)
 {
    int   ret;
@@ -868,7 +865,7 @@ PTH_FUNCS(int, pthreadZuspinZuunlock, pthread_spin_unlock_intercept,
 
 
 #if defined(HAVE_PTHREAD_BARRIER_INIT)
-static __never_inline
+static __always_inline
 int pthread_barrier_init_intercept(pthread_barrier_t* barrier,
                                    const pthread_barrierattr_t* attr,
                                    unsigned count)
@@ -889,7 +886,7 @@ PTH_FUNCS(int, pthreadZubarrierZuinit, pthread_barrier_init_intercept,
           (pthread_barrier_t* barrier, const pthread_barrierattr_t* attr,
            unsigned count), (barrier, attr, count));
 
-static __never_inline
+static __always_inline
 int pthread_barrier_destroy_intercept(pthread_barrier_t* barrier)
 {
    int   ret;
@@ -907,7 +904,7 @@ int pthread_barrier_destroy_intercept(pthread_barrier_t* barrier)
 PTH_FUNCS(int, pthreadZubarrierZudestroy, pthread_barrier_destroy_intercept,
           (pthread_barrier_t* barrier), (barrier));
 
-static __never_inline
+static __always_inline
 int pthread_barrier_wait_intercept(pthread_barrier_t* barrier)
 {
    int   ret;
@@ -929,7 +926,7 @@ PTH_FUNCS(int, pthreadZubarrierZuwait, pthread_barrier_wait_intercept,
 #endif   // HAVE_PTHREAD_BARRIER_INIT
 
 
-static __never_inline
+static __always_inline
 int sem_init_intercept(sem_t *sem, int pshared, unsigned int value)
 {
    int   ret;
@@ -947,7 +944,7 @@ int sem_init_intercept(sem_t *sem, int pshared, unsigned int value)
 PTH_FUNCS(int, semZuinit, sem_init_intercept,
           (sem_t *sem, int pshared, unsigned int value), (sem, pshared, value));
 
-static __never_inline
+static __always_inline
 int sem_destroy_intercept(sem_t *sem)
 {
    int   ret;
@@ -964,7 +961,7 @@ int sem_destroy_intercept(sem_t *sem)
 
 PTH_FUNCS(int, semZudestroy, sem_destroy_intercept, (sem_t *sem), (sem));
 
-static __never_inline
+static __always_inline
 sem_t* sem_open_intercept(const char *name, int oflag, mode_t mode,
                           unsigned int value)
 {
@@ -985,7 +982,7 @@ PTH_FUNCS(sem_t *, semZuopen, sem_open_intercept,
           (const char *name, int oflag, mode_t mode, unsigned int value),
           (name, oflag, mode, value));
 
-static __never_inline int sem_close_intercept(sem_t *sem)
+static __always_inline int sem_close_intercept(sem_t *sem)
 {
    int   ret;
    int   res;
@@ -1001,7 +998,7 @@ static __never_inline int sem_close_intercept(sem_t *sem)
 
 PTH_FUNCS(int, semZuclose, sem_close_intercept, (sem_t *sem), (sem));
 
-static __never_inline int sem_wait_intercept(sem_t *sem)
+static __always_inline int sem_wait_intercept(sem_t *sem)
 {
    int   ret;
    int   res;
@@ -1017,7 +1014,7 @@ static __never_inline int sem_wait_intercept(sem_t *sem)
 
 PTH_FUNCS(int, semZuwait, sem_wait_intercept, (sem_t *sem), (sem));
 
-static __never_inline int sem_trywait_intercept(sem_t *sem)
+static __always_inline int sem_trywait_intercept(sem_t *sem)
 {
    int   ret;
    int   res;
@@ -1033,7 +1030,7 @@ static __never_inline int sem_trywait_intercept(sem_t *sem)
 
 PTH_FUNCS(int, semZutrywait, sem_trywait_intercept, (sem_t *sem), (sem));
 
-static __never_inline
+static __always_inline
 int sem_timedwait_intercept(sem_t *sem, const struct timespec *abs_timeout)
 {
    int   ret;
@@ -1052,7 +1049,7 @@ PTH_FUNCS(int, semZutimedwait, sem_timedwait_intercept,
           (sem_t *sem, const struct timespec *abs_timeout),
           (sem, abs_timeout));
 
-static __never_inline int sem_post_intercept(sem_t *sem)
+static __always_inline int sem_post_intercept(sem_t *sem)
 {
    int   ret;
    int   res;
@@ -1068,7 +1065,7 @@ static __never_inline int sem_post_intercept(sem_t *sem)
 
 PTH_FUNCS(int, semZupost, sem_post_intercept, (sem_t *sem), (sem));
 
-static __never_inline
+static __always_inline
 int pthread_rwlock_init_intercept(pthread_rwlock_t* rwlock,
                                   const pthread_rwlockattr_t* attr)
 {
@@ -1087,7 +1084,7 @@ PTH_FUNCS(int,
           (pthread_rwlock_t* rwlock, const pthread_rwlockattr_t* attr),
           (rwlock, attr));
 
-static __never_inline
+static __always_inline
 int pthread_rwlock_destroy_intercept(pthread_rwlock_t* rwlock)
 {
    int   ret;
@@ -1104,7 +1101,7 @@ PTH_FUNCS(int,
           pthreadZurwlockZudestroy, pthread_rwlock_destroy_intercept,
           (pthread_rwlock_t* rwlock), (rwlock));
 
-static __never_inline
+static __always_inline
 int pthread_rwlock_rdlock_intercept(pthread_rwlock_t* rwlock)
 {
    int   ret;
@@ -1123,7 +1120,7 @@ PTH_FUNCS(int,
           pthreadZurwlockZurdlock, pthread_rwlock_rdlock_intercept,
           (pthread_rwlock_t* rwlock), (rwlock));
 
-static __never_inline
+static __always_inline
 int pthread_rwlock_wrlock_intercept(pthread_rwlock_t* rwlock)
 {
    int   ret;
@@ -1142,7 +1139,7 @@ PTH_FUNCS(int,
           pthreadZurwlockZuwrlock, pthread_rwlock_wrlock_intercept,
           (pthread_rwlock_t* rwlock), (rwlock));
 
-static __never_inline
+static __always_inline
 int pthread_rwlock_timedrdlock_intercept(pthread_rwlock_t* rwlock)
 {
    int   ret;
@@ -1161,7 +1158,7 @@ PTH_FUNCS(int,
           pthreadZurwlockZutimedrdlock, pthread_rwlock_timedrdlock_intercept,
           (pthread_rwlock_t* rwlock), (rwlock));
 
-static __never_inline
+static __always_inline
 int pthread_rwlock_timedwrlock_intercept(pthread_rwlock_t* rwlock)
 {
    int   ret;
@@ -1180,7 +1177,7 @@ PTH_FUNCS(int,
           pthreadZurwlockZutimedwrlock, pthread_rwlock_timedwrlock_intercept,
           (pthread_rwlock_t* rwlock), (rwlock));
 
-static __never_inline
+static __always_inline
 int pthread_rwlock_tryrdlock_intercept(pthread_rwlock_t* rwlock)
 {
    int   ret;
@@ -1199,7 +1196,7 @@ PTH_FUNCS(int,
           pthreadZurwlockZutryrdlock, pthread_rwlock_tryrdlock_intercept,
           (pthread_rwlock_t* rwlock), (rwlock));
 
-static __never_inline
+static __always_inline
 int pthread_rwlock_trywrlock_intercept(pthread_rwlock_t* rwlock)
 {
    int   ret;
@@ -1218,7 +1215,7 @@ PTH_FUNCS(int,
           pthreadZurwlockZutrywrlock, pthread_rwlock_trywrlock_intercept,
           (pthread_rwlock_t* rwlock), (rwlock));
 
-static __never_inline
+static __always_inline
 int pthread_rwlock_unlock_intercept(pthread_rwlock_t* rwlock)
 {
    int   ret;
index 197021ad754eab9504402709aaf61fd8c0ea4ff6..b52069bf1b1fcf0f666c91bb5763f8e42db77fe1 100644 (file)
@@ -3,18 +3,18 @@ wrong type of synchronization object
    at 0x........: U_AnnotateHappensBefore (unified_annotations.h:?)
    by 0x........: main (annotate_hb_err.c:?)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (annotate_hb_err.c:?)
 
 wrong type of synchronization object
    at 0x........: U_AnnotateHappensBefore (unified_annotations.h:?)
    by 0x........: main (annotate_hb_err.c:?)
 cond 0x........ was first observed at:
-   at 0x........: pthread_cond_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_init (drd_pthread_intercepts.c:?)
    by 0x........: main (annotate_hb_err.c:?)
 
 wrong type of synchronization object
-   at 0x........: pthread_cond_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_init (drd_pthread_intercepts.c:?)
    by 0x........: main (annotate_hb_err.c:?)
 order annotation 0x........ was first observed at:
    at 0x........: U_AnnotateHappensAfter (unified_annotations.h:?)
index d9b35b1aa883ea084700d083bed8d1cd1f77c159..75f121f146bfd5fac4d525b09f76bc078910b50e 100644 (file)
@@ -2,47 +2,47 @@
 
 initialise a barrier with zero count
 pthread_barrier_init: 'count' argument is zero: barrier 0x........
-   at 0x........: pthread_barrier_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_barrier_init (drd_pthread_intercepts.c:?)
    by 0x........: main (bar_bad.c:?)
 
 
 initialise a barrier twice
 Barrier reinitialization: barrier 0x........
-   at 0x........: pthread_barrier_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_barrier_init (drd_pthread_intercepts.c:?)
    by 0x........: main (bar_bad.c:?)
 barrier 0x........ was first observed at:
-   at 0x........: pthread_barrier_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_barrier_init (drd_pthread_intercepts.c:?)
    by 0x........: main (bar_bad.c:?)
 
 
 initialise a barrier which has threads waiting on it
 Barrier reinitialization: barrier 0x........
-   at 0x........: pthread_barrier_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_barrier_init (drd_pthread_intercepts.c:?)
    by 0x........: main (bar_bad.c:?)
 barrier 0x........ was first observed at:
-   at 0x........: pthread_barrier_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_barrier_init (drd_pthread_intercepts.c:?)
    by 0x........: main (bar_bad.c:?)
 
 
 destroy a barrier that has waiting threads
 Destruction of a barrier with active waiters: barrier 0x........
-   at 0x........: pthread_barrier_destroy_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_barrier_destroy (drd_pthread_intercepts.c:?)
    by 0x........: main (bar_bad.c:?)
 barrier 0x........ was first observed at:
-   at 0x........: pthread_barrier_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_barrier_init (drd_pthread_intercepts.c:?)
    by 0x........: main (bar_bad.c:?)
 
 
 destroy a barrier that was never initialised
 Not a barrier
-   at 0x........: pthread_barrier_destroy_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_barrier_destroy (drd_pthread_intercepts.c:?)
    by 0x........: main (bar_bad.c:?)
 
 Destruction of barrier that is being waited upon: barrier 0x........
    at 0x........: free (vg_replace_malloc.c:...)
    by 0x........: main (bar_bad.c:?)
 barrier 0x........ was first observed at:
-   at 0x........: pthread_barrier_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_barrier_init (drd_pthread_intercepts.c:?)
    by 0x........: main (bar_bad.c:?)
 
 
index 54b71687e49d182a3c02f604968ca39cddd82c63..173219775f73987db1d31002f0d6ada4fce1ae16 100644 (file)
@@ -1,24 +1,24 @@
 
 Locking mutex ...
 Acquired at:
-   at 0x........: pthread_mutex_lock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_lock (drd_pthread_intercepts.c:?)
    by 0x........: main (hold_lock.c:?)
 Lock on mutex 0x........ was held during ... ms (threshold: 500 ms).
-   at 0x........: pthread_mutex_unlock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
    by 0x........: main (hold_lock.c:?)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (hold_lock.c:?)
 
 Locking rwlock exclusively ...
 Acquired at:
-   at 0x........: pthread_rwlock_wrlock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_rwlock_wrlock (drd_pthread_intercepts.c:?)
    by 0x........: main (hold_lock.c:?)
 Lock on rwlock 0x........ was held during ... ms (threshold: 500 ms).
-   at 0x........: pthread_rwlock_unlock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_rwlock_unlock (drd_pthread_intercepts.c:?)
    by 0x........: main (hold_lock.c:?)
 rwlock 0x........ was first observed at:
-   at 0x........: pthread_rwlock_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_rwlock_init (drd_pthread_intercepts.c:?)
    by 0x........: main (hold_lock.c:?)
 
 Locking rwlock shared ...
index b699e128f318f08954930f241afb1d569212b393..81e355c9b0cf851e80f267607b801bc86b00f192 100644 (file)
@@ -3,13 +3,13 @@ Locking mutex ...
 Locking rwlock exclusively ...
 Locking rwlock shared ...
 Acquired at:
-   at 0x........: pthread_rwlock_rdlock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_rwlock_rdlock (drd_pthread_intercepts.c:?)
    by 0x........: main (hold_lock.c:?)
 Lock on rwlock 0x........ was held during ... ms (threshold: 500 ms).
-   at 0x........: pthread_rwlock_unlock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_rwlock_unlock (drd_pthread_intercepts.c:?)
    by 0x........: main (hold_lock.c:?)
 rwlock 0x........ was first observed at:
-   at 0x........: pthread_rwlock_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_rwlock_init (drd_pthread_intercepts.c:?)
    by 0x........: main (hold_lock.c:?)
 
 Done.
index 99f92d837d52b893a6e4cba67449a452bde6b83a..15b69baf22e4bfa5308a81e6526d4fe59a4d25bb 100644 (file)
@@ -1,13 +1,13 @@
 
 Destruction of barrier not synchronized with barrier wait call: barrier 0x........
-   at 0x........: pthread_barrier_destroy_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_barrier_destroy (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_barrier_race.c:?)
 Conflicting wait call by thread 2:
-   at 0x........: pthread_barrier_wait_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_barrier_wait (drd_pthread_intercepts.c:?)
    by 0x........: thread (pth_barrier_race.c:?)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 barrier 0x........ was first observed at:
-   at 0x........: pthread_barrier_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_barrier_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_barrier_race.c:?)
 
 
index 9103a88c611318b1fe56fa0f231a498ca0b1dd5c..36dcd502b58c2becfe20b95ec894e9e140f47b27 100644 (file)
@@ -1,9 +1,9 @@
 
 Barrier reinitialization: barrier 0x........
-   at 0x........: pthread_barrier_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_barrier_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_barrier_reinit.c:?)
 barrier 0x........ was first observed at:
-   at 0x........: pthread_barrier_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_barrier_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_barrier_reinit.c:?)
 
 
index fa9637c61ce058cbb6b47a3955400b3ddc32eb8b..e00753e3ad80a47f8fab01de8a7e56c86966e46a 100644 (file)
@@ -1,9 +1,9 @@
 
 Mutex still locked at thread exit: mutex 0x........, recursion count 1, owner 2.
-   at 0x........: pthread_join_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_join (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_cancel_locked.c:?)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_cancel_locked.c:?)
 
 Test finished.
index e45c9b9ecc19c09a7c455e635e1c5e2c618cd315..00a2f8f251f7426f2433921297ae6bb4ab6de702 100644 (file)
@@ -1,9 +1,9 @@
 
 Mutex still locked at thread exit: mutex 0x........, recursion count 1, owner 2.
-   at 0x........: pthread_join_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_join (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_cancel_locked.c:?)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_cancel_locked.c:?)
 
 Mutex still locked at thread exit: mutex 0x........, recursion count 1, owner 2.
index e46da2cdaa2dea016944f03eeaef052fffc6dea7..4c73f5f7f3c652cac8a28b874ac86842b7321702 100644 (file)
@@ -1,14 +1,14 @@
 
 Thread 2:
 Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
-   at 0x........: pthread_cond_signal_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?)
    by 0x........: thread_func (pth_cond_race.c:?)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 cond 0x........ was first observed at:
-   at 0x........: pthread_cond_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_cond_race.c:?)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_cond_race.c:?)
 
 
index 8f6cabc0f1fab6483173b5f49a1921ad64586505..ef294c3f884d6a9edec3eb29c56eefb640085116 100644 (file)
@@ -1,38 +1,38 @@
 
 Thread 3:
 Inconsistent association of condition variable and mutex: condition variable 0x........, mutexes 0x........ and 0x........
-   at 0x........: pthread_cond_timedwait_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_timedwait (drd_pthread_intercepts.c:?)
    by 0x........: thread_func (pth_inconsistent_cond_wait.c:?)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 cond 0x........ was first observed at:
-   at 0x........: pthread_cond_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_inconsistent_cond_wait.c:?)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_inconsistent_cond_wait.c:?)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_inconsistent_cond_wait.c:?)
 
 Thread 1:
 Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
-   at 0x........: pthread_cond_signal_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_inconsistent_cond_wait.c:?)
 cond 0x........ was first observed at:
-   at 0x........: pthread_cond_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_inconsistent_cond_wait.c:?)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_inconsistent_cond_wait.c:?)
 
 Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
-   at 0x........: pthread_cond_signal_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_inconsistent_cond_wait.c:?)
 cond 0x........ was first observed at:
-   at 0x........: pthread_cond_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_inconsistent_cond_wait.c:?)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_inconsistent_cond_wait.c:?)
 
 
index 7dd57134ad44f71db9b0e5ca00d40e13d9858816..ad24a27b2a236a39ccc23c89571ffbbb89bde37a 100644 (file)
@@ -1,38 +1,38 @@
 
 Thread 2:
 Inconsistent association of condition variable and mutex: condition variable 0x........, mutexes 0x........ and 0x........
-   at 0x........: pthread_cond_timedwait_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_timedwait (drd_pthread_intercepts.c:?)
    by 0x........: thread_func (pth_inconsistent_cond_wait.c:?)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 cond 0x........ was first observed at:
-   at 0x........: pthread_cond_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_inconsistent_cond_wait.c:?)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_inconsistent_cond_wait.c:?)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_inconsistent_cond_wait.c:?)
 
 Thread 1:
 Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
-   at 0x........: pthread_cond_signal_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_inconsistent_cond_wait.c:?)
 cond 0x........ was first observed at:
-   at 0x........: pthread_cond_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_inconsistent_cond_wait.c:?)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_inconsistent_cond_wait.c:?)
 
 Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
-   at 0x........: pthread_cond_signal_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_inconsistent_cond_wait.c:?)
 cond 0x........ was first observed at:
-   at 0x........: pthread_cond_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_inconsistent_cond_wait.c:?)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_inconsistent_cond_wait.c:?)
 
 
index dcd38bee7c60e4deac1d71b096e62b75c8daf4bd..93076665c8ae1c6cabf7e30fb1f2cbc6f86bb7e4 100644 (file)
@@ -1,9 +1,9 @@
 
 Mutex reinitialization: mutex 0x........, recursion count 0, owner 1.
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_mutex_reinit.c:?)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_mutex_reinit.c:?)
 
 Done.
index d94ef2b7b342633857a93feab0440fee87754d69..a693944794fae584927c243ec3fe001325e0cd3d 100644 (file)
@@ -2,7 +2,7 @@
 Statically initialized condition variable.
 Uninitialized condition variable.
 condition variable has not been initialized: cond 0x........
-   at 0x........: pthread_cond_signal_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?)
    by 0x........: main (pth_uninitialized_cond.c:?)
 
 Done.
index 75bccbcb6f7cbe36d7e768fe5ef9c925b488eb6d..04a1839cf208dcb8d82a12ff8a6b119b8331d7e3 100644 (file)
@@ -3,11 +3,11 @@
 Non-recursive mutex.
 second lock call failed !
 Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1.
-   at 0x........: pthread_mutex_unlock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
    by 0x........: lock_twice (recursive_mutex.c:?)
    by 0x........: main (recursive_mutex.c:?)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_trylock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_trylock (drd_pthread_intercepts.c:?)
    by 0x........: lock_twice (recursive_mutex.c:?)
    by 0x........: main (recursive_mutex.c:?)
 
index 750552148ce86da3c7cf54d5852f1fc116810295..efa983a96754f14dfba071aee15d41bfba0c4d5a 100644 (file)
@@ -6,11 +6,11 @@ Recursive mutex (initialized via mutex attributes).
 Error checking mutex.
 second lock call failed !
 Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1.
-   at 0x........: pthread_mutex_unlock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
    by 0x........: lock_twice (recursive_mutex.c:?)
    by 0x........: main (recursive_mutex.c:?)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (recursive_mutex.c:?)
 
 second unlock call failed !
@@ -18,11 +18,11 @@ second unlock call failed !
 Non-recursive mutex.
 second lock call failed !
 Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1.
-   at 0x........: pthread_mutex_unlock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
    by 0x........: lock_twice (recursive_mutex.c:?)
    by 0x........: main (recursive_mutex.c:?)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_trylock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_trylock (drd_pthread_intercepts.c:?)
    by 0x........: lock_twice (recursive_mutex.c:?)
    by 0x........: main (recursive_mutex.c:?)
 
index 96cc4c08d5fb9f84719b7c98b2fbf6b1fb642e29..b3d2dc9f1bb345dc6f56ae0a57f4452abc44923e 100644 (file)
@@ -1,6 +1,6 @@
 
 Attempt to use a user-defined rwlock as a POSIX rwlock: rwlock 0x.........
-   at 0x........: pthread_rwlock_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_rwlock_init (drd_pthread_intercepts.c:?)
    by 0x........: main (rwlock_type_checking.c:?)
 rwlock 0x........ was first observed at:
    at 0x........: main (rwlock_type_checking.c:?)
@@ -8,7 +8,7 @@ rwlock 0x........ was first observed at:
 Attempt to use a POSIX rwlock as a user-defined rwlock: rwlock 0x.........
    at 0x........: main (rwlock_type_checking.c:?)
 rwlock 0x........ was first observed at:
-   at 0x........: pthread_rwlock_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_rwlock_init (drd_pthread_intercepts.c:?)
    by 0x........: main (rwlock_type_checking.c:?)
 
 Finished.
index 068c26a6c31e4accb7c716d6c9da8a612fe66a3a..82083346e7d0a94f67602b9f2c61c9f130c92080 100644 (file)
@@ -3,14 +3,14 @@ Destroying locked mutex: mutex 0x........, recursion count 1, owner 1.
    at 0x........: free (vg_replace_malloc.c:...)
    by 0x........: main (tc04_free_lock.c:24)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (tc04_free_lock.c:20)
 
 Destroying locked mutex: mutex 0x........, recursion count 1, owner 1.
    at 0x........: bar (tc04_free_lock.c:40)
    by 0x........: main (tc04_free_lock.c:26)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_lock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_lock (drd_pthread_intercepts.c:?)
    by 0x........: bar (tc04_free_lock.c:38)
    by 0x........: main (tc04_free_lock.c:26)
 
@@ -18,7 +18,7 @@ Destroying locked mutex: mutex 0x........, recursion count 1, owner 1.
    at 0x........: foo (tc04_free_lock.c:49)
    by 0x........: main (tc04_free_lock.c:27)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: foo (tc04_free_lock.c:46)
    by 0x........: main (tc04_free_lock.c:27)
 
@@ -26,7 +26,7 @@ Destroying locked mutex: mutex 0x........, recursion count 1, owner 1.
    at 0x........: bar (tc04_free_lock.c:40)
    by 0x........: main (tc04_free_lock.c:28)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_lock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_lock (drd_pthread_intercepts.c:?)
    by 0x........: bar (tc04_free_lock.c:38)
    by 0x........: main (tc04_free_lock.c:28)
 
index 8fe5fb2c3cef6afe781f1ee182ccd41db25d6857..7f8e2cc2aa9ed450404a2e9683378e4bb285c5f0 100644 (file)
@@ -1,26 +1,26 @@
 
 Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1.
-   at 0x........: pthread_mutex_unlock_intercept (drd_pthread_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)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: nearly_main (tc09_bad_unlock.c:23)
    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_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
    by 0x........: child_fn (tc09_bad_unlock.c:11)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: nearly_main (tc09_bad_unlock.c:31)
    by 0x........: main (tc09_bad_unlock.c:49)
 
 Thread 1:
 The object at address 0x........ is not a mutex.
-   at 0x........: pthread_mutex_unlock_intercept (drd_pthread_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)
 
@@ -28,22 +28,22 @@ Destroying locked mutex: mutex 0x........, recursion count 1, owner 1.
    at 0x........: nearly_main (tc09_bad_unlock.c:45)
    by 0x........: main (tc09_bad_unlock.c:49)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: nearly_main (tc09_bad_unlock.c:31)
    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_intercept (drd_pthread_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)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: nearly_main (tc09_bad_unlock.c:23)
    by 0x........: main (tc09_bad_unlock.c:50)
 
 The object at address 0x........ is not a mutex.
-   at 0x........: pthread_mutex_unlock_intercept (drd_pthread_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)
 
@@ -51,7 +51,7 @@ Destroying locked mutex: mutex 0x........, recursion count 1, owner 1.
    at 0x........: nearly_main (tc09_bad_unlock.c:45)
    by 0x........: main (tc09_bad_unlock.c:50)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: nearly_main (tc09_bad_unlock.c:31)
    by 0x........: main (tc09_bad_unlock.c:50)
 
index 9b85b34048c0ef2bc9c553c5de2c24bfd321dbb2..277705a548f84f3676dd7a50a1539eb19ce6a954 100644 (file)
@@ -1,26 +1,26 @@
 
 Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1.
-   at 0x........: pthread_mutex_unlock_intercept (drd_pthread_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)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: nearly_main (tc09_bad_unlock.c:23)
    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_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
    by 0x........: child_fn (tc09_bad_unlock.c:11)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: nearly_main (tc09_bad_unlock.c:31)
    by 0x........: main (tc09_bad_unlock.c:49)
 
 Thread 1:
 The object at address 0x........ is not a mutex.
-   at 0x........: pthread_mutex_unlock_intercept (drd_pthread_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)
 
@@ -28,22 +28,22 @@ Destroying locked mutex: mutex 0x........, recursion count 1, owner 1.
    at 0x........: nearly_main (tc09_bad_unlock.c:45)
    by 0x........: (below main)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: nearly_main (tc09_bad_unlock.c:31)
    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_intercept (drd_pthread_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)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: nearly_main (tc09_bad_unlock.c:23)
    by 0x........: main (tc09_bad_unlock.c:50)
 
 The object at address 0x........ is not a mutex.
-   at 0x........: pthread_mutex_unlock_intercept (drd_pthread_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)
 
@@ -51,7 +51,7 @@ Destroying locked mutex: mutex 0x........, recursion count 1, owner 1.
    at 0x........: nearly_main (tc09_bad_unlock.c:45)
    by 0x........: (below main)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: nearly_main (tc09_bad_unlock.c:31)
    by 0x........: main (tc09_bad_unlock.c:50)
 
index 8ca20693e34b708177f8606e2786cae3bd24ad2d..a37bbd4a099a208590b1daef73f6e92e652eaa86 100644 (file)
@@ -7,11 +7,11 @@ before unlock #2
 before unlock #3
 before unlock #4
 Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1.
-   at 0x........: pthread_mutex_unlock_intercept (drd_pthread_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)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: nearly_main (tc10_rec_lock.c:24)
    by 0x........: main (tc10_rec_lock.c:47)
 
index 0f41595feff945fafb54ded3871186bf096e79a4..6ba7b18627ad8bb6df6930e85924387dd798d749 100644 (file)
@@ -1,9 +1,9 @@
 
 Reader-writer lock not locked by calling thread: rwlock 0x.........
-   at 0x........: pthread_rwlock_unlock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_rwlock_unlock (drd_pthread_intercepts.c:?)
    by 0x........: main (tc12_rwl_trivial.c:35)
 rwlock 0x........ was first observed at:
-   at 0x........: pthread_rwlock_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_rwlock_init (drd_pthread_intercepts.c:?)
    by 0x........: main (tc12_rwl_trivial.c:24)
 
 
index 74f672ea86dc03d35ccab01f9dd74766f2423e7e..6c8c45b366ca5d9cb0a952c8b458b53457a0d57a 100644 (file)
@@ -1,16 +1,16 @@
 
 Semaphore reinitialization: semaphore 0x........
-   at 0x........: sem_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: sem_init (drd_pthread_intercepts.c:?)
    by 0x........: main (tc18_semabuse.c:26)
 semaphore 0x........ was first observed at:
-   at 0x........: sem_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: sem_init (drd_pthread_intercepts.c:?)
    by 0x........: main (tc18_semabuse.c:23)
 
 Invalid semaphore: semaphore 0x........
-   at 0x........: sem_wait_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: sem_wait (drd_pthread_intercepts.c:?)
    by 0x........: main (tc18_semabuse.c:34)
 semaphore 0x........ was first observed at:
-   at 0x........: sem_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: sem_init (drd_pthread_intercepts.c:?)
    by 0x........: main (tc18_semabuse.c:23)
 
 
index f51d183da8daf550ba31a7f100bad98f74a8152d..cf7e0d2d015715a6f60100bcd61bb10e6b939a48 100644 (file)
@@ -1,9 +1,9 @@
 
 Mutex still locked at thread exit: mutex 0x........, recursion count 1, owner 3.
-   at 0x........: pthread_join_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_join (drd_pthread_intercepts.c:?)
    by 0x........: main (tc22_exit_w_lock.c:43)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_lock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_lock (drd_pthread_intercepts.c:?)
    by 0x........: child_fn1 (tc22_exit_w_lock.c:18)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 
index 0619171cf2c1260d8136d48a05beca83ab326ca8..3854362bf3cc457401662d979c769847778cabcd 100644 (file)
@@ -1,6 +1,6 @@
 
 The object at address 0x........ is not a mutex.
-   at 0x........: pthread_cond_wait_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
    by 0x........: main (tc23_bogus_condwait.c:69)
 
 
@@ -8,6 +8,6 @@ Process terminating with default action of signal 7 (SIGBUS)
  Invalid address alignment at address 0x........
    at 0x........: (within libpthread-?.?.so)
    by 0x........: pthread_cond_wait@@GLIBC_2.3.2(within libpthread-?.?.so)
-   by 0x........: pthread_cond_wait_intercept (drd_pthread_intercepts.c:?)
+   by 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
 
 ERROR SUMMARY: 2 errors from 1 contexts (suppressed: 0 from 0)
index 117f2827053e86416dbaff6c4302b4f9413da2a3..5e16bd2e460f82558ec9f0b41683130e802a77f2 100644 (file)
@@ -1,85 +1,85 @@
 
 The object at address 0x........ is not a mutex.
-   at 0x........: pthread_cond_wait_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
    by 0x........: main (tc23_bogus_condwait.c:69)
 
 Thread 3:
 Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
-   at 0x........: pthread_cond_signal_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?)
    by 0x........: rescue_me (tc23_bogus_condwait.c:20)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 cond 0x........ was first observed at:
-   at 0x........: pthread_cond_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_init (drd_pthread_intercepts.c:?)
    by 0x........: main (tc23_bogus_condwait.c:56)
 
 Thread 1:
 Mutex not locked: mutex 0x........, recursion count 0, owner 0.
-   at 0x........: pthread_cond_wait_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
    by 0x........: main (tc23_bogus_condwait.c:72)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (tc23_bogus_condwait.c:51)
 
 Thread 3:
 Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
-   at 0x........: pthread_cond_signal_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?)
    by 0x........: rescue_me (tc23_bogus_condwait.c:24)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 cond 0x........ was first observed at:
-   at 0x........: pthread_cond_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_init (drd_pthread_intercepts.c:?)
    by 0x........: main (tc23_bogus_condwait.c:56)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (tc23_bogus_condwait.c:51)
 
 Thread 1:
 The object at address 0x........ is not a mutex.
-   at 0x........: pthread_cond_wait_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
    by 0x........: main (tc23_bogus_condwait.c:75)
 rwlock 0x........ was first observed at:
-   at 0x........: pthread_rwlock_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_rwlock_init (drd_pthread_intercepts.c:?)
    by 0x........: main (tc23_bogus_condwait.c:57)
 
 Thread 3:
 Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
-   at 0x........: pthread_cond_signal_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?)
    by 0x........: rescue_me (tc23_bogus_condwait.c:28)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 cond 0x........ was first observed at:
-   at 0x........: pthread_cond_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_init (drd_pthread_intercepts.c:?)
    by 0x........: main (tc23_bogus_condwait.c:56)
 rwlock 0x........ was first observed at:
-   at 0x........: pthread_rwlock_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_rwlock_init (drd_pthread_intercepts.c:?)
    by 0x........: main (tc23_bogus_condwait.c:57)
 
 Thread 1:
 Mutex not locked by calling thread: mutex 0x........, recursion count 1, owner 2.
-   at 0x........: pthread_cond_wait_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
    by 0x........: main (tc23_bogus_condwait.c:78)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (tc23_bogus_condwait.c:53)
 
 Thread 3:
 Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
-   at 0x........: pthread_cond_signal_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?)
    by 0x........: rescue_me (tc23_bogus_condwait.c:32)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 cond 0x........ was first observed at:
-   at 0x........: pthread_cond_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_cond_init (drd_pthread_intercepts.c:?)
    by 0x........: main (tc23_bogus_condwait.c:56)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (tc23_bogus_condwait.c:53)
 
 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_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
    by 0x........: grab_the_lock (tc23_bogus_condwait.c:42)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 mutex 0x........ was first observed at:
-   at 0x........: pthread_mutex_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (tc23_bogus_condwait.c:53)
 
 
index d8650e23be0b2b852688788f97e674daa47318f3..82ad952cb2595dd0f7e7ade3e143e2ff82995cb3 100644 (file)
@@ -4,7 +4,7 @@ thread_func instance 1
 
 Thread 2 (thread_func instance 1):
 The object at address 0x........ is not a mutex.
-   at 0x........: pthread_mutex_unlock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
    by 0x........: thread_func (thread_name.c:?)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 
@@ -13,7 +13,7 @@ thread_func instance 2
 
 Thread 3 (thread_func instance 2):
 The object at address 0x........ is not a mutex.
-   at 0x........: pthread_mutex_unlock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
    by 0x........: thread_func (thread_name.c:?)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 
@@ -22,7 +22,7 @@ thread_func instance 3
 
 Thread 4 (thread_func instance 3):
 The object at address 0x........ is not a mutex.
-   at 0x........: pthread_mutex_unlock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
    by 0x........: thread_func (thread_name.c:?)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 
@@ -31,7 +31,7 @@ thread_func instance 4
 
 Thread 5 (thread_func instance 4):
 The object at address 0x........ is not a mutex.
-   at 0x........: pthread_mutex_unlock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
    by 0x........: thread_func (thread_name.c:?)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 
@@ -40,7 +40,7 @@ thread_func instance 5
 
 Thread 6 (thread_func instance 5):
 The object at address 0x........ is not a mutex.
-   at 0x........: pthread_mutex_unlock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
    by 0x........: thread_func (thread_name.c:?)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 
@@ -49,7 +49,7 @@ thread_func instance 6
 
 Thread 7 (thread_func instance 6):
 The object at address 0x........ is not a mutex.
-   at 0x........: pthread_mutex_unlock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
    by 0x........: thread_func (thread_name.c:?)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 
@@ -58,7 +58,7 @@ thread_func instance 7
 
 Thread 8 (thread_func instance 7):
 The object at address 0x........ is not a mutex.
-   at 0x........: pthread_mutex_unlock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
    by 0x........: thread_func (thread_name.c:?)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 
@@ -67,7 +67,7 @@ thread_func instance 8
 
 Thread 9 (thread_func instance 8):
 The object at address 0x........ is not a mutex.
-   at 0x........: pthread_mutex_unlock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
    by 0x........: thread_func (thread_name.c:?)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 
@@ -76,7 +76,7 @@ thread_func instance 9
 
 Thread 10 (thread_func instance 9):
 The object at address 0x........ is not a mutex.
-   at 0x........: pthread_mutex_unlock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
    by 0x........: thread_func (thread_name.c:?)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 
@@ -85,7 +85,7 @@ thread_func instance 10
 
 Thread 11 (thread_func instance 10):
 The object at address 0x........ is not a mutex.
-   at 0x........: pthread_mutex_unlock_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
    by 0x........: thread_func (thread_name.c:?)
    by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
 
index f60c7a1b1f277ac007d0a47dae51603f70d3af9c..2c5d765f1182d9135026f1a13f696bd4d8f32c8e 100644 (file)
@@ -7,10 +7,10 @@ Locking rwlock via pthread_rwlock_tryrdlock().
 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_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_rwlock_wrlock (drd_pthread_intercepts.c:?)
    by 0x........: main (trylock.c:?)
 rwlock 0x........ was first observed at:
-   at 0x........: pthread_rwlock_init_intercept (drd_pthread_intercepts.c:?)
+   at 0x........: pthread_rwlock_init (drd_pthread_intercepts.c:?)
    by 0x........: main (trylock.c:?)
 
 Locking mutex via pthread_mutex_trylock().