1 2 before lock #1 3 before lock #2 4 before lock #3 5 before unlock #1 6 before unlock #2 7 before unlock #3 8 before unlock #4 9 ---Thread-Announcement------------------------------------------ 10 11 Thread #x is the program's root thread 12 13 ---------------------------------------------------------------- 14 15 Thread #x unlocked a not-locked lock at 0x........ 16 at 0x........: pthread_mutex_unlock (hg_intercepts.c:...) 17 by 0x........: nearly_main (tc10_rec_lock.c:42) 18 by 0x........: main (tc10_rec_lock.c:47) 19 Lock at 0x........ was first observed 20 at 0x........: pthread_mutex_init (hg_intercepts.c:...) 21 by 0x........: nearly_main (tc10_rec_lock.c:24) 22 by 0x........: main (tc10_rec_lock.c:47) 23 24 ---------------------------------------------------------------- 25 26 Thread #x's call to pthread_mutex_unlock failed 27 with error code 1 (EPERM: Operation not permitted) 28 at 0x........: pthread_mutex_unlock (hg_intercepts.c:...) 29 by 0x........: nearly_main (tc10_rec_lock.c:42) 30 by 0x........: main (tc10_rec_lock.c:47) 31 32 33 ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) 34