]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Modified error message that is printed when a mutex operation is attempted on an...
authorBart Van Assche <bvanassche@acm.org>
Mon, 24 Mar 2008 19:31:33 +0000 (19:31 +0000)
committerBart Van Assche <bvanassche@acm.org>
Mon, 24 Mar 2008 19:31:33 +0000 (19:31 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7783

exp-drd/drd_error.c
exp-drd/tests/tc09_bad_unlock.stderr.exp
exp-drd/tests/tc20_verifywrap.stderr.exp-glibc2.3
exp-drd/tests/tc20_verifywrap2.stderr.exp-glibc2.3-b
exp-drd/tests/tc23_bogus_condwait.stderr.exp

index 86c40a2dcd44f36e6e33f6d275916de94bea02a1..8851f612ae92b31de5a21791d6e4d9b915cd2f2f 100644 (file)
@@ -145,8 +145,7 @@ static void drd_tool_error_pp(Error* const e)
     else
     {
       VG_(message)(Vg_UserMsg,
-                   "%s: mutex 0x%lx.",
-                   VG_(get_error_string)(e),
+                   "The object at address 0x%lx is not a mutex.",
                    p->mutex);
     }
     VG_(pp_ExeContext)(VG_(get_error_where)(e));
index a7e55444aa1f2f80a7c401989c79e20ae8f8e9c5..31aaabc295aa59784a95ce6c3f57a1dec9de7915 100644 (file)
@@ -13,7 +13,7 @@ Mutex not locked by calling thread: mutex 0x........, recursion count 1, owner 1
    by 0x........: clone (in /...libc...)
 
 Thread 1:
-Not a mutex: mutex 0x.........
+The object at address 0x........ is not a mutex.
    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)
@@ -36,7 +36,7 @@ Mutex not locked by calling thread: mutex 0x........, recursion count 1, owner 1
    by 0x........: clone (in /...libc...)
 
 Thread 1:
-Not a mutex: mutex 0x.........
+The object at address 0x........ is not a mutex.
    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)
index 694c1d560714b6dd70a477850469c9048929658d..1385cd1ea43e275152eb28a24a45c30924f685c8 100644 (file)
@@ -17,7 +17,7 @@ Other segment end (thread 0/2)
 ---------------- pthread_mutex_lock et al ----------------
 
 
-Not a mutex
+The object at address 0x........ is not a mutex.
    at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (tc20_verifywrap.c:92)
 
@@ -28,15 +28,15 @@ Destroying locked mutex: mutex 0x........, recursion count 1, owner 1.
 make pthread_mutex_lock fail: skipped on glibc < 2.4
 
 
-Not a mutex
+The object at address 0x........ is not a mutex.
    at 0x........: pthread_mutex_trylock (drd_pthread_intercepts.c:?)
    by 0x........: main (tc20_verifywrap.c:116)
 
-Not a mutex
+The object at address 0x........ is not a mutex.
    at 0x........: pthread_mutex_timedlock (drd_pthread_intercepts.c:?)
    by 0x........: main (tc20_verifywrap.c:121)
 
-Not a mutex
+The object at address 0x........ is not a mutex.
    at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
    by 0x........: main (tc20_verifywrap.c:125)
 
index 961f39add08bda099c08a530de039b9adf46bbbf..32b6735a6844666bdce2c098696c74226dd58212 100644 (file)
@@ -18,7 +18,7 @@ Other segment end (thread 0/2)
 
 [1/1] mutex_init      invalid mutex 0x........
 
-Not a mutex
+The object at address 0x........ is not a mutex.
    at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
    by 0x........: main (tc20_verifywrap.c:92)
 [1/1] mutex_init      mutex 0x........
@@ -34,19 +34,19 @@ make pthread_mutex_lock fail: skipped on glibc < 2.4
 
 [1/1] pre_mutex_lock  invalid mutex 0x........ rc 0 owner 0
 
-Not a mutex
+The object at address 0x........ is not a mutex.
    at 0x........: pthread_mutex_trylock (drd_pthread_intercepts.c:?)
    by 0x........: main (tc20_verifywrap.c:116)
 [1/1] post_mutex_lock invalid mutex 0x........ rc 0 owner 0
 [1/1] pre_mutex_lock  invalid mutex 0x........ rc 0 owner 0
 
-Not a mutex
+The object at address 0x........ is not a mutex.
    at 0x........: pthread_mutex_timedlock (drd_pthread_intercepts.c:?)
    by 0x........: main (tc20_verifywrap.c:121)
 [1/1] post_mutex_lock invalid mutex 0x........ rc 0 owner 0
 [1/1] mutex_unlock    invalid mutex 0x........ rc 0
 
-Not a mutex
+The object at address 0x........ is not a mutex.
    at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
    by 0x........: main (tc20_verifywrap.c:125)
 
index afbf17b7bacee7a90bb78e23e5252fcdc27a076a..ca0ec2ba30f5c973c0f626a6712985f81c073771 100644 (file)
@@ -1,5 +1,5 @@
 
-Not a mutex: mutex 0x.........
+The object at address 0x........ is not a mutex.
    at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
    by 0x........: main (tc23_bogus_condwait.c:69)
 
@@ -7,7 +7,7 @@ Mutex not locked: mutex 0x........, recursion count 0, owner 0.
    at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
    by 0x........: main (tc23_bogus_condwait.c:72)
 
-Not a mutex: mutex 0x.........
+The object at address 0x........ is not a mutex.
    at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
    by 0x........: main (tc23_bogus_condwait.c:75)