ThreadSanitizer: data race dig.c:2542 in main
- Binary:
dig
- Commit: d0bc45be
- Tests: zero
WARNING: ThreadSanitizer: data race (pid=22061)
Read of size 8 at 0x00010a398d30 by main thread:
#0 main dig.c:2542 (dig:x86_64+0x100007bab)
Previous write of size 8 at 0x00010a398d30 by thread T1 (mutexes: write M1112):
#0 query_finished dig.c:2412 (dig:x86_64+0x1000036c6)
#1 check_if_done dighost.c:1545 (dig:x86_64+0x100010d8a)
#2 start_lookup dighost.c:1708 (dig:x86_64+0x10000e4e2)
#3 recv_done dighost.c:1729 (dig:x86_64+0x1000159dc)
#4 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Location is global 'batchname' at 0x00010a398d30 (dig+0x000100021d30)
Mutex M1112 (0x00010a3986e8) created at:
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2b9a3)
#1 isc__mutex_init mutex.c:286 (libisc.1504.dylib:x86_64+0x58ca9)
#2 setup_libs dighost.c:1409 (dig:x86_64+0x10000d5b5)
#3 dig_setup dig.c:2504 (dig:x86_64+0x100001344)
#4 main dig.c:2556 (dig:x86_64+0x100007aae)
Thread T1 (tid=1727056, running) created by main thread at:
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58db1)
#2 isc_taskmgr_create task.c:1410 (libisc.1504.dylib:x86_64+0x3b340)
#3 setup_libs dighost.c:1382 (dig:x86_64+0x10000d448)
#4 dig_setup dig.c:2504 (dig:x86_64+0x100001344)
#5 main dig.c:2556 (dig:x86_64+0x100007aae)
SUMMARY: ThreadSanitizer: data race dig.c:2542 in main