================================================= ./valgrind-new/drd/tests/tc12_rwl_trivial.stderr.diff ================================================= --- tc12_rwl_trivial.stderr.exp 2015-08-08 02:47:33.800736321 +0100 +++ tc12_rwl_trivial.stderr.out 2015-08-08 03:03:39.115608571 +0100 @@ -6,5 +6,31 @@ at 0x........: pthread_rwlock_init (drd_pthread_intercepts.c:?) by 0x........: main (tc12_rwl_trivial.c:18) +vex amd64->IR: unhandled instruction bytes: 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ +vex amd64->IR: REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0 +vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x........ ESC=0F +vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0 +valgrind: Unrecognised instruction at address 0x......... + at 0x........: _xend (pthread_rwlock_unlock.c:?) + by 0x........: pthread_rwlock_unlock (pthread_rwlock_unlock.c:?) + by 0x........: pthread_rwlock_unlock (drd_pthread_intercepts.c:?) + by 0x........: main (tc12_rwl_trivial.c:29) +Your program just tried to execute an instruction that Valgrind +did not recognise. There are two possible reasons for this. +1. Your program has a bug and erroneously jumped to a non-code + location. If you are running Memcheck and you just saw a + warning about a bad jump, it's probably your program's fault. +2. The instruction is legitimate but Valgrind doesn't handle it, + i.e. it's Valgrind's fault. If you think this is the case or + you are not sure, please let us know and we'll try to fix it. +Either way, Valgrind will now raise a SIGILL signal which will +probably kill your program. + +Process terminating with default action of signal 4 (SIGILL) + Illegal opcode at address 0x........ + at 0x........: _xend (pthread_rwlock_unlock.c:?) + by 0x........: pthread_rwlock_unlock (pthread_rwlock_unlock.c:?) + by 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) ================================================= ./valgrind-new/gdbserver_tests/hgtls.stdoutB.diff ================================================= --- hgtls.stdoutB.exp 2015-08-08 02:47:28.995826562 +0100 +++ hgtls.stdoutB.out 2015-08-08 02:51:29.808303934 +0100 @@ -26,10 +26,10 @@ test static_extern tls_ip 0x........ ip 0x........ equal 1 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; -test so_extern tls_ip 0x........ ip 0x........ equal 1 +test so_extern tls_ip 0x........ ip 0x........ equal 0 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; -test so_extern tls_ip 0x........ ip 0x........ equal 1 +test so_extern tls_ip 0x........ ip 0x........ equal 0 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; test so_local tls_ip 0x........ ip 0x........ equal 1 ================================================= ./valgrind-new/helgrind/tests/tc12_rwl_trivial.stderr.diff ================================================= --- tc12_rwl_trivial.stderr.exp 2015-08-08 02:47:31.067787648 +0100 +++ tc12_rwl_trivial.stderr.out 2015-08-08 02:58:14.007713181 +0100 @@ -17,5 +17,31 @@ in frame #x, created by main (tc12_rwl_trivial.c:14) +vex amd64->IR: unhandled instruction bytes: 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ +vex amd64->IR: REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0 +vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x........ ESC=0F +vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0 +valgrind: Unrecognised instruction at address 0x......... + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) + by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) + by 0x........: main (tc12_rwl_trivial.c:29) +Your program just tried to execute an instruction that Valgrind +did not recognise. There are two possible reasons for this. +1. Your program has a bug and erroneously jumped to a non-code + location. If you are running Memcheck and you just saw a + warning about a bad jump, it's probably your program's fault. +2. The instruction is legitimate but Valgrind doesn't handle it, + i.e. it's Valgrind's fault. If you think this is the case or + you are not sure, please let us know and we'll try to fix it. +Either way, Valgrind will now raise a SIGILL signal which will +probably kill your program. + +Process terminating with default action of signal 4 (SIGILL) + Illegal opcode at address 0x........ + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) + by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) + by 0x........: main (tc12_rwl_trivial.c:29) ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) ================================================= ./valgrind-new/helgrind/tests/tc12_rwl_trivial.stderr.diff-darwin970 ================================================= --- tc12_rwl_trivial.stderr.exp-darwin970 2015-08-08 02:47:31.059787799 +0100 +++ tc12_rwl_trivial.stderr.out 2015-08-08 02:58:14.007713181 +0100 @@ -1,17 +1,47 @@ +---Thread-Announcement------------------------------------------ + Thread #x is the program's root thread +---------------------------------------------------------------- + Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock* (hg_intercepts.c:...) - by 0x........: main (tc12_rwl_trivial.c:35) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init* (hg_intercepts.c:...) - by 0x........: main (tc12_rwl_trivial.c:24) - -Thread #x's call to pthread_rwlock_unlock failed - with error code 22 (EINVAL: Invalid argument) - at 0x........: pthread_rwlock_unlock* (hg_intercepts.c:...) - by 0x........: main (tc12_rwl_trivial.c:35) + at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) + by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) + by 0x........: main (tc12_rwl_trivial.c:29) + Lock at 0x........ was first observed + at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) + by 0x........: pthread_rwlock_init (hg_intercepts.c:...) + by 0x........: main (tc12_rwl_trivial.c:18) + Address 0x........ is on thread #x's stack + in frame #x, created by main (tc12_rwl_trivial.c:14) + + +vex amd64->IR: unhandled instruction bytes: 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ +vex amd64->IR: REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0 +vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x........ ESC=0F +vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0 +valgrind: Unrecognised instruction at address 0x......... + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) + by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) + by 0x........: main (tc12_rwl_trivial.c:29) +Your program just tried to execute an instruction that Valgrind +did not recognise. There are two possible reasons for this. +1. Your program has a bug and erroneously jumped to a non-code + location. If you are running Memcheck and you just saw a + warning about a bad jump, it's probably your program's fault. +2. The instruction is legitimate but Valgrind doesn't handle it, + i.e. it's Valgrind's fault. If you think this is the case or + you are not sure, please let us know and we'll try to fix it. +Either way, Valgrind will now raise a SIGILL signal which will +probably kill your program. +Process terminating with default action of signal 4 (SIGILL) + Illegal opcode at address 0x........ + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) + by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) + by 0x........: main (tc12_rwl_trivial.c:29) -ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) +ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) ================================================= ./valgrind-new/helgrind/tests/tc12_rwl_trivial.stderr.diff-solaris ================================================= --- tc12_rwl_trivial.stderr.exp-solaris 2015-08-08 02:47:31.074787517 +0100 +++ tc12_rwl_trivial.stderr.out 2015-08-08 02:58:14.007713181 +0100 @@ -10,20 +10,38 @@ by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) by 0x........: main (tc12_rwl_trivial.c:29) Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init (hg_intercepts.c:...) - ... + at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) + by 0x........: pthread_rwlock_init (hg_intercepts.c:...) by 0x........: main (tc12_rwl_trivial.c:18) Address 0x........ is on thread #x's stack in frame #x, created by main (tc12_rwl_trivial.c:14) ----------------------------------------------------------------- - -Thread #x's call to pthread_rwlock_unlock failed - with error code 1 (EPERM: Operation not permitted) - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) +vex amd64->IR: unhandled instruction bytes: 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ +vex amd64->IR: REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0 +vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x........ ESC=0F +vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0 +valgrind: Unrecognised instruction at address 0x......... + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) by 0x........: main (tc12_rwl_trivial.c:29) +Your program just tried to execute an instruction that Valgrind +did not recognise. There are two possible reasons for this. +1. Your program has a bug and erroneously jumped to a non-code + location. If you are running Memcheck and you just saw a + warning about a bad jump, it's probably your program's fault. +2. The instruction is legitimate but Valgrind doesn't handle it, + i.e. it's Valgrind's fault. If you think this is the case or + you are not sure, please let us know and we'll try to fix it. +Either way, Valgrind will now raise a SIGILL signal which will +probably kill your program. +Process terminating with default action of signal 4 (SIGILL) + Illegal opcode at address 0x........ + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) + by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) + by 0x........: main (tc12_rwl_trivial.c:29) -ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) +ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) ================================================= ./valgrind-new/helgrind/tests/tc20_verifywrap.stderr.diff ================================================= --- tc20_verifywrap.stderr.exp 2015-08-08 02:47:31.057787836 +0100 +++ tc20_verifywrap.stderr.out 2015-08-08 02:58:31.682381301 +0100 @@ -172,81 +172,31 @@ declared at tc20_verifywrap.c:52, in frame #x of thread x -(1) no error on next line -(2) no error on next line -(3) ERROR on next line ----------------------------------------------------------------- - -Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:206) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_init (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:196) - Location 0x........ is 0 bytes inside local var "rwl2" - declared at tc20_verifywrap.c:53, in frame #x of thread x - - -(4) no error on next line -(5) no error on next line -(6) no error on next line -(7) no error on next line -(8) ERROR on next line ----------------------------------------------------------------- - -Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) +vex amd64->IR: unhandled instruction bytes: 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ +vex amd64->IR: REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0 +vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x........ ESC=0F +vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0 +valgrind: Unrecognised instruction at address 0x......... + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:227) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_init (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:196) - Location 0x........ is 0 bytes inside local var "rwl2" - declared at tc20_verifywrap.c:53, in frame #x of thread x - - - ----------------- sem_* ---------------- - ----------------------------------------------------------------- - -Thread #x's call to sem_init failed - with error code 22 (EINVAL: Invalid argument) - at 0x........: sem_init_WRK (hg_intercepts.c:...) - by 0x........: sem_init@* (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:248) - + by 0x........: main (tc20_verifywrap.c:189) +Your program just tried to execute an instruction that Valgrind +did not recognise. There are two possible reasons for this. +1. Your program has a bug and erroneously jumped to a non-code + location. If you are running Memcheck and you just saw a + warning about a bad jump, it's probably your program's fault. +2. The instruction is legitimate but Valgrind doesn't handle it, + i.e. it's Valgrind's fault. If you think this is the case or + you are not sure, please let us know and we'll try to fix it. +Either way, Valgrind will now raise a SIGILL signal which will +probably kill your program. -FIXME: can't figure out how to verify wrap of sem_destroy - ----------------------------------------------------------------- - -Thread #x: Bug in libpthread: sem_wait succeeded on semaphore without prior sem_post - at 0x........: sem_wait_WRK (hg_intercepts.c:...) - by 0x........: sem_wait (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:262) - ----------------------------------------------------------------- - -Thread #x's call to sem_post failed - with error code 22 (EINVAL: Invalid argument) - at 0x........: sem_post_WRK (hg_intercepts.c:...) - by 0x........: sem_post (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:265) - - -FIXME: can't figure out how to verify wrap of sem_post - - ------------- dealloc of mem holding locks ------------ - ----------------------------------------------------------------- - -Thread #x: Exiting thread still holds 1 lock +Process terminating with default action of signal 4 (SIGILL) + Illegal opcode at address 0x........ ================================================= ./valgrind-new/helgrind/tests/tc20_verifywrap.stderr.diff-glibc-2.18 ================================================= --- tc20_verifywrap.stderr.exp-glibc-2.18 2015-08-08 02:47:31.093787160 +0100 +++ tc20_verifywrap.stderr.out 2015-08-08 02:58:31.682381301 +0100 @@ -57,6 +57,14 @@ ---------------------------------------------------------------- +Thread #x's call to pthread_mutex_destroy failed + with error code 16 (EBUSY: Device or resource busy) + at 0x........: mutex_destroy_WRK (hg_intercepts.c:...) + by 0x........: pthread_mutex_destroy (hg_intercepts.c:...) + by 0x........: main (tc20_verifywrap.c:112) + +---------------------------------------------------------------- + Thread #x's call to pthread_mutex_lock failed with error code 22 (EINVAL: Invalid argument) at 0x........: mutex_lock_WRK (hg_intercepts.c:...) @@ -156,80 +164,39 @@ at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:189) - Lock at 0x........ was first observed + Lock at 0x........ was first observed at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_init (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:188) + Location 0x........ is 0 bytes inside local var "rwl" + declared at tc20_verifywrap.c:52, in frame #x of thread x -(1) no error on next line -(2) no error on next line -(3) ERROR on next line ----------------------------------------------------------------- -Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:206) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_init (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:196) - -(4) no error on next line -(5) no error on next line -(6) no error on next line -(7) no error on next line -(8) ERROR on next line ----------------------------------------------------------------- - -Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) +vex amd64->IR: unhandled instruction bytes: 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ +vex amd64->IR: REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0 +vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x........ ESC=0F +vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0 +valgrind: Unrecognised instruction at address 0x......... + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:227) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_init (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:196) - - ----------------- sem_* ---------------- - ----------------------------------------------------------------- - -Thread #x's call to sem_init failed - with error code 22 (EINVAL: Invalid argument) - at 0x........: sem_init_WRK (hg_intercepts.c:...) - by 0x........: sem_init@* (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:243) - - -FIXME: can't figure out how to verify wrap of sem_destroy - ----------------------------------------------------------------- - -Thread #x: Bug in libpthread: sem_wait succeeded on semaphore without prior sem_post - at 0x........: sem_wait_WRK (hg_intercepts.c:...) - by 0x........: sem_wait (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:257) - ----------------------------------------------------------------- - -Thread #x's call to sem_post failed - with error code 22 (EINVAL: Invalid argument) - at 0x........: sem_post_WRK (hg_intercepts.c:...) - by 0x........: sem_post (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:260) - - -FIXME: can't figure out how to verify wrap of sem_post - - ------------- dealloc of mem holding locks ------------ ================================================= ./valgrind-new/helgrind/tests/tc20_verifywrap.stderr.diff-mips32 ================================================= --- tc20_verifywrap.stderr.exp-mips32 2015-08-08 02:47:31.068787630 +0100 +++ tc20_verifywrap.stderr.out 2015-08-08 02:58:31.682381301 +0100 @@ -13,7 +13,6 @@ Thread #x was created ... - by 0x........: pthread_create_WRK (hg_intercepts.c:...) by 0x........: pthread_create@* (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:81) @@ -28,14 +27,13 @@ at 0x........: racy_child (tc20_verifywrap.c:39) by 0x........: mythread_wrapper (hg_intercepts.c:...) ... - -Location 0x........ is 0 bytes inside global var "unprotected" -declared at tc20_verifywrap.c:32 + Location 0x........ is 0 bytes inside global var "unprotected" + declared at tc20_verifywrap.c:32 ---------------------------------------------------------------- Thread #x's call to pthread_join failed - with error code 45 (EDEADLK: Resource deadlock would occur) + with error code 35 (EDEADLK: Resource deadlock would occur) at 0x........: pthread_join_WRK (hg_intercepts.c:...) by 0x........: pthread_join (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:88) @@ -46,7 +44,7 @@ ---------------------------------------------------------------- Thread #x's call to pthread_mutex_init failed - with error code 122 (EOPNOTSUPP: Operation not supported on transport endpoint) + with error code 95 (EOPNOTSUPP: Operation not supported on transport endpoint) at 0x........: pthread_mutex_init (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:102) @@ -166,72 +164,39 @@ at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:189) - Lock at 0x........ was first observed + Lock at 0x........ was first observed at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_init (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:188) + Location 0x........ is 0 bytes inside local var "rwl" + declared at tc20_verifywrap.c:52, in frame #x of thread x -(1) no error on next line -(2) no error on next line -(3) ERROR on next line ----------------------------------------------------------------- - -Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:206) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_init (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:196) - -(4) no error on next line -(5) no error on next line -(6) no error on next line -(7) no error on next line -(8) ERROR on next line ----------------------------------------------------------------- -Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) +vex amd64->IR: unhandled instruction bytes: 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ +vex amd64->IR: REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0 +vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x........ ESC=0F +vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0 +valgrind: Unrecognised instruction at address 0x......... + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:227) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_init (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:196) - - ----------------- sem_* ---------------- - ----------------------------------------------------------------- - -Thread #x's call to sem_init failed - with error code 22 (EINVAL: Invalid argument) - at 0x........: sem_init_WRK (hg_intercepts.c:...) - by 0x........: sem_init@* (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:243) - - -FIXME: can't figure out how to verify wrap of sem_destroy - ================================================= ./valgrind-new/helgrind/tests/tc20_verifywrap.stderr.diff-mips32-b ================================================= --- tc20_verifywrap.stderr.exp-mips32-b 2015-08-08 02:47:31.066787667 +0100 +++ tc20_verifywrap.stderr.out 2015-08-08 02:58:31.682381301 +0100 @@ -13,7 +13,6 @@ Thread #x was created ... - by 0x........: pthread_create_WRK (hg_intercepts.c:...) by 0x........: pthread_create@* (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:81) @@ -28,14 +27,13 @@ at 0x........: racy_child (tc20_verifywrap.c:39) by 0x........: mythread_wrapper (hg_intercepts.c:...) ... - -Location 0x........ is 0 bytes inside global var "unprotected" -declared at tc20_verifywrap.c:32 + Location 0x........ is 0 bytes inside global var "unprotected" + declared at tc20_verifywrap.c:32 ---------------------------------------------------------------- Thread #x's call to pthread_join failed - with error code 45 (EDEADLK: Resource deadlock would occur) + with error code 35 (EDEADLK: Resource deadlock would occur) at 0x........: pthread_join_WRK (hg_intercepts.c:...) by 0x........: pthread_join (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:88) @@ -46,7 +44,7 @@ ---------------------------------------------------------------- Thread #x's call to pthread_mutex_init failed - with error code 122 (EOPNOTSUPP: Operation not supported on transport endpoint) + with error code 95 (EOPNOTSUPP: Operation not supported on transport endpoint) at 0x........: pthread_mutex_init (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:102) @@ -166,80 +164,39 @@ at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:189) - Lock at 0x........ was first observed + Lock at 0x........ was first observed at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_init (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:188) + Location 0x........ is 0 bytes inside local var "rwl" + declared at tc20_verifywrap.c:52, in frame #x of thread x -(1) no error on next line -(2) no error on next line -(3) ERROR on next line ----------------------------------------------------------------- - -Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:206) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_init (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:196) - -(4) no error on next line -(5) no error on next line -(6) no error on next line -(7) no error on next line -(8) ERROR on next line ----------------------------------------------------------------- -Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) +vex amd64->IR: unhandled instruction bytes: 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ +vex amd64->IR: REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0 +vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x........ ESC=0F +vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0 +valgrind: Unrecognised instruction at address 0x......... + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:227) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_init (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:196) - - ----------------- sem_* ---------------- - ----------------------------------------------------------------- - -Thread #x's call to sem_init failed - with error code 22 (EINVAL: Invalid argument) - at 0x........: sem_init_WRK (hg_intercepts.c:...) - by 0x........: sem_init@* (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:243) - - -FIXME: can't figure out how to verify wrap of sem_destroy - ================================================= ./valgrind-new/helgrind/tests/tc20_verifywrap.stderr.diff-s390x ================================================= --- tc20_verifywrap.stderr.exp-s390x 2015-08-08 02:47:31.086787292 +0100 +++ tc20_verifywrap.stderr.out 2015-08-08 02:58:31.682381301 +0100 @@ -13,7 +13,6 @@ Thread #x was created ... - by 0x........: pthread_create_WRK (hg_intercepts.c:...) by 0x........: pthread_create@* (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:81) @@ -28,9 +27,8 @@ at 0x........: racy_child (tc20_verifywrap.c:39) by 0x........: mythread_wrapper (hg_intercepts.c:...) ... - -Location 0x........ is 0 bytes inside global var "unprotected" -declared at tc20_verifywrap.c:32 + Location 0x........ is 0 bytes inside global var "unprotected" + declared at tc20_verifywrap.c:32 ---------------------------------------------------------------- @@ -166,72 +164,39 @@ at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:189) - Lock at 0x........ was first observed + Lock at 0x........ was first observed at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_init (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:188) + Location 0x........ is 0 bytes inside local var "rwl" + declared at tc20_verifywrap.c:52, in frame #x of thread x -(1) no error on next line -(2) no error on next line -(3) ERROR on next line ----------------------------------------------------------------- - -Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:206) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_init (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:196) - -(4) no error on next line -(5) no error on next line -(6) no error on next line -(7) no error on next line -(8) ERROR on next line ----------------------------------------------------------------- -Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) +vex amd64->IR: unhandled instruction bytes: 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ +vex amd64->IR: REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0 +vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x........ ESC=0F +vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0 +valgrind: Unrecognised instruction at address 0x......... + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:227) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_init (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:196) - - ----------------- sem_* ---------------- - ----------------------------------------------------------------- - -Thread #x's call to sem_init failed - with error code 22 (EINVAL: Invalid argument) - at 0x........: sem_init_WRK (hg_intercepts.c:...) - by 0x........: sem_init@* (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:243) - - -FIXME: can't figure out how to verify wrap of sem_destroy - ----------------------------------------------------------------- - -Thread #x: Bug in libpthread: sem_wait succeeded on semaphore without prior sem_post - at 0x........: sem_wait_WRK (hg_intercepts.c:...) - by 0x........: sem_wait (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:257) - - -FIXME: can't figure out how to verify wrap of sem_post - - ------------- dealloc of mem holding locks ------------ - ----------------------------------------------------------------- + by 0x........: main (tc20_verifywrap.c:189) ================================================= ./valgrind-new/helgrind/tests/tc20_verifywrap.stderr.diff-solaris ================================================= --- tc20_verifywrap.stderr.exp-solaris 2015-08-08 02:47:31.063787724 +0100 +++ tc20_verifywrap.stderr.out 2015-08-08 02:58:31.682381301 +0100 @@ -33,7 +33,7 @@ ---------------------------------------------------------------- Thread #x's call to pthread_join failed - with error code 45 (EDEADLK: Resource deadlock would occur) + with error code 35 (EDEADLK: Resource deadlock would occur) at 0x........: pthread_join_WRK (hg_intercepts.c:...) by 0x........: pthread_join (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:88) @@ -43,8 +43,8 @@ ---------------------------------------------------------------- -Thread #x's call to mutex_init failed - with error code 22 (EINVAL: Invalid argument) +Thread #x's call to pthread_mutex_init failed + with error code 95 (EOPNOTSUPP: Operation not supported on transport endpoint) at 0x........: pthread_mutex_init (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:102) @@ -57,8 +57,16 @@ ---------------------------------------------------------------- +Thread #x's call to pthread_mutex_destroy failed + with error code 16 (EBUSY: Device or resource busy) + at 0x........: mutex_destroy_WRK (hg_intercepts.c:...) + by 0x........: pthread_mutex_destroy (hg_intercepts.c:...) + by 0x........: main (tc20_verifywrap.c:112) + +---------------------------------------------------------------- + Thread #x's call to pthread_mutex_lock failed - with error code 1 (EPERM: Operation not permitted) + with error code 22 (EINVAL: Invalid argument) at 0x........: mutex_lock_WRK (hg_intercepts.c:...) by 0x........: pthread_mutex_lock (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:118) @@ -66,7 +74,7 @@ ---------------------------------------------------------------- Thread #x's call to pthread_mutex_trylock failed - with error code 1 (EPERM: Operation not permitted) + with error code 22 (EINVAL: Invalid argument) at 0x........: mutex_trylock_WRK (hg_intercepts.c:...) by 0x........: pthread_mutex_trylock (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:126) @@ -74,7 +82,7 @@ ---------------------------------------------------------------- Thread #x's call to pthread_mutex_timedlock failed - with error code 1 (EPERM: Operation not permitted) + with error code 22 (EINVAL: Invalid argument) at 0x........: mutex_timedlock_WRK (hg_intercepts.c:...) by 0x........: pthread_mutex_timedlock (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:131) @@ -89,7 +97,7 @@ ---------------------------------------------------------------- Thread #x's call to pthread_mutex_unlock failed - with error code 1 (EPERM: Operation not permitted) + with error code 22 (EINVAL: Invalid argument) at 0x........: mutex_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_mutex_unlock (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:135) @@ -142,7 +150,7 @@ ---------------------------------------------------------------- Thread #x's call to pthread_cond_timedwait failed - with error code 1 (EPERM: Operation not permitted) + with error code 22 (EINVAL: Invalid argument) at 0x........: pthread_cond_timedwait_WRK (hg_intercepts.c:...) by 0x........: pthread_cond_timedwait@* (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:175) @@ -157,97 +165,38 @@ by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:189) Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init (hg_intercepts.c:...) - ... + at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) + by 0x........: pthread_rwlock_init (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:188) - Location 0x........ is 0 bytes inside rwl.__pthread_rwlock_readers, + Location 0x........ is 0 bytes inside local var "rwl" declared at tc20_verifywrap.c:52, in frame #x of thread x ----------------------------------------------------------------- - -Thread #x's call to pthread_rwlock_unlock failed - with error code 1 (EPERM: Operation not permitted) - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:189) - -(1) no error on next line -(2) no error on next line ================================================= ./valgrind-old/drd/tests/tc12_rwl_trivial.stderr.diff ================================================= --- tc12_rwl_trivial.stderr.exp 2015-08-08 02:31:46.314532643 +0100 +++ tc12_rwl_trivial.stderr.out 2015-08-08 02:46:34.540849273 +0100 @@ -6,5 +6,31 @@ at 0x........: pthread_rwlock_init (drd_pthread_intercepts.c:?) by 0x........: main (tc12_rwl_trivial.c:18) +vex amd64->IR: unhandled instruction bytes: 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ +vex amd64->IR: REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0 +vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x........ ESC=0F +vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0 +valgrind: Unrecognised instruction at address 0x......... + at 0x........: _xend (pthread_rwlock_unlock.c:?) + by 0x........: pthread_rwlock_unlock (pthread_rwlock_unlock.c:?) + by 0x........: pthread_rwlock_unlock (drd_pthread_intercepts.c:?) + by 0x........: main (tc12_rwl_trivial.c:29) +Your program just tried to execute an instruction that Valgrind +did not recognise. There are two possible reasons for this. +1. Your program has a bug and erroneously jumped to a non-code + location. If you are running Memcheck and you just saw a + warning about a bad jump, it's probably your program's fault. +2. The instruction is legitimate but Valgrind doesn't handle it, + i.e. it's Valgrind's fault. If you think this is the case or + you are not sure, please let us know and we'll try to fix it. +Either way, Valgrind will now raise a SIGILL signal which will +probably kill your program. + +Process terminating with default action of signal 4 (SIGILL) + Illegal opcode at address 0x........ + at 0x........: _xend (pthread_rwlock_unlock.c:?) + by 0x........: pthread_rwlock_unlock (pthread_rwlock_unlock.c:?) + by 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) ================================================= ./valgrind-old/gdbserver_tests/hgtls.stdoutB.diff ================================================= --- hgtls.stdoutB.exp 2015-08-08 02:31:41.369625532 +0100 +++ hgtls.stdoutB.out 2015-08-08 02:35:20.580507717 +0100 @@ -26,10 +26,10 @@ test static_extern tls_ip 0x........ ip 0x........ equal 1 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; -test so_extern tls_ip 0x........ ip 0x........ equal 1 +test so_extern tls_ip 0x........ ip 0x........ equal 0 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; -test so_extern tls_ip 0x........ ip 0x........ equal 1 +test so_extern tls_ip 0x........ ip 0x........ equal 0 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; test so_local tls_ip 0x........ ip 0x........ equal 1 ================================================= ./valgrind-old/helgrind/tests/tc12_rwl_trivial.stderr.diff ================================================= --- tc12_rwl_trivial.stderr.exp 2015-08-08 02:31:43.521585108 +0100 +++ tc12_rwl_trivial.stderr.out 2015-08-08 02:41:56.254075737 +0100 @@ -17,5 +17,31 @@ in frame #x, created by main (tc12_rwl_trivial.c:14) +vex amd64->IR: unhandled instruction bytes: 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ +vex amd64->IR: REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0 +vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x........ ESC=0F +vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0 +valgrind: Unrecognised instruction at address 0x......... + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) + by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) + by 0x........: main (tc12_rwl_trivial.c:29) +Your program just tried to execute an instruction that Valgrind +did not recognise. There are two possible reasons for this. +1. Your program has a bug and erroneously jumped to a non-code + location. If you are running Memcheck and you just saw a + warning about a bad jump, it's probably your program's fault. +2. The instruction is legitimate but Valgrind doesn't handle it, + i.e. it's Valgrind's fault. If you think this is the case or + you are not sure, please let us know and we'll try to fix it. +Either way, Valgrind will now raise a SIGILL signal which will +probably kill your program. + +Process terminating with default action of signal 4 (SIGILL) + Illegal opcode at address 0x........ + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) + by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) + by 0x........: main (tc12_rwl_trivial.c:29) ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) ================================================= ./valgrind-old/helgrind/tests/tc12_rwl_trivial.stderr.diff-darwin970 ================================================= --- tc12_rwl_trivial.stderr.exp-darwin970 2015-08-08 02:31:43.513585258 +0100 +++ tc12_rwl_trivial.stderr.out 2015-08-08 02:41:56.254075737 +0100 @@ -1,17 +1,47 @@ +---Thread-Announcement------------------------------------------ + Thread #x is the program's root thread +---------------------------------------------------------------- + Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock* (hg_intercepts.c:...) - by 0x........: main (tc12_rwl_trivial.c:35) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init* (hg_intercepts.c:...) - by 0x........: main (tc12_rwl_trivial.c:24) - -Thread #x's call to pthread_rwlock_unlock failed - with error code 22 (EINVAL: Invalid argument) - at 0x........: pthread_rwlock_unlock* (hg_intercepts.c:...) - by 0x........: main (tc12_rwl_trivial.c:35) + at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) + by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) + by 0x........: main (tc12_rwl_trivial.c:29) + Lock at 0x........ was first observed + at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) + by 0x........: pthread_rwlock_init (hg_intercepts.c:...) + by 0x........: main (tc12_rwl_trivial.c:18) + Address 0x........ is on thread #x's stack + in frame #x, created by main (tc12_rwl_trivial.c:14) + + +vex amd64->IR: unhandled instruction bytes: 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ +vex amd64->IR: REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0 +vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x........ ESC=0F +vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0 +valgrind: Unrecognised instruction at address 0x......... + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) + by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) + by 0x........: main (tc12_rwl_trivial.c:29) +Your program just tried to execute an instruction that Valgrind +did not recognise. There are two possible reasons for this. +1. Your program has a bug and erroneously jumped to a non-code + location. If you are running Memcheck and you just saw a + warning about a bad jump, it's probably your program's fault. +2. The instruction is legitimate but Valgrind doesn't handle it, + i.e. it's Valgrind's fault. If you think this is the case or + you are not sure, please let us know and we'll try to fix it. +Either way, Valgrind will now raise a SIGILL signal which will +probably kill your program. +Process terminating with default action of signal 4 (SIGILL) + Illegal opcode at address 0x........ + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) + by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) + by 0x........: main (tc12_rwl_trivial.c:29) -ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) +ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) ================================================= ./valgrind-old/helgrind/tests/tc12_rwl_trivial.stderr.diff-solaris ================================================= --- tc12_rwl_trivial.stderr.exp-solaris 2015-08-08 02:31:43.529584958 +0100 +++ tc12_rwl_trivial.stderr.out 2015-08-08 02:41:56.254075737 +0100 @@ -10,20 +10,38 @@ by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) by 0x........: main (tc12_rwl_trivial.c:29) Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init (hg_intercepts.c:...) - ... + at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) + by 0x........: pthread_rwlock_init (hg_intercepts.c:...) by 0x........: main (tc12_rwl_trivial.c:18) Address 0x........ is on thread #x's stack in frame #x, created by main (tc12_rwl_trivial.c:14) ----------------------------------------------------------------- - -Thread #x's call to pthread_rwlock_unlock failed - with error code 1 (EPERM: Operation not permitted) - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) +vex amd64->IR: unhandled instruction bytes: 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ +vex amd64->IR: REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0 +vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x........ ESC=0F +vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0 +valgrind: Unrecognised instruction at address 0x......... + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) by 0x........: main (tc12_rwl_trivial.c:29) +Your program just tried to execute an instruction that Valgrind +did not recognise. There are two possible reasons for this. +1. Your program has a bug and erroneously jumped to a non-code + location. If you are running Memcheck and you just saw a + warning about a bad jump, it's probably your program's fault. +2. The instruction is legitimate but Valgrind doesn't handle it, + i.e. it's Valgrind's fault. If you think this is the case or + you are not sure, please let us know and we'll try to fix it. +Either way, Valgrind will now raise a SIGILL signal which will +probably kill your program. +Process terminating with default action of signal 4 (SIGILL) + Illegal opcode at address 0x........ + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) + by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) + by 0x........: main (tc12_rwl_trivial.c:29) -ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) +ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) ================================================= ./valgrind-old/helgrind/tests/tc20_verifywrap.stderr.diff ================================================= --- tc20_verifywrap.stderr.exp 2015-08-08 02:31:43.511585296 +0100 +++ tc20_verifywrap.stderr.out 2015-08-08 02:42:12.401772470 +0100 @@ -172,81 +172,31 @@ declared at tc20_verifywrap.c:52, in frame #x of thread x -(1) no error on next line -(2) no error on next line -(3) ERROR on next line ----------------------------------------------------------------- - -Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:206) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_init (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:196) - Location 0x........ is 0 bytes inside local var "rwl2" - declared at tc20_verifywrap.c:53, in frame #x of thread x - - -(4) no error on next line -(5) no error on next line -(6) no error on next line -(7) no error on next line -(8) ERROR on next line ----------------------------------------------------------------- - -Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) +vex amd64->IR: unhandled instruction bytes: 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ +vex amd64->IR: REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0 +vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x........ ESC=0F +vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0 +valgrind: Unrecognised instruction at address 0x......... + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:227) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_init (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:196) - Location 0x........ is 0 bytes inside local var "rwl2" - declared at tc20_verifywrap.c:53, in frame #x of thread x - - - ----------------- sem_* ---------------- - ----------------------------------------------------------------- - -Thread #x's call to sem_init failed - with error code 22 (EINVAL: Invalid argument) - at 0x........: sem_init_WRK (hg_intercepts.c:...) - by 0x........: sem_init@* (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:248) - + by 0x........: main (tc20_verifywrap.c:189) +Your program just tried to execute an instruction that Valgrind +did not recognise. There are two possible reasons for this. +1. Your program has a bug and erroneously jumped to a non-code + location. If you are running Memcheck and you just saw a + warning about a bad jump, it's probably your program's fault. +2. The instruction is legitimate but Valgrind doesn't handle it, + i.e. it's Valgrind's fault. If you think this is the case or + you are not sure, please let us know and we'll try to fix it. +Either way, Valgrind will now raise a SIGILL signal which will +probably kill your program. -FIXME: can't figure out how to verify wrap of sem_destroy - ----------------------------------------------------------------- - -Thread #x: Bug in libpthread: sem_wait succeeded on semaphore without prior sem_post - at 0x........: sem_wait_WRK (hg_intercepts.c:...) - by 0x........: sem_wait (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:262) - ----------------------------------------------------------------- - -Thread #x's call to sem_post failed - with error code 22 (EINVAL: Invalid argument) - at 0x........: sem_post_WRK (hg_intercepts.c:...) - by 0x........: sem_post (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:265) - - -FIXME: can't figure out how to verify wrap of sem_post - - ------------- dealloc of mem holding locks ------------ - ----------------------------------------------------------------- - -Thread #x: Exiting thread still holds 1 lock +Process terminating with default action of signal 4 (SIGILL) + Illegal opcode at address 0x........ ================================================= ./valgrind-old/helgrind/tests/tc20_verifywrap.stderr.diff-glibc-2.18 ================================================= --- tc20_verifywrap.stderr.exp-glibc-2.18 2015-08-08 02:31:43.548584601 +0100 +++ tc20_verifywrap.stderr.out 2015-08-08 02:42:12.401772470 +0100 @@ -57,6 +57,14 @@ ---------------------------------------------------------------- +Thread #x's call to pthread_mutex_destroy failed + with error code 16 (EBUSY: Device or resource busy) + at 0x........: mutex_destroy_WRK (hg_intercepts.c:...) + by 0x........: pthread_mutex_destroy (hg_intercepts.c:...) + by 0x........: main (tc20_verifywrap.c:112) + +---------------------------------------------------------------- + Thread #x's call to pthread_mutex_lock failed with error code 22 (EINVAL: Invalid argument) at 0x........: mutex_lock_WRK (hg_intercepts.c:...) @@ -156,80 +164,39 @@ at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:189) - Lock at 0x........ was first observed + Lock at 0x........ was first observed at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_init (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:188) + Location 0x........ is 0 bytes inside local var "rwl" + declared at tc20_verifywrap.c:52, in frame #x of thread x -(1) no error on next line -(2) no error on next line -(3) ERROR on next line ----------------------------------------------------------------- -Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:206) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_init (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:196) - -(4) no error on next line -(5) no error on next line -(6) no error on next line -(7) no error on next line -(8) ERROR on next line ----------------------------------------------------------------- - -Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) +vex amd64->IR: unhandled instruction bytes: 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ +vex amd64->IR: REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0 +vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x........ ESC=0F +vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0 +valgrind: Unrecognised instruction at address 0x......... + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:227) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_init (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:196) - - ----------------- sem_* ---------------- - ----------------------------------------------------------------- - -Thread #x's call to sem_init failed - with error code 22 (EINVAL: Invalid argument) - at 0x........: sem_init_WRK (hg_intercepts.c:...) - by 0x........: sem_init@* (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:243) - - -FIXME: can't figure out how to verify wrap of sem_destroy - ----------------------------------------------------------------- - -Thread #x: Bug in libpthread: sem_wait succeeded on semaphore without prior sem_post - at 0x........: sem_wait_WRK (hg_intercepts.c:...) - by 0x........: sem_wait (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:257) - ----------------------------------------------------------------- - -Thread #x's call to sem_post failed - with error code 22 (EINVAL: Invalid argument) - at 0x........: sem_post_WRK (hg_intercepts.c:...) - by 0x........: sem_post (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:260) - - -FIXME: can't figure out how to verify wrap of sem_post - - ------------- dealloc of mem holding locks ------------ ================================================= ./valgrind-old/helgrind/tests/tc20_verifywrap.stderr.diff-mips32 ================================================= --- tc20_verifywrap.stderr.exp-mips32 2015-08-08 02:31:43.522585089 +0100 +++ tc20_verifywrap.stderr.out 2015-08-08 02:42:12.401772470 +0100 @@ -13,7 +13,6 @@ Thread #x was created ... - by 0x........: pthread_create_WRK (hg_intercepts.c:...) by 0x........: pthread_create@* (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:81) @@ -28,14 +27,13 @@ at 0x........: racy_child (tc20_verifywrap.c:39) by 0x........: mythread_wrapper (hg_intercepts.c:...) ... - -Location 0x........ is 0 bytes inside global var "unprotected" -declared at tc20_verifywrap.c:32 + Location 0x........ is 0 bytes inside global var "unprotected" + declared at tc20_verifywrap.c:32 ---------------------------------------------------------------- Thread #x's call to pthread_join failed - with error code 45 (EDEADLK: Resource deadlock would occur) + with error code 35 (EDEADLK: Resource deadlock would occur) at 0x........: pthread_join_WRK (hg_intercepts.c:...) by 0x........: pthread_join (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:88) @@ -46,7 +44,7 @@ ---------------------------------------------------------------- Thread #x's call to pthread_mutex_init failed - with error code 122 (EOPNOTSUPP: Operation not supported on transport endpoint) + with error code 95 (EOPNOTSUPP: Operation not supported on transport endpoint) at 0x........: pthread_mutex_init (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:102) @@ -166,72 +164,39 @@ at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:189) - Lock at 0x........ was first observed + Lock at 0x........ was first observed at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_init (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:188) + Location 0x........ is 0 bytes inside local var "rwl" + declared at tc20_verifywrap.c:52, in frame #x of thread x -(1) no error on next line -(2) no error on next line -(3) ERROR on next line ----------------------------------------------------------------- - -Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:206) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_init (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:196) - -(4) no error on next line -(5) no error on next line -(6) no error on next line -(7) no error on next line -(8) ERROR on next line ----------------------------------------------------------------- -Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) +vex amd64->IR: unhandled instruction bytes: 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ +vex amd64->IR: REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0 +vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x........ ESC=0F +vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0 +valgrind: Unrecognised instruction at address 0x......... + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:227) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_init (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:196) - - ----------------- sem_* ---------------- - ----------------------------------------------------------------- - -Thread #x's call to sem_init failed - with error code 22 (EINVAL: Invalid argument) - at 0x........: sem_init_WRK (hg_intercepts.c:...) - by 0x........: sem_init@* (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:243) - - -FIXME: can't figure out how to verify wrap of sem_destroy - ================================================= ./valgrind-old/helgrind/tests/tc20_verifywrap.stderr.diff-mips32-b ================================================= --- tc20_verifywrap.stderr.exp-mips32-b 2015-08-08 02:31:43.520585127 +0100 +++ tc20_verifywrap.stderr.out 2015-08-08 02:42:12.401772470 +0100 @@ -13,7 +13,6 @@ Thread #x was created ... - by 0x........: pthread_create_WRK (hg_intercepts.c:...) by 0x........: pthread_create@* (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:81) @@ -28,14 +27,13 @@ at 0x........: racy_child (tc20_verifywrap.c:39) by 0x........: mythread_wrapper (hg_intercepts.c:...) ... - -Location 0x........ is 0 bytes inside global var "unprotected" -declared at tc20_verifywrap.c:32 + Location 0x........ is 0 bytes inside global var "unprotected" + declared at tc20_verifywrap.c:32 ---------------------------------------------------------------- Thread #x's call to pthread_join failed - with error code 45 (EDEADLK: Resource deadlock would occur) + with error code 35 (EDEADLK: Resource deadlock would occur) at 0x........: pthread_join_WRK (hg_intercepts.c:...) by 0x........: pthread_join (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:88) @@ -46,7 +44,7 @@ ---------------------------------------------------------------- Thread #x's call to pthread_mutex_init failed - with error code 122 (EOPNOTSUPP: Operation not supported on transport endpoint) + with error code 95 (EOPNOTSUPP: Operation not supported on transport endpoint) at 0x........: pthread_mutex_init (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:102) @@ -166,80 +164,39 @@ at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:189) - Lock at 0x........ was first observed + Lock at 0x........ was first observed at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_init (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:188) + Location 0x........ is 0 bytes inside local var "rwl" + declared at tc20_verifywrap.c:52, in frame #x of thread x -(1) no error on next line -(2) no error on next line -(3) ERROR on next line ----------------------------------------------------------------- - -Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:206) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_init (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:196) - -(4) no error on next line -(5) no error on next line -(6) no error on next line -(7) no error on next line -(8) ERROR on next line ----------------------------------------------------------------- -Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) +vex amd64->IR: unhandled instruction bytes: 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ +vex amd64->IR: REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0 +vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x........ ESC=0F +vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0 +valgrind: Unrecognised instruction at address 0x......... + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:227) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_init (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:196) - - ----------------- sem_* ---------------- - ----------------------------------------------------------------- - -Thread #x's call to sem_init failed - with error code 22 (EINVAL: Invalid argument) - at 0x........: sem_init_WRK (hg_intercepts.c:...) - by 0x........: sem_init@* (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:243) - - -FIXME: can't figure out how to verify wrap of sem_destroy - ================================================= ./valgrind-old/helgrind/tests/tc20_verifywrap.stderr.diff-s390x ================================================= --- tc20_verifywrap.stderr.exp-s390x 2015-08-08 02:31:43.541584733 +0100 +++ tc20_verifywrap.stderr.out 2015-08-08 02:42:12.401772470 +0100 @@ -13,7 +13,6 @@ Thread #x was created ... - by 0x........: pthread_create_WRK (hg_intercepts.c:...) by 0x........: pthread_create@* (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:81) @@ -28,9 +27,8 @@ at 0x........: racy_child (tc20_verifywrap.c:39) by 0x........: mythread_wrapper (hg_intercepts.c:...) ... - -Location 0x........ is 0 bytes inside global var "unprotected" -declared at tc20_verifywrap.c:32 + Location 0x........ is 0 bytes inside global var "unprotected" + declared at tc20_verifywrap.c:32 ---------------------------------------------------------------- @@ -166,72 +164,39 @@ at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:189) - Lock at 0x........ was first observed + Lock at 0x........ was first observed at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_init (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:188) + Location 0x........ is 0 bytes inside local var "rwl" + declared at tc20_verifywrap.c:52, in frame #x of thread x -(1) no error on next line -(2) no error on next line -(3) ERROR on next line ----------------------------------------------------------------- - -Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:206) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_init (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:196) - -(4) no error on next line -(5) no error on next line -(6) no error on next line -(7) no error on next line -(8) ERROR on next line ----------------------------------------------------------------- -Thread #x unlocked a not-locked lock at 0x........ - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) +vex amd64->IR: unhandled instruction bytes: 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ 0x........ +vex amd64->IR: REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0 +vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x........ ESC=0F +vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0 +valgrind: Unrecognised instruction at address 0x......... + ... + by 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:227) - Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_init (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:196) - - ----------------- sem_* ---------------- - ----------------------------------------------------------------- - -Thread #x's call to sem_init failed - with error code 22 (EINVAL: Invalid argument) - at 0x........: sem_init_WRK (hg_intercepts.c:...) - by 0x........: sem_init@* (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:243) - - -FIXME: can't figure out how to verify wrap of sem_destroy - ----------------------------------------------------------------- - -Thread #x: Bug in libpthread: sem_wait succeeded on semaphore without prior sem_post - at 0x........: sem_wait_WRK (hg_intercepts.c:...) - by 0x........: sem_wait (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:257) - - -FIXME: can't figure out how to verify wrap of sem_post - - ------------- dealloc of mem holding locks ------------ - ----------------------------------------------------------------- + by 0x........: main (tc20_verifywrap.c:189) ================================================= ./valgrind-old/helgrind/tests/tc20_verifywrap.stderr.diff-solaris ================================================= --- tc20_verifywrap.stderr.exp-solaris 2015-08-08 02:31:43.517585183 +0100 +++ tc20_verifywrap.stderr.out 2015-08-08 02:42:12.401772470 +0100 @@ -33,7 +33,7 @@ ---------------------------------------------------------------- Thread #x's call to pthread_join failed - with error code 45 (EDEADLK: Resource deadlock would occur) + with error code 35 (EDEADLK: Resource deadlock would occur) at 0x........: pthread_join_WRK (hg_intercepts.c:...) by 0x........: pthread_join (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:88) @@ -43,8 +43,8 @@ ---------------------------------------------------------------- -Thread #x's call to mutex_init failed - with error code 22 (EINVAL: Invalid argument) +Thread #x's call to pthread_mutex_init failed + with error code 95 (EOPNOTSUPP: Operation not supported on transport endpoint) at 0x........: pthread_mutex_init (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:102) @@ -57,8 +57,16 @@ ---------------------------------------------------------------- +Thread #x's call to pthread_mutex_destroy failed + with error code 16 (EBUSY: Device or resource busy) + at 0x........: mutex_destroy_WRK (hg_intercepts.c:...) + by 0x........: pthread_mutex_destroy (hg_intercepts.c:...) + by 0x........: main (tc20_verifywrap.c:112) + +---------------------------------------------------------------- + Thread #x's call to pthread_mutex_lock failed - with error code 1 (EPERM: Operation not permitted) + with error code 22 (EINVAL: Invalid argument) at 0x........: mutex_lock_WRK (hg_intercepts.c:...) by 0x........: pthread_mutex_lock (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:118) @@ -66,7 +74,7 @@ ---------------------------------------------------------------- Thread #x's call to pthread_mutex_trylock failed - with error code 1 (EPERM: Operation not permitted) + with error code 22 (EINVAL: Invalid argument) at 0x........: mutex_trylock_WRK (hg_intercepts.c:...) by 0x........: pthread_mutex_trylock (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:126) @@ -74,7 +82,7 @@ ---------------------------------------------------------------- Thread #x's call to pthread_mutex_timedlock failed - with error code 1 (EPERM: Operation not permitted) + with error code 22 (EINVAL: Invalid argument) at 0x........: mutex_timedlock_WRK (hg_intercepts.c:...) by 0x........: pthread_mutex_timedlock (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:131) @@ -89,7 +97,7 @@ ---------------------------------------------------------------- Thread #x's call to pthread_mutex_unlock failed - with error code 1 (EPERM: Operation not permitted) + with error code 22 (EINVAL: Invalid argument) at 0x........: mutex_unlock_WRK (hg_intercepts.c:...) by 0x........: pthread_mutex_unlock (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:135) @@ -142,7 +150,7 @@ ---------------------------------------------------------------- Thread #x's call to pthread_cond_timedwait failed - with error code 1 (EPERM: Operation not permitted) + with error code 22 (EINVAL: Invalid argument) at 0x........: pthread_cond_timedwait_WRK (hg_intercepts.c:...) by 0x........: pthread_cond_timedwait@* (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:175) @@ -157,97 +165,38 @@ by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:189) Lock at 0x........ was first observed - at 0x........: pthread_rwlock_init (hg_intercepts.c:...) - ... + at 0x........: pthread_rwlock_init_WRK (hg_intercepts.c:...) + by 0x........: pthread_rwlock_init (hg_intercepts.c:...) by 0x........: main (tc20_verifywrap.c:188) - Location 0x........ is 0 bytes inside rwl.__pthread_rwlock_readers, + Location 0x........ is 0 bytes inside local var "rwl" declared at tc20_verifywrap.c:52, in frame #x of thread x ----------------------------------------------------------------- - -Thread #x's call to pthread_rwlock_unlock failed - with error code 1 (EPERM: Operation not permitted) - at 0x........: pthread_rwlock_unlock_WRK (hg_intercepts.c:...) - by 0x........: pthread_rwlock_unlock (hg_intercepts.c:...) - by 0x........: main (tc20_verifywrap.c:189) - -(1) no error on next line -(2) no error on next line