1
2---Thread-Announcement------------------------------------------
3
4Thread #x was created
5   ...
6   by 0x........: pthread_create@* (hg_intercepts.c:...)
7   by 0x........: main (hg02_deadlock.c:36)
8
9----------------------------------------------------------------
10
11Thread #x: lock order "0x........ before 0x........" violated
12
13Observed (incorrect) order is: acquisition of lock at 0x........
14   at 0x........: mutex_lock_WRK (hg_intercepts.c:...)
15   by 0x........: pthread_mutex_lock (hg_intercepts.c:...)
16   by 0x........: t2 (hg02_deadlock.c:19)
17   by 0x........: mythread_wrapper (hg_intercepts.c:...)
18   ...
19
20 followed by a later acquisition of lock at 0x........
21   at 0x........: mutex_lock_WRK (hg_intercepts.c:...)
22   by 0x........: pthread_mutex_lock (hg_intercepts.c:...)
23   by 0x........: t2 (hg02_deadlock.c:20)
24   by 0x........: mythread_wrapper (hg_intercepts.c:...)
25   ...
26
27Required order was established by acquisition of lock at 0x........
28   at 0x........: mutex_lock_WRK (hg_intercepts.c:...)
29   by 0x........: pthread_mutex_lock (hg_intercepts.c:...)
30   by 0x........: t1 (hg02_deadlock.c:9)
31   by 0x........: mythread_wrapper (hg_intercepts.c:...)
32   ...
33
34 followed by a later acquisition of lock at 0x........
35   at 0x........: mutex_lock_WRK (hg_intercepts.c:...)
36   by 0x........: pthread_mutex_lock (hg_intercepts.c:...)
37   by 0x........: t1 (hg02_deadlock.c:10)
38   by 0x........: mythread_wrapper (hg_intercepts.c:...)
39   ...
40
41 Lock at 0x........ was first observed
42   at 0x........: mutex_lock_WRK (hg_intercepts.c:...)
43   by 0x........: pthread_mutex_lock (hg_intercepts.c:...)
44   by 0x........: main (hg02_deadlock.c:32)
45 Address 0x........ is 0 bytes inside data symbol "m1"
46
47 Lock at 0x........ was first observed
48   at 0x........: mutex_lock_WRK (hg_intercepts.c:...)
49   by 0x........: pthread_mutex_lock (hg_intercepts.c:...)
50   by 0x........: t1 (hg02_deadlock.c:10)
51   by 0x........: mythread_wrapper (hg_intercepts.c:...)
52   ...
53 Address 0x........ is 0 bytes inside data symbol "m2"
54
55
56
57ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
58