1---Thread-Announcement------------------------------------------
2
3Thread #x was created
4   ...
5   by 0x........: pthread_create_WRK (hg_intercepts.c:...)
6   by 0x........: pthread_create@* (hg_intercepts.c:...)
7   by 0x........: main (locked_vs_unlocked2.c:61)
8
9---Thread-Announcement------------------------------------------
10
11Thread #x was created
12   ...
13   by 0x........: pthread_create_WRK (hg_intercepts.c:...)
14   by 0x........: pthread_create@* (hg_intercepts.c:...)
15   by 0x........: main (locked_vs_unlocked2.c:62)
16
17----------------------------------------------------------------
18
19Lock at 0x........ was first observed
20   at 0x........: pthread_mutex_init (hg_intercepts.c:...)
21   by 0x........: main (locked_vs_unlocked2.c:58)
22
23Lock at 0x........ was first observed
24   at 0x........: pthread_mutex_init (hg_intercepts.c:...)
25   by 0x........: main (locked_vs_unlocked2.c:59)
26
27Lock at 0x........ was first observed
28   at 0x........: pthread_mutex_init (hg_intercepts.c:...)
29   by 0x........: main (locked_vs_unlocked2.c:57)
30
31Possible data race during write of size 4 at 0x........ by thread #x
32Locks held: 2, at addresses 0x........ 0x........
33   at 0x........: child_fn2 (locked_vs_unlocked2.c:45)
34   by 0x........: mythread_wrapper (hg_intercepts.c:...)
35   ...
36
37This conflicts with a previous write of size 4 by thread #x
38Locks held: 2, at address 0x........ (and 1 that can't be shown)
39   at 0x........: child_fn1 (locked_vs_unlocked2.c:29)
40   by 0x........: mythread_wrapper (hg_intercepts.c:...)
41   ...
42
43