]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Added yet another output variant.
authorBart Van Assche <bvanassche@acm.org>
Tue, 20 Jan 2009 14:25:22 +0000 (14:25 +0000)
committerBart Van Assche <bvanassche@acm.org>
Tue, 20 Jan 2009 14:25:22 +0000 (14:25 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9000

drd/tests/Makefile.am
drd/tests/pth_inconsistent_cond_wait.stderr.exp1 [moved from drd/tests/pth_inconsistent_cond_wait.stderr.exp with 100% similarity]
drd/tests/pth_inconsistent_cond_wait.stderr.exp2 [new file with mode: 0644]

index b161de02a4a3cf95ad6dca716ef083fa50e8d269..b8c870a90aa1c9013472aaa3ad1924348396ba23 100644 (file)
@@ -108,7 +108,8 @@ EXTRA_DIST =                                        \
        pth_detached_sem.stderr.exp                 \
        pth_detached_sem.stdout.exp                 \
        pth_detached_sem.vgtest                     \
-       pth_inconsistent_cond_wait.stderr.exp       \
+       pth_inconsistent_cond_wait.stderr.exp1      \
+       pth_inconsistent_cond_wait.stderr.exp2      \
        pth_inconsistent_cond_wait.vgtest           \
        pth_spinlock.stderr.exp                     \
        pth_spinlock.vgtest                         \
diff --git a/drd/tests/pth_inconsistent_cond_wait.stderr.exp2 b/drd/tests/pth_inconsistent_cond_wait.stderr.exp2
new file mode 100644 (file)
index 0000000..83ea73e
--- /dev/null
@@ -0,0 +1,40 @@
+
+Thread 2:
+Inconsistent association of condition variable and mutex: condition variable 0x........, mutexes 0x........ and 0x........
+   at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
+   by 0x........: thread1 (pth_inconsistent_cond_wait.c:?)
+   by 0x........: vg_thread_wrapper (drd_pthread_intercepts.c:?)
+   by 0x........: (within libpthread-?.?.so)
+   by 0x........: clone (in /...libc...)
+cond 0x........ was first observed at:
+   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 (drd_pthread_intercepts.c:?)
+   by 0x........: main (pth_inconsistent_cond_wait.c:?)
+mutex 0x........ was first observed at:
+   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* (drd_pthread_intercepts.c:?)
+   by 0x........: main (pth_inconsistent_cond_wait.c:?)
+cond 0x........ was first observed at:
+   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 (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* (drd_pthread_intercepts.c:?)
+   by 0x........: main (pth_inconsistent_cond_wait.c:?)
+cond 0x........ was first observed at:
+   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 (drd_pthread_intercepts.c:?)
+   by 0x........: main (pth_inconsistent_cond_wait.c:?)
+
+ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0)