ThreadSanitizer: data race rbtdb.c:7568 in issecure
Binary: named
Commit: d744a6fc
Tests: autosign
WARNING: ThreadSanitizer: data race (pid=95328)
Read of size 8 at 0x7b5c00031600 by thread T1 (mutexes: read M6328084555044064):
#0 issecure rbtdb.c:7568 (libdns.1505.dylib:x86_64+0xbc0cd)
#1 dns_db_issecure db.c:235 (libdns.1505.dylib:x86_64+0x2b1f9)
#2 query_lookup query.c:5490 (libns.1502.dylib:x86_64+0x132d7)
#3 ns__query_start query.c:5441 (libns.1502.dylib:x86_64+0x1144c)
#4 ns_query_start query.c:5162 (libns.1502.dylib:x86_64+0x172a8)
#5 ns__client_request client.c:2157 (libns.1502.dylib:x86_64+0x5dd2)
#6 processbuffer tcpdns.c:175 (libisc.1504.dylib:x86_64+0x2cb6d)
#7 dnslisten_readcb tcpdns.c:228 (libisc.1504.dylib:x86_64+0x2c95b)
#8 read_cb tcp.c:399 (libisc.1504.dylib:x86_64+0x28dc9)
#9 uv__stream_io <null>:1547888 (libuv.1.dylib:x86_64+0xeda1)
Previous write of size 8 at 0x7b5c00031600 by thread T5 (mutexes: write M6046609578333200):
#0 closeversion rbtdb.c:2470 (libdns.1505.dylib:x86_64+0xb5683)
#1 dns_db_closeversion db.c:418 (libdns.1505.dylib:x86_64+0x2bb77)
#2 zone_sign zone.c:9369 (libdns.1505.dylib:x86_64+0x1d26da)
#3 zone_maintenance zone.c:10826 (libdns.1505.dylib:x86_64+0x1cb6bd)
#4 zone_timer zone.c:13673 (libdns.1505.dylib:x86_64+0x1abb75)
#5 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Location is heap block of size 785 at 0x7b5c00031380 allocated by thread T6:
#0 malloc <null>:1547920 (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_rbtdb_create rbtdb.c:8066 (libdns.1505.dylib:x86_64+0xb184b)
#6 dns_db_create db.c:118 (libdns.1505.dylib:x86_64+0x2ac1c)
#7 zone_load zone.c:2108 (libdns.1505.dylib:x86_64+0x19b582)
#8 zone_asyncload zone.c:2192 (libdns.1505.dylib:x86_64+0x19c802)
#9 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Mutex M6328084555044064 is already destroyed.
Mutex M6046609578333200 is already destroyed.
Thread T1 (tid=2149170, running) created by main thread at:
#0 pthread_create <null>:1547968 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58db1)
#2 isc_nm_start netmgr.c:152 (libisc.1504.dylib:x86_64+0x23b84)
#3 main main.c:895 (named:x86_64+0x10000debe)
Thread T5 (tid=2149174, running) created by main thread at:
#0 pthread_create <null>:1547968 (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+0x10000df16)
Thread T6 (tid=2149175, running) created by main thread at:
#0 pthread_create <null>:1547872 (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+0x10000df16)
SUMMARY: ThreadSanitizer: data race rbtdb.c:7568 in issecure
and second occurence immediately after:
WARNING: ThreadSanitizer: data race (pid=95328)
Read of size 4 at 0x7b5c00026bd8 by thread T1 (mutexes: read M6328084555044064):
#0 issecure rbtdb.c:7568 (libdns.1505.dylib:x86_64+0xbc0dd)
#1 dns_db_issecure db.c:235 (libdns.1505.dylib:x86_64+0x2b1f9)
#2 query_lookup query.c:5490 (libns.1502.dylib:x86_64+0x132d7)
#3 ns__query_start query.c:5441 (libns.1502.dylib:x86_64+0x1144c)
#4 ns_query_start query.c:5162 (libns.1502.dylib:x86_64+0x172a8)
#5 ns__client_request client.c:2157 (libns.1502.dylib:x86_64+0x5dd2)
#6 processbuffer tcpdns.c:175 (libisc.1504.dylib:x86_64+0x2cb6d)
#7 dnslisten_readcb tcpdns.c:228 (libisc.1504.dylib:x86_64+0x2c95b)
#8 read_cb tcp.c:399 (libisc.1504.dylib:x86_64+0x28dc9)
#9 uv__stream_io <null>:1547888 (libuv.1.dylib:x86_64+0xeda1)
Previous write of size 4 at 0x7b5c00026bd8 by thread T5:
#0 iszonesecure rbtdb.c:2253 (libdns.1505.dylib:x86_64+0xc8dc6)
#1 closeversion rbtdb.c:2407 (libdns.1505.dylib:x86_64+0xb4ea5)
#2 dns_db_closeversion db.c:418 (libdns.1505.dylib:x86_64+0x2bb77)
#3 zone_sign zone.c:9369 (libdns.1505.dylib:x86_64+0x1d26da)
#4 zone_maintenance zone.c:10826 (libdns.1505.dylib:x86_64+0x1cb6bd)
#5 zone_timer zone.c:13673 (libdns.1505.dylib:x86_64+0x1abb75)
#6 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Location is heap block of size 817 at 0x7b5c00026b80 allocated by thread T5:
#0 malloc <null>:1547920 (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 allocate_version rbtdb.c:1239 (libdns.1505.dylib:x86_64+0xb3b67)
#6 newversion rbtdb.c:1280 (libdns.1505.dylib:x86_64+0xb48ae)
#7 dns_db_newversion db.c:383 (libdns.1505.dylib:x86_64+0x2b93f)
#8 zone_sign zone.c:8900 (libdns.1505.dylib:x86_64+0x1cf5e8)
#9 zone_maintenance zone.c:10826 (libdns.1505.dylib:x86_64+0x1cb6bd)
#10 zone_timer zone.c:13673 (libdns.1505.dylib:x86_64+0x1abb75)
#11 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Mutex M6328084555044064 is already destroyed.
Thread T1 (tid=2149170, running) created by main thread at:
#0 pthread_create <null>:1547968 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58db1)
#2 isc_nm_start netmgr.c:152 (libisc.1504.dylib:x86_64+0x23b84)
#3 main main.c:895 (named:x86_64+0x10000debe)
Thread T5 (tid=2149174, running) created by main thread at:
#0 pthread_create <null>:1547968 (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+0x10000df16)
SUMMARY: ThreadSanitizer: data race rbtdb.c:7568 in issecure