1 2 ---Thread-Announcement------------------------------------------ 3 4 Thread #x is the program's root thread 5 6 ---Thread-Announcement------------------------------------------ 7 8 Thread #x was created 9 ... 10 by 0x........: pthread_create_WRK (hg_intercepts.c:...) 11 by 0x........: pthread_create@* (hg_intercepts.c:...) 12 by 0x........: main (tc06_two_races.c:26) 13 14 ---------------------------------------------------------------- 15 16 Possible data race during read of size 4 at 0x........ by thread #x 17 Locks held: none 18 at 0x........: main (tc06_two_races.c:31) 19 20 This conflicts with a previous write of size 4 by thread #x 21 Locks held: none 22 at 0x........: child_fn (tc06_two_races.c:14) 23 by 0x........: mythread_wrapper (hg_intercepts.c:...) 24 ... 25 26 Location 0x........ is 0 bytes inside global var "unprot1" 27 declared at tc06_two_races.c:9 28 29 ---------------------------------------------------------------- 30 31 Possible data race during write of size 4 at 0x........ by thread #x 32 Locks held: none 33 at 0x........: main (tc06_two_races.c:31) 34 35 This conflicts with a previous write of size 4 by thread #x 36 Locks held: none 37 at 0x........: child_fn (tc06_two_races.c:14) 38 by 0x........: mythread_wrapper (hg_intercepts.c:...) 39 ... 40 41 Location 0x........ is 0 bytes inside global var "unprot1" 42 declared at tc06_two_races.c:9 43 44 ---------------------------------------------------------------- 45 46 Possible data race during read of size 4 at 0x........ by thread #x 47 Locks held: none 48 at 0x........: main (tc06_two_races.c:35) 49 50 This conflicts with a previous write of size 4 by thread #x 51 Locks held: none 52 at 0x........: child_fn (tc06_two_races.c:18) 53 by 0x........: mythread_wrapper (hg_intercepts.c:...) 54 ... 55 56 Location 0x........ is 0 bytes inside global var "unprot2" 57 declared at tc06_two_races.c:9 58 59 ---------------------------------------------------------------- 60 61 Possible data race during write of size 4 at 0x........ by thread #x 62 Locks held: none 63 at 0x........: main (tc06_two_races.c:35) 64 65 This conflicts with a previous write of size 4 by thread #x 66 Locks held: none 67 at 0x........: child_fn (tc06_two_races.c:18) 68 by 0x........: mythread_wrapper (hg_intercepts.c:...) 69 ... 70 71 Location 0x........ is 0 bytes inside global var "unprot2" 72 declared at tc06_two_races.c:9 73 74 75 ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0) 76