ThreadSanitizer: data race resolver.c:3384 in findname
- Binary:
named
- Commit: d0bc45be
- Tests: mkeys
WARNING: ThreadSanitizer: data race (pid=54848)
Read of size 8 at 0x7b6800050398 by thread T5:
#0 findname resolver.c:3384 (libdns.1505.dylib:x86_64+0x13bc57)
#1 fctx_try resolver.c:3663 (libdns.1505.dylib:x86_64+0x137192)
#2 fctx_start resolver.c:4650 (libdns.1505.dylib:x86_64+0x1300d3)
#3 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Previous write of size 8 at 0x7b6800050398 by thread T8 (mutexes: read M670890401489730024, write M1043563511172569464):
#0 fctx_join resolver.c:4705 (libdns.1505.dylib:x86_64+0x12fcd0)
#1 dns_resolver_createfetch resolver.c:10638 (libdns.1505.dylib:x86_64+0x12cbe9)
#2 dotat server.c:6978 (named:x86_64+0x100026d80)
#3 dns_keytable_forall keytable.c:901 (libdns.1505.dylib:x86_64+0x5c0bb)
#4 tat_timer_tick server.c:7036 (named:x86_64+0x10001fc27)
#5 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Location is heap block of size 1449 at 0x7b680004fe00 allocated by thread T8:
#0 malloc <null>:5828960 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e65a)
#1 default_memalloc mem.c:685 (libisc.1504.dylib:x86_64+0x21bbf)
#2 isc___mem_allocate mem.c:598 (libisc.1504.dylib:x86_64+0x22a1c)
#3 isc___mem_get mem.c:2387 (libisc.1504.dylib:x86_64+0x22037)
#4 isc__mem_get mem.c:2365 (libisc.1504.dylib:x86_64+0x1cd3e)
#5 dns_resolver_createfetch resolver.c:4748 (libdns.1505.dylib:x86_64+0x12cc41)
#6 dotat server.c:6978 (named:x86_64+0x100026d80)
#7 dns_keytable_forall keytable.c:901 (libdns.1505.dylib:x86_64+0x5c0bb)
#8 tat_timer_tick server.c:7036 (named:x86_64+0x10001fc27)
#9 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Mutex M670890401489730024 is already destroyed.
Mutex M1043563511172569464 is already destroyed.
Thread T5 (tid=1518630, running) created by main thread at:
#0 pthread_create <null>:5829008 (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 main main.c:902 (named:x86_64+0x10000dfa6)
Thread T8 (tid=1518633, running) created by main thread at:
#0 pthread_create <null>:5829008 (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 main main.c:902 (named:x86_64+0x10000dfa6)
SUMMARY: ThreadSanitizer: data race resolver.c:3384 in findname