ThreadSanitizer: data race time.c:170 in isc_time_nowplusinterval
Binary: named
Commit: e2561145
Tests: dnssec
WARNING: ThreadSanitizer: data race (pid=59372)
Write of size 4 at 0x7b780002ba38 by thread T4 (mutexes: write M783199140535515160):
#0 isc_time_nowplusinterval time.c:170 (libisc.1504.dylib:x86_64+0x578dd)
#1 dns_zone_refresh zone.c:10993 (libdns.1505.dylib:x86_64+0x1a4e1b)
#2 dns_zone_notifyreceive zone.c:14176 (libdns.1505.dylib:x86_64+0x1a6e3b)
#3 ns_notify_start notify.c:153 (libns.1502.dylib:x86_64+0xf602)
#4 ns__client_request client.c:2174 (libns.1502.dylib:x86_64+0x5e1f)
#5 udp_recv_cb udp.c:318 (libisc.1504.dylib:x86_64+0x2aa61)
#6 uv__udp_io <null>:4729328 (libuv.1.dylib:x86_64+0x13244)
Previous read of size 8 at 0x7b780002ba38 by thread T8:
#0 zone_settimer zone.c:13756 (libdns.1505.dylib:x86_64+0x1a2011)
#1 zone_maintenance zone.c:10848 (libdns.1505.dylib:x86_64+0x1cba9f)
#2 zone_timer zone.c:13673 (libdns.1505.dylib:x86_64+0x1abb75)
#3 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be21)
Location is heap block of size 2929 at 0x7b780002b800 allocated by thread T5:
#0 malloc <null>:4729360 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e65a)
#1 default_memalloc mem.c:685 (libisc.1504.dylib:x86_64+0x21b8f)
#2 isc___mem_allocate mem.c:598 (libisc.1504.dylib:x86_64+0x229ec)
#3 isc___mem_get mem.c:2387 (libisc.1504.dylib:x86_64+0x22007)
#4 isc__mem_get mem.c:2365 (libisc.1504.dylib:x86_64+0x1cd0e)
#5 dns_zone_create zone.c:905 (libdns.1505.dylib:x86_64+0x1960a4)
#6 dns_zonemgr_createzone zone.c:16954 (libdns.1505.dylib:x86_64+0x1ab63a)
#7 configure_zone server.c:6326 (named:x86_64+0x10003763c)
#8 configure_view server.c:4026 (named:x86_64+0x100028fa5)
#9 load_configuration server.c:8917 (named:x86_64+0x1000243e9)
#10 run_server server.c:9639 (named:x86_64+0x10001100d)
#11 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be21)
Mutex M783199140535515160 is already destroyed.
Thread T4 (tid=3954153, running) created by main thread at:
#0 pthread_create <null>:4729408 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58d81)
#2 isc_nm_start netmgr.c:152 (libisc.1504.dylib:x86_64+0x23b54)
#3 main main.c:895 (named:x86_64+0x10000debe)
Thread T8 (tid=3954157, running) created by main thread at:
#0 pthread_create <null>:4729408 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58d81)
#2 isc_taskmgr_create task.c:1410 (libisc.1504.dylib:x86_64+0x3b310)
#3 main main.c:902 (named:x86_64+0x10000df16)
Thread T5 (tid=3954154, running) created by main thread at:
#0 pthread_create <null>:4729312 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58d81)
#2 isc_taskmgr_create task.c:1410 (libisc.1504.dylib:x86_64+0x3b310)
#3 main main.c:902 (named:x86_64+0x10000df16)
SUMMARY: ThreadSanitizer: data race time.c:170 in isc_time_nowplusinterval