ThreadSanitizer: data race adb.c:2790 in dns_adb_detach
- Binary:
named
- Commit: c5b6f215
- Tests: autosign
WARNING: ThreadSanitizer: data race (pid=45980)
Read of size 4 at 0x7b6400011410 by thread T6:
#0 dns_adb_detach adb.c:2790 (libdns.1503.dylib:x86_64+0x9fda)
#1 fctx_destroy resolver.c:4400 (libdns.1503.dylib:x86_64+0x1302bf)
#2 fctx_doshutdown resolver.c:4570 (libdns.1503.dylib:x86_64+0x14c626)
#3 run task.c:1134 (libisc.1503.dylib:x86_64+0x2c9e1)
Previous write of size 4 at 0x7b6400011410 by thread T8 (mutexes: write M55586239839015768):
#0 dns_adb_detach adb.c:2793 (libdns.1503.dylib:x86_64+0xa007)
#1 fctx_destroy resolver.c:4400 (libdns.1503.dylib:x86_64+0x1302bf)
#2 fctx_doshutdown resolver.c:4570 (libdns.1503.dylib:x86_64+0x14c626)
#3 run task.c:1134 (libisc.1503.dylib:x86_64+0x2c9e1)
Location is heap block of size 1025 at 0x7b6400011300 allocated by thread T5:
#0 malloc <null>:6892352 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e65a)
#1 default_memalloc mem.c:685 (libisc.1503.dylib:x86_64+0x17ae1)
#2 dns_view_createresolver view.c:778 (libdns.1503.dylib:x86_64+0x18bd72)
#3 configure_view server.c:4552 (named:x86_64+0x100027d3f)
#4 load_configuration server.c:8916 (named:x86_64+0x100021275)
#5 run_server server.c:9638 (named:x86_64+0x10000de29)
#6 run task.c:1134 (libisc.1503.dylib:x86_64+0x2c9e1)
Mutex M55586239839015768 is already destroyed.
Thread T6 (tid=4654359, running) created by main thread at:
#0 pthread_create <null>:6892400 (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 T8 (tid=4654361, running) created by main thread at:
#0 pthread_create <null>:6892400 (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 T5 (tid=4654358, running) created by main thread at:
#0 pthread_create <null>:6892304 (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 adb.c:2790 in dns_adb_detach