1 2 Thread #x was created 3 ... 4 by 0x........: pthread_create@* (hg_intercepts.c:...) 5 by 0x........: main (hg02_deadlock.c:36) 6 7 Thread #x: lock order "0x........ before 0x........" violated 8 at 0x........: pthread_mutex_lock (hg_intercepts.c:...) 9 by 0x........: t2 (hg02_deadlock.c:20) 10 by 0x........: mythread_wrapper (hg_intercepts.c:...) 11 ... 12 Required order was established by acquisition of lock at 0x........ 13 at 0x........: pthread_mutex_lock (hg_intercepts.c:...) 14 by 0x........: t1 (hg02_deadlock.c:9) 15 by 0x........: mythread_wrapper (hg_intercepts.c:...) 16 ... 17 followed by a later acquisition of lock at 0x........ 18 at 0x........: pthread_mutex_lock (hg_intercepts.c:...) 19 by 0x........: t1 (hg02_deadlock.c:10) 20 by 0x........: mythread_wrapper (hg_intercepts.c:...) 21 ... 22 23 24 ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) 25