ThreadSanitizer: data race dispatch.c:1339 in tcp_recv
- Binary:
named
- Commit: c5b6f215
- Tests: autosign,
==================
WARNING: ThreadSanitizer: data race (pid=17397)
Read of size 1 at 0x7b680003d018 by thread T6:
#0 tcp_recv dispatch.c:1339 (libdns.1503.dylib:x86_64+0x3c369)
#1 run task.c:1134 (libisc.1503.dylib:x86_64+0x2c9e1)
Previous write of size 1 at 0x7b680003d018 by thread T7 (mutexes: write M19048):
#0 dns_dispatch_detach dispatch.c:2990 (libdns.1503.dylib:x86_64+0x36033)
#1 fctx_cancelquery resolver.c:1367 (libdns.1503.dylib:x86_64+0x135499)
#2 rctx_done resolver.c:9520 (libdns.1503.dylib:x86_64+0x1440aa)
#3 resquery_response resolver.c (libdns.1503.dylib:x86_64+0x13ece7)
#4 run task.c:1134 (libisc.1503.dylib:x86_64+0x2c9e1)
Location is heap block of size 1513 at 0x7b680003cc00 allocated by thread T7:
#0 malloc <null>:6892432 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e65a)
#1 default_memalloc mem.c:685 (libisc.1503.dylib:x86_64+0x17ae1)
#2 dns_dispatch_createtcp dispatch.c:2422 (libdns.1503.dylib:x86_64+0x328f7)
#3 resquery_connected resolver.c:2932 (libdns.1503.dylib:x86_64+0x13c5de)
#4 run task.c:1134 (libisc.1503.dylib:x86_64+0x2c9e1)
Mutex M19048 (0x7b680003cfc0) created at:
#0 pthread_mutex_init <null>:6892288 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2b9a3)
#1 isc__mutex_init mutex.c:286 (libisc.1503.dylib:x86_64+0x46c4a)
#2 dns_dispatch_createtcp dispatch.c:2422 (libdns.1503.dylib:x86_64+0x328f7)
#3 resquery_connected resolver.c:2932 (libdns.1503.dylib:x86_64+0x13c5de)
#4 run task.c:1134 (libisc.1503.dylib:x86_64+0x2c9e1)
Thread T6 (tid=4527469, running) created by main thread at:
#0 pthread_create <null>:6892480 (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=4527470, running) created by main thread at:
#0 pthread_create <null>:6892480 (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 dispatch.c:1339 in tcp_recv
==================
Edited by Ondřej Surý