ThreadSanitizer: data race /builds/isc-projects/bind9/lib/dns/nta.c:659:11 in dns__nta_shutdown
WARNING: ThreadSanitizer: data race (pid=4175)
Read of size 8 at 0x7b5c00000030 by thread T10:
#0 dns__nta_shutdown /builds/isc-projects/bind9/lib/dns/nta.c:659:11 (libdns-9.19.6-dev.so+0xcff1f) (BuildId: 99aa8075eafa451b920a93883c4f94409e999aac)
#1 dns__nta_free /builds/isc-projects/bind9/lib/dns/nta.c:106:2 (libdns-9.19.6-dev.so+0xcff1f)
#2 deletetreeflat /builds/isc-projects/bind9/lib/dns/rbt.c:2216:5 (libdns-9.19.6-dev.so+0xdf337) (BuildId: 99aa8075eafa451b920a93883c4f94409e999aac)
#3 dns_rbt_destroy2 /builds/isc-projects/bind9/lib/dns/rbt.c:302:2 (libdns-9.19.6-dev.so+0xdf024) (BuildId: 99aa8075eafa451b920a93883c4f94409e999aac)
#4 dns_rbt_destroy /builds/isc-projects/bind9/lib/dns/rbt.c:291:2 (libdns-9.19.6-dev.so+0xdef8b) (BuildId: 99aa8075eafa451b920a93883c4f94409e999aac)
#5 dns__ntatable_destroy /builds/isc-projects/bind9/lib/dns/nta.c:158:2 (libdns-9.19.6-dev.so+0xd00d4) (BuildId: 99aa8075eafa451b920a93883c4f94409e999aac)
#6 dns_ntatable_unref /builds/isc-projects/bind9/lib/dns/nta.c:164:1 (libdns-9.19.6-dev.so+0xd00d4)
#7 dns_ntatable_detach /builds/isc-projects/bind9/lib/dns/nta.c:164:1 (libdns-9.19.6-dev.so+0xd02ae) (BuildId: 99aa8075eafa451b920a93883c4f94409e999aac)
#8 destroy /builds/isc-projects/bind9/lib/dns/view.c:429:3 (libdns-9.19.6-dev.so+0x1d5273) (BuildId: 99aa8075eafa451b920a93883c4f94409e999aac)
#9 dns_view_weakdetach /builds/isc-projects/bind9/lib/dns/view.c:612:3 (libdns-9.19.6-dev.so+0x1d5273)
#10 zone_free /builds/isc-projects/bind9/lib/dns/zone.c:1277:3 (libdns-9.19.6-dev.so+0x1e82d2) (BuildId: 99aa8075eafa451b920a93883c4f94409e999aac)
#11 zone_shutdown /builds/isc-projects/bind9/lib/dns/zone.c:15197:3 (libdns-9.19.6-dev.so+0x1e7911) (BuildId: 99aa8075eafa451b920a93883c4f94409e999aac)
#12 isc__job_cb /builds/isc-projects/bind9/lib/isc/job.c:75:2 (libisc-9.19.6-dev.so+0x4f28d) (BuildId: 8ebe9b001bf573404b12b13e7ea765ff6ccdca0c)
#13 uv__run_idle /usr/src/libuv-v1.44.1/src/unix/loop-watcher.c:68:1 (libuv.so.1+0x1b01a) (BuildId: 120c450d14885aa5308bc95c4ea77de2c2b1cc36)
#14 isc__trampoline_run /builds/isc-projects/bind9/lib/isc/trampoline.c:198:11 (libisc-9.19.6-dev.so+0x79bc7) (BuildId: 8ebe9b001bf573404b12b13e7ea765ff6ccdca0c)
Previous write of size 8 at 0x7b5c00000030 by main thread:
#0 isc_timer_destroy /builds/isc-projects/bind9/lib/isc/timer.c:183:10 (libisc-9.19.6-dev.so+0x74603) (BuildId: 8ebe9b001bf573404b12b13e7ea765ff6ccdca0c)
#1 dns__nta_shutdown_cb /builds/isc-projects/bind9/lib/dns/nta.c:649:3 (libdns-9.19.6-dev.so+0xd1ef9) (BuildId: 99aa8075eafa451b920a93883c4f94409e999aac)
#2 isc__job_cb /builds/isc-projects/bind9/lib/isc/job.c:75:2 (libisc-9.19.6-dev.so+0x4f28d) (BuildId: 8ebe9b001bf573404b12b13e7ea765ff6ccdca0c)
#3 uv__run_idle /usr/src/libuv-v1.44.1/src/unix/loop-watcher.c:68:1 (libuv.so.1+0x1b01a) (BuildId: 120c450d14885aa5308bc95c4ea77de2c2b1cc36)
#4 isc_loopmgr_run /builds/isc-projects/bind9/lib/isc/loop.c:473:2 (libisc-9.19.6-dev.so+0x58606) (BuildId: 8ebe9b001bf573404b12b13e7ea765ff6ccdca0c)
#5 main /builds/isc-projects/bind9/bin/named/main.c:1548:2 (named+0xf92aa) (BuildId: 81a888f44d66f72e3b0a54eb468237b9710f89b2)
Location is heap block of size 832 at 0x7b5c00000000 allocated by main thread:
#0 malloc <null> (named+0x6a451) (BuildId: 81a888f44d66f72e3b0a54eb468237b9710f89b2)
#1 mallocx /builds/isc-projects/bind9/lib/isc/./jemalloc_shim.h:35:10 (libisc-9.19.6-dev.so+0x5bb47) (BuildId: 8ebe9b001bf573404b12b13e7ea765ff6ccdca0c)
#2 mem_get /builds/isc-projects/bind9/lib/isc/mem.c:345:8 (libisc-9.19.6-dev.so+0x5bb47)
#3 isc__mem_get /builds/isc-projects/bind9/lib/isc/mem.c:764:8 (libisc-9.19.6-dev.so+0x5bb47)
#4 nta_create /builds/isc-projects/bind9/lib/dns/nta.c:288:8 (libdns-9.19.6-dev.so+0xd03c7) (BuildId: 99aa8075eafa451b920a93883c4f94409e999aac)
#5 dns_ntatable_add /builds/isc-projects/bind9/lib/dns/nta.c:323:2 (libdns-9.19.6-dev.so+0xd03c7)
#6 named_server_nta /builds/isc-projects/bind9/bin/named/server.c:15948:4 (named+0x10aec7) (BuildId: 81a888f44d66f72e3b0a54eb468237b9710f89b2)
#7 named_control_docommand /builds/isc-projects/bind9/bin/named/control.c:242:12 (named+0xeec75) (BuildId: 81a888f44d66f72e3b0a54eb468237b9710f89b2)
#8 control_command /builds/isc-projects/bind9/bin/named/controlconf.c:390:17 (named+0xf3a59) (BuildId: 81a888f44d66f72e3b0a54eb468237b9710f89b2)
#9 task_run /builds/isc-projects/bind9/lib/isc/task.c:470:4 (libisc-9.19.6-dev.so+0x7205c) (BuildId: 8ebe9b001bf573404b12b13e7ea765ff6ccdca0c)
#10 task__run /builds/isc-projects/bind9/lib/isc/task.c:287:24 (libisc-9.19.6-dev.so+0x7205c)
#11 isc__job_cb /builds/isc-projects/bind9/lib/isc/job.c:75:2 (libisc-9.19.6-dev.so+0x4f28d) (BuildId: 8ebe9b001bf573404b12b13e7ea765ff6ccdca0c)
#12 uv__run_idle /usr/src/libuv-v1.44.1/src/unix/loop-watcher.c:68:1 (libuv.so.1+0x1b01a) (BuildId: 120c450d14885aa5308bc95c4ea77de2c2b1cc36)
#13 isc_loopmgr_run /builds/isc-projects/bind9/lib/isc/loop.c:473:2 (libisc-9.19.6-dev.so+0x58606) (BuildId: 8ebe9b001bf573404b12b13e7ea765ff6ccdca0c)
#14 main /builds/isc-projects/bind9/bin/named/main.c:1548:2 (named+0xf92aa) (BuildId: 81a888f44d66f72e3b0a54eb468237b9710f89b2)
Thread T10 'isc-loop-0010' (tid=4199, running) created by main thread at:
#0 pthread_create <null> (named+0x6bc0d) (BuildId: 81a888f44d66f72e3b0a54eb468237b9710f89b2)
#1 isc_thread_create /builds/isc-projects/bind9/lib/isc/thread.c:70:8 (libisc-9.19.6-dev.so+0x7240a) (BuildId: 8ebe9b001bf573404b12b13e7ea765ff6ccdca0c)
#2 isc_loopmgr_run /builds/isc-projects/bind9/lib/isc/loop.c:467:3 (libisc-9.19.6-dev.so+0x5858c) (BuildId: 8ebe9b001bf573404b12b13e7ea765ff6ccdca0c)
#3 main /builds/isc-projects/bind9/bin/named/main.c:1548:2 (named+0xf92aa) (BuildId: 81a888f44d66f72e3b0a54eb468237b9710f89b2)
SUMMARY: ThreadSanitizer: data race /builds/isc-projects/bind9/lib/dns/nta.c:659:11 in dns__nta_shutdown