ThreadSanitizer: data race resolver.c:7030 in fctx_decreference
- Binary:
named
- Commit: d0bc45be
- Tests: fetchlimit
WARNING: ThreadSanitizer: data race (pid=66438)
Read of size 4 at 0x7b680015c1f0 by thread T5 (mutexes: write M22372295666377800):
#0 fctx_decreference resolver.c:7030 (libdns.1505.dylib:x86_64+0x131a42)
#1 dns_resolver_destroyfetch resolver.c:10758 (libdns.1505.dylib:x86_64+0x1318a0)
#2 fetch_callback query.c:5679 (libns.1502.dylib:x86_64+0x153d8)
#3 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Previous write of size 4 at 0x7b680015c1f0 by thread T7:
#0 fctx_nextaddress resolver.c:3872 (libdns.1505.dylib:x86_64+0x1391de)
#1 fctx_try resolver.c:4012 (libdns.1505.dylib:x86_64+0x136638)
#2 fctx_timeout resolver.c:4462 (libdns.1505.dylib:x86_64+0x134b1d)
#3 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Location is heap block of size 1449 at 0x7b680015c000 allocated by thread T4:
#0 malloc <null>:5823072 (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 ns_query_recurse query.c:5858 (libns.1502.dylib:x86_64+0x13ed3)
#7 query_delegation query.c (libns.1502.dylib:x86_64+0x21ed1)
#8 query_gotanswer query.c (libns.1502.dylib:x86_64+0x18b2f)
#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>:5823072 (libuv.1.dylib:x86_64+0x13244)
Mutex M22372295666377800 is already destroyed.
Thread T5 (tid=1295632, running) created by main thread at:
#0 pthread_create <null>:5823120 (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 T7 (tid=1295634, running) created by main thread at:
#0 pthread_create <null>:5823120 (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=1295631, running) created by main thread at:
#0 pthread_create <null>:5823024 (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 resolver.c:7030 in fctx_decreference