ThreadSanitizer: data race between ns_client_endrequest->rdataset_disassociate and rmzone->free_rbtdb
Full report here (it doesn't happen in the CI, just locally):
==================
WARNING: ThreadSanitizer: data race (pid=1434821)
Write of size 8 at 0x7b98000603a8 by thread T1 (mutexes: write M599395980743702552):
#0 memset <null> (named+0x445d29)
#1 mem_put /home/ondrej/Projects/bind9/lib/isc/mem.c:361:3 (libisc-9.17.13.so+0xd7a1c)
#2 isc__mem_free /home/ondrej/Projects/bind9/lib/isc/mem.c:1012:2 (libisc-9.17.13.so+0xd6f17)
#3 isc__mem_put /home/ondrej/Projects/bind9/lib/isc/mem.c:777:3 (libisc-9.17.13.so+0xd8ec8)
#4 free_rbtdb /home/ondrej/Projects/bind9/lib/dns/rbtdb.c:1203:2 (libdns-9.17.13.so+0x1c9a83)
#5 maybe_free_rbtdb /home/ondrej/Projects/bind9/lib/dns/rbtdb.c:1288:4 (libdns-9.17.13.so+0x1d9310)
#6 detach /home/ondrej/Projects/bind9/lib/dns/rbtdb.c:1300:3 (libdns-9.17.13.so+0x1cab3c)
#7 dns_db_detach /home/ondrej/Projects/bind9/lib/dns/db.c:155:2 (libdns-9.17.13.so+0x83d9b)
#8 zone_detachdb /home/ondrej/Projects/bind9/lib/dns/zone.c:17150:2 (libdns-9.17.13.so+0x40117e)
#9 zone_unload /home/ondrej/Projects/bind9/lib/dns/zone.c:11928:2 (libdns-9.17.13.so+0x3deee2)
#10 dns_zone_unload /home/ondrej/Projects/bind9/lib/dns/zone.c:11863:2 (libdns-9.17.13.so+0x3deca2)
#11 rmzone /home/ondrej/Projects/bind9/bin/named/server.c:14368:3 (named+0x4fbd3b)
#12 task_run /home/ondrej/Projects/bind9/lib/isc/task.c:816:5 (libisc-9.17.13.so+0xffd06)
#13 isc_task_run /home/ondrej/Projects/bind9/lib/isc/task.c:896:10 (libisc-9.17.13.so+0xff4f5)
#14 isc__nm_async_task /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:863:11 (libisc-9.17.13.so+0x47a8e)
#15 process_netievent /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:942:3 (libisc-9.17.13.so+0x3c0dc)
#16 process_queue /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:1032:16 (libisc-9.17.13.so+0x4792a)
#17 process_all_queues /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:783:25 (libisc-9.17.13.so+0x4774f)
#18 async_cb /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:812:6 (libisc-9.17.13.so+0x35482)
#19 uv__async_io /home/ondrej/Projects/tsan/libuv/src/unix/async.c:163:5 (libuv.so.1+0x15389)
#20 uv__io_poll /home/ondrej/Projects/tsan/libuv/src/unix/linux-core.c:462:11 (libuv.so.1+0x2ebb6)
#21 uv_run /home/ondrej/Projects/tsan/libuv/src/unix/core.c:392:5 (libuv.so.1+0x159ac)
#22 nm_thread /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:718:11 (libisc-9.17.13.so+0x3555e)
#23 isc__trampoline_run /home/ondrej/Projects/bind9/lib/isc/trampoline.c:184:11 (libisc-9.17.13.so+0x108746)
Previous atomic read of size 8 at 0x7b98000603a8 by thread T2:
#0 __tsan_atomic64_load <null> (named+0x487e0e)
#1 isc_rwlock_unlock /home/ondrej/Projects/bind9/lib/isc/rwlock.c:584:8 (libisc-9.17.13.so+0xf1287)
#2 detachnode /home/ondrej/Projects/bind9/lib/dns/rbtdb.c:5508:2 (libdns-9.17.13.so+0x1d1c0d)
#3 rdataset_disassociate /home/ondrej/Projects/bind9/lib/dns/rbtdb.c:8862:2 (libdns-9.17.13.so+0x1e4354)
#4 dns_rdataset_disassociate /home/ondrej/Projects/bind9/lib/dns/rdataset.c:111:2 (libdns-9.17.13.so+0x2d86cc)
#5 msgresetnames /home/ondrej/Projects/bind9/lib/dns/message.c:467:5 (libdns-9.17.13.so+0x142f07)
#6 msgreset /home/ondrej/Projects/bind9/lib/dns/message.c:542:2 (libdns-9.17.13.so+0x13613a)
#7 dns_message_reset /home/ondrej/Projects/bind9/lib/dns/message.c:762:2 (libdns-9.17.13.so+0x13609f)
#8 ns_client_endrequest /home/ondrej/Projects/bind9/lib/ns/client.c:212:2 (libns-9.17.13.so+0x16362)
#9 ns__client_reset_cb /home/ondrej/Projects/bind9/lib/ns/client.c:1536:2 (libns-9.17.13.so+0x155cd)
#10 nmhandle_detach_cb /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:1848:3 (libisc-9.17.13.so+0x40b3f)
#11 isc__nmhandle_detach /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:1804:3 (libisc-9.17.13.so+0x39a4f)
#12 isc___nm_uvreq_put /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:2462:3 (libisc-9.17.13.so+0x41b04)
#13 isc__nm_async_sendcb /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:2748:2 (libisc-9.17.13.so+0x46837)
#14 isc__nm_sendcb /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:2722:3 (libisc-9.17.13.so+0x41721)
#15 udp_send_cb /home/ondrej/Projects/bind9/lib/isc/netmgr/udp.c:560:2 (libisc-9.17.13.so+0x75549)
#16 uv__udp_run_completed /home/ondrej/Projects/tsan/libuv/src/unix/udp.c (libuv.so.1+0x2b9f9)
#17 uv__udp_io /home/ondrej/Projects/tsan/libuv/src/unix/udp.c:184:5 (libuv.so.1+0x2c94c)
#18 uv__run_pending /home/ondrej/Projects/tsan/libuv/src/unix/core.c:825:5 (libuv.so.1+0x15b87)
#19 uv_run /home/ondrej/Projects/tsan/libuv/src/unix/core.c:384:19 (libuv.so.1+0x15977)
#20 nm_thread /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:718:11 (libisc-9.17.13.so+0x3555e)
#21 isc__trampoline_run /home/ondrej/Projects/bind9/lib/isc/trampoline.c:184:11 (libisc-9.17.13.so+0x108746)
Location is heap block of size 11464 at 0x7b9800060000 allocated by thread T1:
#0 malloc <null> (named+0x43a74b)
#1 default_memalloc /home/ondrej/Projects/bind9/lib/isc/mem.c:411:8 (libisc-9.17.13.so+0xddffe)
#2 mem_get /home/ondrej/Projects/bind9/lib/isc/mem.c:343:8 (libisc-9.17.13.so+0xd8331)
#3 mem_allocateunlocked /home/ondrej/Projects/bind9/lib/isc/mem.c:918:7 (libisc-9.17.13.so+0xd9810)
#4 isc__mem_allocate /home/ondrej/Projects/bind9/lib/isc/mem.c:935:7 (libisc-9.17.13.so+0xd8195)
#5 isc__mem_get /home/ondrej/Projects/bind9/lib/isc/mem.c:740:11 (libisc-9.17.13.so+0xd7f8f)
#6 dns_rbtdb_create /home/ondrej/Projects/bind9/lib/dns/rbtdb.c:8631:22 (libdns-9.17.13.so+0x1c538e)
#7 dns_db_create /home/ondrej/Projects/bind9/lib/dns/db.c:118:13 (libdns-9.17.13.so+0x83693)
#8 axfr_makedb /home/ondrej/Projects/bind9/lib/dns/xfrin.c:292:11 (libdns-9.17.13.so+0x3c0105)
#9 axfr_init /home/ondrej/Projects/bind9/lib/dns/xfrin.c:280:2 (libdns-9.17.13.so+0x3bf8da)
#10 xfr_rr /home/ondrej/Projects/bind9/lib/dns/xfrin.c:597:4 (libdns-9.17.13.so+0x3beb45)
#11 xfrin_recv_done /home/ondrej/Projects/bind9/lib/dns/xfrin.c:1430:5 (libdns-9.17.13.so+0x3bd2fd)
#12 isc__nm_async_readcb /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:2706:2 (libisc-9.17.13.so+0x463f8)
#13 isc__nm_readcb /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:2681:3 (libisc-9.17.13.so+0x45eae)
#14 isc__nm_tcpdns_processbuffer /home/ondrej/Projects/bind9/lib/isc/netmgr/tcpdns.c:817:2 (libisc-9.17.13.so+0x574fd)
#15 processbuffer /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:2257:11 (libisc-9.17.13.so+0x4413f)
#16 isc__nm_process_sock_buffer /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:2282:25 (libisc-9.17.13.so+0x43fb5)
#17 isc__nm_tcpdns_read_cb /home/ondrej/Projects/bind9/lib/isc/netmgr/tcpdns.c:880:2 (libisc-9.17.13.so+0x57c28)
#18 uv__read /home/ondrej/Projects/tsan/libuv/src/unix/stream.c:1239:7 (libuv.so.1+0x280bc)
#19 uv__stream_io /home/ondrej/Projects/tsan/libuv/src/unix/stream.c:1306:5 (libuv.so.1+0x25cef)
#20 uv__io_poll /home/ondrej/Projects/tsan/libuv/src/unix/linux-core.c:462:11 (libuv.so.1+0x2ebb6)
#21 uv_run /home/ondrej/Projects/tsan/libuv/src/unix/core.c:392:5 (libuv.so.1+0x159ac)
#22 nm_thread /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:718:11 (libisc-9.17.13.so+0x3555e)
#23 isc__trampoline_run /home/ondrej/Projects/bind9/lib/isc/trampoline.c:184:11 (libisc-9.17.13.so+0x108746)
Mutex M599395980743702552 is already destroyed.
Thread T1 'isc-net-0000' (tid=1434862, running) created by main thread at:
#0 pthread_create <null> (named+0x43bf6b)
#1 isc_thread_create /home/ondrej/Projects/bind9/lib/isc/pthreads/thread.c:79:8 (libisc-9.17.13.so+0x10b706)
#2 isc__netmgr_create /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:347:3 (libisc-9.17.13.so+0x3535e)
#3 isc_managers_create /home/ondrej/Projects/bind9/lib/isc/managers.c:39:2 (libisc-9.17.13.so+0xd433e)
#4 create_managers /home/ondrej/Projects/bind9/bin/named/main.c:941:11 (named+0x4e4c71)
#5 setup /home/ondrej/Projects/bind9/bin/named/main.c:1216:11 (named+0x4e26d5)
#6 main /home/ondrej/Projects/bind9/bin/named/main.c:1507:2 (named+0x4e0e2b)
Thread T2 'isc-net-0001' (tid=1434882, running) created by main thread at:
#0 pthread_create <null> (named+0x43bf6b)
#1 isc_thread_create /home/ondrej/Projects/bind9/lib/isc/pthreads/thread.c:79:8 (libisc-9.17.13.so+0x10b706)
#2 isc__netmgr_create /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:347:3 (libisc-9.17.13.so+0x3535e)
#3 isc_managers_create /home/ondrej/Projects/bind9/lib/isc/managers.c:39:2 (libisc-9.17.13.so+0xd433e)
#4 create_managers /home/ondrej/Projects/bind9/bin/named/main.c:941:11 (named+0x4e4c71)
#5 setup /home/ondrej/Projects/bind9/bin/named/main.c:1216:11 (named+0x4e26d5)
#6 main /home/ondrej/Projects/bind9/bin/named/main.c:1507:2 (named+0x4e0e2b)
SUMMARY: ThreadSanitizer: data race (/home/ondrej/Projects/bind9/bin/named/.libs/named+0x445d29) in memset
==================
==================
WARNING: ThreadSanitizer: data race (pid=1434821)
Write of size 8 at 0x7b98000603b0 by thread T1 (mutexes: write M599395980743702552):
#0 memset <null> (named+0x445d29)
#1 mem_put /home/ondrej/Projects/bind9/lib/isc/mem.c:361:3 (libisc-9.17.13.so+0xd7a1c)
#2 isc__mem_free /home/ondrej/Projects/bind9/lib/isc/mem.c:1012:2 (libisc-9.17.13.so+0xd6f17)
#3 isc__mem_put /home/ondrej/Projects/bind9/lib/isc/mem.c:777:3 (libisc-9.17.13.so+0xd8ec8)
#4 free_rbtdb /home/ondrej/Projects/bind9/lib/dns/rbtdb.c:1203:2 (libdns-9.17.13.so+0x1c9a83)
#5 maybe_free_rbtdb /home/ondrej/Projects/bind9/lib/dns/rbtdb.c:1288:4 (libdns-9.17.13.so+0x1d9310)
#6 detach /home/ondrej/Projects/bind9/lib/dns/rbtdb.c:1300:3 (libdns-9.17.13.so+0x1cab3c)
#7 dns_db_detach /home/ondrej/Projects/bind9/lib/dns/db.c:155:2 (libdns-9.17.13.so+0x83d9b)
#8 zone_detachdb /home/ondrej/Projects/bind9/lib/dns/zone.c:17150:2 (libdns-9.17.13.so+0x40117e)
#9 zone_unload /home/ondrej/Projects/bind9/lib/dns/zone.c:11928:2 (libdns-9.17.13.so+0x3deee2)
#10 dns_zone_unload /home/ondrej/Projects/bind9/lib/dns/zone.c:11863:2 (libdns-9.17.13.so+0x3deca2)
#11 rmzone /home/ondrej/Projects/bind9/bin/named/server.c:14368:3 (named+0x4fbd3b)
#12 task_run /home/ondrej/Projects/bind9/lib/isc/task.c:816:5 (libisc-9.17.13.so+0xffd06)
#13 isc_task_run /home/ondrej/Projects/bind9/lib/isc/task.c:896:10 (libisc-9.17.13.so+0xff4f5)
#14 isc__nm_async_task /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:863:11 (libisc-9.17.13.so+0x47a8e)
#15 process_netievent /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:942:3 (libisc-9.17.13.so+0x3c0dc)
#16 process_queue /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:1032:16 (libisc-9.17.13.so+0x4792a)
#17 process_all_queues /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:783:25 (libisc-9.17.13.so+0x4774f)
#18 async_cb /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:812:6 (libisc-9.17.13.so+0x35482)
#19 uv__async_io /home/ondrej/Projects/tsan/libuv/src/unix/async.c:163:5 (libuv.so.1+0x15389)
#20 uv__io_poll /home/ondrej/Projects/tsan/libuv/src/unix/linux-core.c:462:11 (libuv.so.1+0x2ebb6)
#21 uv_run /home/ondrej/Projects/tsan/libuv/src/unix/core.c:392:5 (libuv.so.1+0x159ac)
#22 nm_thread /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:718:11 (libisc-9.17.13.so+0x3555e)
#23 isc__trampoline_run /home/ondrej/Projects/bind9/lib/isc/trampoline.c:184:11 (libisc-9.17.13.so+0x108746)
Previous atomic read of size 8 at 0x7b98000603b0 by thread T2:
#0 __tsan_atomic64_load <null> (named+0x487e0e)
#1 isc_rwlock_unlock /home/ondrej/Projects/bind9/lib/isc/rwlock.c:583:7 (libisc-9.17.13.so+0xf1247)
#2 detachnode /home/ondrej/Projects/bind9/lib/dns/rbtdb.c:5508:2 (libdns-9.17.13.so+0x1d1c0d)
#3 rdataset_disassociate /home/ondrej/Projects/bind9/lib/dns/rbtdb.c:8862:2 (libdns-9.17.13.so+0x1e4354)
#4 dns_rdataset_disassociate /home/ondrej/Projects/bind9/lib/dns/rdataset.c:111:2 (libdns-9.17.13.so+0x2d86cc)
#5 msgresetnames /home/ondrej/Projects/bind9/lib/dns/message.c:467:5 (libdns-9.17.13.so+0x142f07)
#6 msgreset /home/ondrej/Projects/bind9/lib/dns/message.c:542:2 (libdns-9.17.13.so+0x13613a)
#7 dns_message_reset /home/ondrej/Projects/bind9/lib/dns/message.c:762:2 (libdns-9.17.13.so+0x13609f)
#8 ns_client_endrequest /home/ondrej/Projects/bind9/lib/ns/client.c:212:2 (libns-9.17.13.so+0x16362)
#9 ns__client_reset_cb /home/ondrej/Projects/bind9/lib/ns/client.c:1536:2 (libns-9.17.13.so+0x155cd)
#10 nmhandle_detach_cb /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:1848:3 (libisc-9.17.13.so+0x40b3f)
#11 isc__nmhandle_detach /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:1804:3 (libisc-9.17.13.so+0x39a4f)
#12 isc___nm_uvreq_put /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:2462:3 (libisc-9.17.13.so+0x41b04)
#13 isc__nm_async_sendcb /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:2748:2 (libisc-9.17.13.so+0x46837)
#14 isc__nm_sendcb /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:2722:3 (libisc-9.17.13.so+0x41721)
#15 udp_send_cb /home/ondrej/Projects/bind9/lib/isc/netmgr/udp.c:560:2 (libisc-9.17.13.so+0x75549)
#16 uv__udp_run_completed /home/ondrej/Projects/tsan/libuv/src/unix/udp.c (libuv.so.1+0x2b9f9)
#17 uv__udp_io /home/ondrej/Projects/tsan/libuv/src/unix/udp.c:184:5 (libuv.so.1+0x2c94c)
#18 uv__run_pending /home/ondrej/Projects/tsan/libuv/src/unix/core.c:825:5 (libuv.so.1+0x15b87)
#19 uv_run /home/ondrej/Projects/tsan/libuv/src/unix/core.c:384:19 (libuv.so.1+0x15977)
#20 nm_thread /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:718:11 (libisc-9.17.13.so+0x3555e)
#21 isc__trampoline_run /home/ondrej/Projects/bind9/lib/isc/trampoline.c:184:11 (libisc-9.17.13.so+0x108746)
Location is heap block of size 11464 at 0x7b9800060000 allocated by thread T1:
#0 malloc <null> (named+0x43a74b)
#1 default_memalloc /home/ondrej/Projects/bind9/lib/isc/mem.c:411:8 (libisc-9.17.13.so+0xddffe)
#2 mem_get /home/ondrej/Projects/bind9/lib/isc/mem.c:343:8 (libisc-9.17.13.so+0xd8331)
#3 mem_allocateunlocked /home/ondrej/Projects/bind9/lib/isc/mem.c:918:7 (libisc-9.17.13.so+0xd9810)
#4 isc__mem_allocate /home/ondrej/Projects/bind9/lib/isc/mem.c:935:7 (libisc-9.17.13.so+0xd8195)
#5 isc__mem_get /home/ondrej/Projects/bind9/lib/isc/mem.c:740:11 (libisc-9.17.13.so+0xd7f8f)
#6 dns_rbtdb_create /home/ondrej/Projects/bind9/lib/dns/rbtdb.c:8631:22 (libdns-9.17.13.so+0x1c538e)
#7 dns_db_create /home/ondrej/Projects/bind9/lib/dns/db.c:118:13 (libdns-9.17.13.so+0x83693)
#8 axfr_makedb /home/ondrej/Projects/bind9/lib/dns/xfrin.c:292:11 (libdns-9.17.13.so+0x3c0105)
#9 axfr_init /home/ondrej/Projects/bind9/lib/dns/xfrin.c:280:2 (libdns-9.17.13.so+0x3bf8da)
#10 xfr_rr /home/ondrej/Projects/bind9/lib/dns/xfrin.c:597:4 (libdns-9.17.13.so+0x3beb45)
#11 xfrin_recv_done /home/ondrej/Projects/bind9/lib/dns/xfrin.c:1430:5 (libdns-9.17.13.so+0x3bd2fd)
#12 isc__nm_async_readcb /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:2706:2 (libisc-9.17.13.so+0x463f8)
#13 isc__nm_readcb /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:2681:3 (libisc-9.17.13.so+0x45eae)
#14 isc__nm_tcpdns_processbuffer /home/ondrej/Projects/bind9/lib/isc/netmgr/tcpdns.c:817:2 (libisc-9.17.13.so+0x574fd)
#15 processbuffer /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:2257:11 (libisc-9.17.13.so+0x4413f)
#16 isc__nm_process_sock_buffer /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:2282:25 (libisc-9.17.13.so+0x43fb5)
#17 isc__nm_tcpdns_read_cb /home/ondrej/Projects/bind9/lib/isc/netmgr/tcpdns.c:880:2 (libisc-9.17.13.so+0x57c28)
#18 uv__read /home/ondrej/Projects/tsan/libuv/src/unix/stream.c:1239:7 (libuv.so.1+0x280bc)
#19 uv__stream_io /home/ondrej/Projects/tsan/libuv/src/unix/stream.c:1306:5 (libuv.so.1+0x25cef)
#20 uv__io_poll /home/ondrej/Projects/tsan/libuv/src/unix/linux-core.c:462:11 (libuv.so.1+0x2ebb6)
#21 uv_run /home/ondrej/Projects/tsan/libuv/src/unix/core.c:392:5 (libuv.so.1+0x159ac)
#22 nm_thread /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:718:11 (libisc-9.17.13.so+0x3555e)
#23 isc__trampoline_run /home/ondrej/Projects/bind9/lib/isc/trampoline.c:184:11 (libisc-9.17.13.so+0x108746)
Mutex M599395980743702552 is already destroyed.
Thread T1 'isc-net-0000' (tid=1434862, running) created by main thread at:
#0 pthread_create <null> (named+0x43bf6b)
#1 isc_thread_create /home/ondrej/Projects/bind9/lib/isc/pthreads/thread.c:79:8 (libisc-9.17.13.so+0x10b706)
#2 isc__netmgr_create /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:347:3 (libisc-9.17.13.so+0x3535e)
#3 isc_managers_create /home/ondrej/Projects/bind9/lib/isc/managers.c:39:2 (libisc-9.17.13.so+0xd433e)
#4 create_managers /home/ondrej/Projects/bind9/bin/named/main.c:941:11 (named+0x4e4c71)
#5 setup /home/ondrej/Projects/bind9/bin/named/main.c:1216:11 (named+0x4e26d5)
#6 main /home/ondrej/Projects/bind9/bin/named/main.c:1507:2 (named+0x4e0e2b)
Thread T2 'isc-net-0001' (tid=1434882, running) created by main thread at:
#0 pthread_create <null> (named+0x43bf6b)
#1 isc_thread_create /home/ondrej/Projects/bind9/lib/isc/pthreads/thread.c:79:8 (libisc-9.17.13.so+0x10b706)
#2 isc__netmgr_create /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:347:3 (libisc-9.17.13.so+0x3535e)
#3 isc_managers_create /home/ondrej/Projects/bind9/lib/isc/managers.c:39:2 (libisc-9.17.13.so+0xd433e)
#4 create_managers /home/ondrej/Projects/bind9/bin/named/main.c:941:11 (named+0x4e4c71)
#5 setup /home/ondrej/Projects/bind9/bin/named/main.c:1216:11 (named+0x4e26d5)
#6 main /home/ondrej/Projects/bind9/bin/named/main.c:1507:2 (named+0x4e0e2b)
SUMMARY: ThreadSanitizer: data race (/home/ondrej/Projects/bind9/bin/named/.libs/named+0x445d29) in memset
==================
ThreadSanitizer: reported 2 warnings