ThreadSanitizer: data race rbtdb.c:1535 in add32
- Binary:
named
- Commit: d0bc45be
- Test: zero
WARNING: ThreadSanitizer: data race (pid=21745)
Write of size 2 at 0x7b44000503dc by thread T6 (mutexes: write M1003031114526233856, write M884530149331044048):
#0 add32 rbtdb.c:1535 (libdns.1505.dylib:x86_64+0xbffd1)
#1 addrdataset rbtdb.c:6591 (libdns.1505.dylib:x86_64+0xbab25)
#2 dns_db_addrdataset db.c:744 (libdns.1505.dylib:x86_64+0x2ce6e)
#3 resquery_response resolver.c:6344 (libdns.1505.dylib:x86_64+0x143237)
#4 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Previous read of size 2 at 0x7b44000503dc by thread T4:
#0 rdataset_getownercase rbtdb.c:9416 (libdns.1505.dylib:x86_64+0xc2155)
#1 towiresorted rdataset.c:721 (libdns.1505.dylib:x86_64+0x121601)
#2 dns_rdataset_towiresorted rdataset.c:566 (libdns.1505.dylib:x86_64+0x12136e)
#3 dns_message_rendersection message.c:2080 (libdns.1505.dylib:x86_64+0x762a3)
#4 ns_client_send client.c:517 (libns.1502.dylib:x86_64+0x1d8c)
#5 query_send query.c:562 (libns.1502.dylib:x86_64+0x162ea)
#6 ns_query_done query.c:10868 (libns.1502.dylib:x86_64+0x11ee2)
#7 query_prepresponse query.c (libns.1502.dylib:x86_64+0x20769)
#8 query_gotanswer query.c (libns.1502.dylib:x86_64+0x18839)
#9 query_lookup query.c:5562 (libns.1502.dylib:x86_64+0x136f7)
#10 ns__query_start query.c:5441 (libns.1502.dylib:x86_64+0x1144c)
#11 ns_query_start query.c:5162 (libns.1502.dylib:x86_64+0x172a8)
#12 ns__client_request client.c:2154 (libns.1502.dylib:x86_64+0x5dd2)
#13 udp_recv_cb udp.c:318 (libisc.1504.dylib:x86_64+0x2aa91)
#14 uv__udp_io <null>:6886864 (libuv.1.dylib:x86_64+0x13244)
Location is heap block of size 271 at 0x7b44000503c0 allocated by thread T6:
#0 malloc <null>:6886896 (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_rdataslab_fromrdataset rdataslab.c:266 (libdns.1505.dylib:x86_64+0x123903)
#6 addrdataset rbtdb.c:6441 (libdns.1505.dylib:x86_64+0xb9931)
#7 dns_db_addrdataset db.c:744 (libdns.1505.dylib:x86_64+0x2ce6e)
#8 resquery_response resolver.c:6344 (libdns.1505.dylib:x86_64+0x143237)
#9 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Mutex M1003031114526233856 is already destroyed.
Mutex M884530149331044048 is already destroyed.
Thread T6 (tid=1725576, running) created by main thread at:
#0 pthread_create <null>:6886944 (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 T4 (tid=1725574, running) created by main thread at:
#0 pthread_create <null>:6886944 (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+0x10000df4e)
SUMMARY: ThreadSanitizer: data race rbtdb.c:1535 in add32