ThreadSanitizer: data race message.c:3283 in dns_message_sectiontotext
- Binary:
named
- Commit:
c5b6f21515d44c997aa4aa259d2e0653a843fba0
- Tests: autosign, cacheclean, checknames, fetchlimit, forward
WARNING: ThreadSanitizer: data race (pid=45980)
Read of size 4 at 0x0001093a6698 by thread T5:
#0 dns_message_sectiontotext message.c:3283 (libdns.1503.dylib:x86_64+0x7be45)
#1 dns_message_totext message.c:4266 (libdns.1503.dylib:x86_64+0x8d835)
#2 logfmtpacket message.c:4401 (libdns.1503.dylib:x86_64+0x8dee6)
#3 dns_message_logfmtpacket message.c:4367 (libdns.1503.dylib:x86_64+0x8dfed)
#4 resquery_send resolver.c:2764 (libdns.1503.dylib:x86_64+0x13dbbe)
#5 fctx_query resolver.c:2142 (libdns.1503.dylib:x86_64+0x13a003)
#6 fctx_try resolver.c:4129 (libdns.1503.dylib:x86_64+0x136b61)
#7 rctx_done resolver.c:9397 (libdns.1503.dylib:x86_64+0x144328)
#8 resquery_response resolver.c (libdns.1503.dylib:x86_64+0x13ece7)
#9 run task.c:1134 (libisc.1503.dylib:x86_64+0x2c9e1)
Previous write of size 4 at 0x0001093a6698 by thread T7:
#0 dns_message_sectiontotext message.c:3366 (libdns.1503.dylib:x86_64+0x7cb17)
#1 dns_message_totext message.c:4266 (libdns.1503.dylib:x86_64+0x8d835)
#2 logfmtpacket message.c:4401 (libdns.1503.dylib:x86_64+0x8dee6)
#3 dns_message_logfmtpacket message.c:4367 (libdns.1503.dylib:x86_64+0x8dfed)
#4 resquery_send resolver.c:2764 (libdns.1503.dylib:x86_64+0x13dbbe)
#5 fctx_query resolver.c:2142 (libdns.1503.dylib:x86_64+0x13a003)
#6 fctx_try resolver.c:4129 (libdns.1503.dylib:x86_64+0x136b61)
#7 fctx_start resolver.c:4647 (libdns.1503.dylib:x86_64+0x12f383)
#8 run task.c:1134 (libisc.1503.dylib:x86_64+0x2c9e1)
Location is global 'dns_master_indent' at 0x0001093a6698 (libdns.1503.dylib+0x000000251698)
Thread T5 (tid=4654358, running) created by main thread at:
#0 pthread_create <null>:5820288 (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=4654360, running) created by main thread at:
#0 pthread_create <null>:5820288 (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 message.c:3283 in dns_message_sectiontotext
Edited by Ondřej Surý