ThreadSanitizer: data race in dns_tsigkeyring_dump
==================
WARNING: ThreadSanitizer: data race (pid=1731304)
Write of size 8 at 0x7b1800000b90 by thread T16:
#0 isc_hashmap_iter_create /home/ondrej/Projects/bind9/lib/isc/hashmap.c:608:20 (libisc-9.19.18-dev.so+0x55c12) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
#1 dns_tsigkeyring_dump /home/ondrej/Projects/bind9/lib/dns/tsig.c:473:2 (libdns-9.19.18-dev.so+0x2ed639) (BuildId: 0c875e4d1ebe40ad865f17a9c21753da586ae188)
#2 destroy /home/ondrej/Projects/bind9/lib/dns/view.c:239:13 (libdns-9.19.18-dev.so+0x3140c6) (BuildId: 0c875e4d1ebe40ad865f17a9c21753da586ae188)
#3 dns_view_weakdetach /home/ondrej/Projects/bind9/lib/dns/view.c:586:3 (libdns-9.19.18-dev.so+0x313b0c) (BuildId: 0c875e4d1ebe40ad865f17a9c21753da586ae188)
#4 zone_shutdown /home/ondrej/Projects/bind9/lib/dns/zone.c:14515:3 (libdns-9.19.18-dev.so+0x3642dd) (BuildId: 0c875e4d1ebe40ad865f17a9c21753da586ae188)
#5 isc__async_cb /home/ondrej/Projects/bind9/lib/isc/async.c:111:3 (libisc-9.19.18-dev.so+0x46682) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
#6 uv__async_io /home/ondrej/Projects/tsan/libuv/src/unix/async.c:176:5 (libuv.so.1+0x19fb5) (BuildId: 473d7a8bf34342bf61b8e7193e565ce2b7962210)
#7 uv__io_poll /home/ondrej/Projects/tsan/libuv/src/unix/linux.c:1476:11 (libuv.so.1+0x4d289) (BuildId: 473d7a8bf34342bf61b8e7193e565ce2b7962210)
#8 uv_run /home/ondrej/Projects/tsan/libuv/src/unix/core.c:447:5 (libuv.so.1+0x1adee) (BuildId: 473d7a8bf34342bf61b8e7193e565ce2b7962210)
#9 loop_thread /home/ondrej/Projects/bind9/lib/isc/loop.c:282:6 (libisc-9.19.18-dev.so+0x79c40) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
#10 thread_body /home/ondrej/Projects/bind9/lib/isc/thread.c:85:8 (libisc-9.19.18-dev.so+0x9e423) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
#11 thread_run /home/ondrej/Projects/bind9/lib/isc/thread.c:100:14 (libisc-9.19.18-dev.so+0x9e70f) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
Previous write of size 8 at 0x7b1800000b90 by thread T29:
#0 isc_hashmap_iter_create /home/ondrej/Projects/bind9/lib/isc/hashmap.c:608:20 (libisc-9.19.18-dev.so+0x55c12) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
#1 dns_tsigkeyring_dump /home/ondrej/Projects/bind9/lib/dns/tsig.c:473:2 (libdns-9.19.18-dev.so+0x2ed639) (BuildId: 0c875e4d1ebe40ad865f17a9c21753da586ae188)
#2 destroy /home/ondrej/Projects/bind9/lib/dns/view.c:239:13 (libdns-9.19.18-dev.so+0x3140c6) (BuildId: 0c875e4d1ebe40ad865f17a9c21753da586ae188)
#3 dns_view_weakdetach /home/ondrej/Projects/bind9/lib/dns/view.c:586:3 (libdns-9.19.18-dev.so+0x313b0c) (BuildId: 0c875e4d1ebe40ad865f17a9c21753da586ae188)
#4 zone_shutdown /home/ondrej/Projects/bind9/lib/dns/zone.c:14515:3 (libdns-9.19.18-dev.so+0x3642dd) (BuildId: 0c875e4d1ebe40ad865f17a9c21753da586ae188)
#5 isc__async_cb /home/ondrej/Projects/bind9/lib/isc/async.c:111:3 (libisc-9.19.18-dev.so+0x46682) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
#6 uv__async_io /home/ondrej/Projects/tsan/libuv/src/unix/async.c:176:5 (libuv.so.1+0x19fb5) (BuildId: 473d7a8bf34342bf61b8e7193e565ce2b7962210)
#7 uv__io_poll /home/ondrej/Projects/tsan/libuv/src/unix/linux.c:1476:11 (libuv.so.1+0x4d289) (BuildId: 473d7a8bf34342bf61b8e7193e565ce2b7962210)
#8 uv_run /home/ondrej/Projects/tsan/libuv/src/unix/core.c:447:5 (libuv.so.1+0x1adee) (BuildId: 473d7a8bf34342bf61b8e7193e565ce2b7962210)
#9 loop_thread /home/ondrej/Projects/bind9/lib/isc/loop.c:282:6 (libisc-9.19.18-dev.so+0x79c40) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
#10 thread_body /home/ondrej/Projects/bind9/lib/isc/thread.c:85:8 (libisc-9.19.18-dev.so+0x9e423) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
#11 thread_run /home/ondrej/Projects/bind9/lib/isc/thread.c:100:14 (libisc-9.19.18-dev.so+0x9e70f) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
Location is heap block of size 88 at 0x7b1800000b40 allocated by main thread:
#0 malloc <null> (lt-named+0x738dc) (BuildId: a34b7ed3d2c9f1e42cab4821d53fbde3e4c5b946)
#1 mallocx /home/ondrej/Projects/bind9/lib/isc/./jemalloc_shim.h:67:14 (libisc-9.19.18-dev.so+0x8591e) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
#2 mem_get /home/ondrej/Projects/bind9/lib/isc/mem.c:305:8 (libisc-9.19.18-dev.so+0x7f23e) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
#3 isc__mem_get /home/ondrej/Projects/bind9/lib/isc/mem.c:744:8 (libisc-9.19.18-dev.so+0x7f0c6) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
#4 isc_hashmap_create /home/ondrej/Projects/bind9/lib/isc/hashmap.c:210:27 (libisc-9.19.18-dev.so+0x53a20) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
#5 dns_tsigkeyring_create /home/ondrej/Projects/bind9/lib/dns/tsig.c:1589:2 (libdns-9.19.18-dev.so+0x2f49c7) (BuildId: 0c875e4d1ebe40ad865f17a9c21753da586ae188)
#6 dns_view_create /home/ondrej/Projects/bind9/lib/dns/view.c:144:2 (libdns-9.19.18-dev.so+0x3121e6) (BuildId: 0c875e4d1ebe40ad865f17a9c21753da586ae188)
#7 create_view /home/ondrej/Projects/bind9/bin/named/server.c:6425:11 (lt-named+0x141562) (BuildId: a34b7ed3d2c9f1e42cab4821d53fbde3e4c5b946)
#8 load_configuration /home/ondrej/Projects/bind9/bin/named/server.c:9111:12 (lt-named+0x13a831) (BuildId: a34b7ed3d2c9f1e42cab4821d53fbde3e4c5b946)
#9 run_server /home/ondrej/Projects/bind9/bin/named/server.c:9952:2 (lt-named+0x11f465) (BuildId: a34b7ed3d2c9f1e42cab4821d53fbde3e4c5b946)
#10 isc__async_cb /home/ondrej/Projects/bind9/lib/isc/async.c:111:3 (libisc-9.19.18-dev.so+0x46682) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
#11 uv__async_io /home/ondrej/Projects/tsan/libuv/src/unix/async.c:176:5 (libuv.so.1+0x19fb5) (BuildId: 473d7a8bf34342bf61b8e7193e565ce2b7962210)
#12 uv__io_poll /home/ondrej/Projects/tsan/libuv/src/unix/linux.c:1476:11 (libuv.so.1+0x4d289) (BuildId: 473d7a8bf34342bf61b8e7193e565ce2b7962210)
#13 uv_run /home/ondrej/Projects/tsan/libuv/src/unix/core.c:447:5 (libuv.so.1+0x1adee) (BuildId: 473d7a8bf34342bf61b8e7193e565ce2b7962210)
#14 loop_thread /home/ondrej/Projects/bind9/lib/isc/loop.c:282:6 (libisc-9.19.18-dev.so+0x79c40) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
#15 thread_body /home/ondrej/Projects/bind9/lib/isc/thread.c:85:8 (libisc-9.19.18-dev.so+0x9e423) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
#16 isc_thread_main /home/ondrej/Projects/bind9/lib/isc/thread.c:116:2 (libisc-9.19.18-dev.so+0x9e313) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
#17 isc_loopmgr_run /home/ondrej/Projects/bind9/lib/isc/loop.c:454:2 (libisc-9.19.18-dev.so+0x79963) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
#18 main /home/ondrej/Projects/bind9/bin/named/main.c:1580:2 (lt-named+0x115cb2) (BuildId: a34b7ed3d2c9f1e42cab4821d53fbde3e4c5b946)
Thread T16 'isc-loop-0016' (tid=1733466, running) created by main thread at:
#0 pthread_create <null> (lt-named+0x754bb) (BuildId: a34b7ed3d2c9f1e42cab4821d53fbde3e4c5b946)
#1 isc_thread_create /home/ondrej/Projects/bind9/lib/isc/thread.c:139:8 (libisc-9.19.18-dev.so+0x9e667) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
#2 isc_loopmgr_run /home/ondrej/Projects/bind9/lib/isc/loop.c:448:3 (libisc-9.19.18-dev.so+0x798e4) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
#3 main /home/ondrej/Projects/bind9/bin/named/main.c:1580:2 (lt-named+0x115cb2) (BuildId: a34b7ed3d2c9f1e42cab4821d53fbde3e4c5b946)
Thread T29 'isc-loop-0029' (tid=1733524, running) created by main thread at:
#0 pthread_create <null> (lt-named+0x754bb) (BuildId: a34b7ed3d2c9f1e42cab4821d53fbde3e4c5b946)
#1 isc_thread_create /home/ondrej/Projects/bind9/lib/isc/thread.c:139:8 (libisc-9.19.18-dev.so+0x9e667) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
#2 isc_loopmgr_run /home/ondrej/Projects/bind9/lib/isc/loop.c:448:3 (libisc-9.19.18-dev.so+0x798e4) (BuildId: 39be444545292c4d1a56c1084e4150ff076e95d7)
#3 main /home/ondrej/Projects/bind9/bin/named/main.c:1580:2 (lt-named+0x115cb2) (BuildId: a34b7ed3d2c9f1e42cab4821d53fbde3e4c5b946)
SUMMARY: ThreadSanitizer: data race /home/ondrej/Projects/bind9/lib/isc/hashmap.c:608:20 in isc_hashmap_iter_create
==================
ThreadSanitizer: reported 1 warnings