1
2before lock #1
3before lock #2
4before lock #3
5before unlock #1
6before unlock #2
7before unlock #3
8before unlock #4
9---Thread-Announcement------------------------------------------
10
11Thread #x is the program's root thread
12
13----------------------------------------------------------------
14
15Thread #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 Address 0x........ is on thread #x's stack
24 in frame #x, created by nearly_main (tc10_rec_lock.c:15)
25
26
27----------------------------------------------------------------
28
29Thread #x's call to pthread_mutex_unlock failed
30   with error code 1 (EPERM: Operation not permitted)
31   at 0x........: pthread_mutex_unlock (hg_intercepts.c:...)
32   by 0x........: nearly_main (tc10_rec_lock.c:42)
33   by 0x........: main (tc10_rec_lock.c:47)
34
35
36ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
37