ThreadSanitizer: data race adb.c:4759 in dns_adb_beginudpfetch
Binary: named
Commit: c5b6f215
Tests: fetchlimit
WARNING: ThreadSanitizer: data race (pid=75704)
Write of size 4 at 0x7b4400029f70 by thread T6 (mutexes: write M533812620407384976):
#0 dns_adb_beginudpfetch adb.c:4759 (libdns.1503.dylib:x86_64+0x14b1b)
#1 fctx_query resolver.c:2140 (libdns.1503.dylib:x86_64+0x139ffb)
#2 fctx_try resolver.c:4129 (libdns.1503.dylib:x86_64+0x136b61)
#3 fctx_start resolver.c:4647 (libdns.1503.dylib:x86_64+0x12f383)
#4 run task.c:1134 (libisc.1503.dylib:x86_64+0x2c9e1)
Previous read of size 4 at 0x7b4400029f70 by thread T7:
#0 dns_adbentry_overquota adb.c:4746 (libdns.1503.dylib:x86_64+0x14a22)
#1 fctx_try resolver.c:4039 (libdns.1503.dylib:x86_64+0x136a47)
#2 fctx_start resolver.c:4647 (libdns.1503.dylib:x86_64+0x12f383)
#3 run task.c:1134 (libisc.1503.dylib:x86_64+0x2c9e1)
Location is heap block of size 281 at 0x7b4400029f40 allocated by thread T5:
#0 malloc <null>:6890480 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e65a)
#1 default_memalloc mem.c:685 (libisc.1503.dylib:x86_64+0x17ae1)
#2 import_rdataset adb.c:931 (libdns.1503.dylib:x86_64+0x172ea)
#3 dbfind_name adb.c:3678 (libdns.1503.dylib:x86_64+0xdb62)
#4 dns_adb_createfind adb.c:3043 (libdns.1503.dylib:x86_64+0xc0d9)
#5 findname resolver.c:3371 (libdns.1503.dylib:x86_64+0x13ae8b)
#6 fctx_try resolver.c:3660 (libdns.1503.dylib:x86_64+0x136402)
#7 fctx_start resolver.c:4647 (libdns.1503.dylib:x86_64+0x12f383)
#8 run task.c:1134 (libisc.1503.dylib:x86_64+0x2c9e1)
Mutex M533812620407384976 is already destroyed.
Thread T6 (tid=4791627, running) created by main thread at:
#0 pthread_create <null>:6890528 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1503.dylib:x86_64+0x46d1c)
#2 main main.c:902 (named:x86_64+0x10000ad16)
Thread T7 (tid=4791628, running) created by main thread at:
#0 pthread_create <null>:6890528 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1503.dylib:x86_64+0x46d1c)
#2 main main.c:902 (named:x86_64+0x10000ad16)
Thread T5 (tid=4791626, running) created by main thread at:
#0 pthread_create <null>:6890432 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1503.dylib:x86_64+0x46d1c)
#2 main main.c:902 (named:x86_64+0x10000ad16)
SUMMARY: ThreadSanitizer: data race adb.c:4759 in dns_adb_beginudpfetch