ThreadSanitizer: data race lib/dns/adb.c:4319:19 in maybe_adjust_quota
Job #2688640 failed for 81146953.
There are four TSAN reports in the failed job, three of them already reported as #3424 (closed) and #3425 (closed).
The remaining one seems like a new thing, but also possibly a duplicate of either of the two above:
WARNING: ThreadSanitizer: data race
Write of size 8 at 0x000000000001 by thread T1 (mutexes: write M1):
#0 maybe_adjust_quota lib/dns/adb.c:4319:19 (BuildId: a361e9d59b9bacb0a373dff795784107085894b3)
#1 dns_adb_timeout lib/dns/adb.c:4416:2 (BuildId: a361e9d59b9bacb0a373dff795784107085894b3)
#2 update_edns_stats lib/dns/resolver.c:1260:3 (BuildId: a361e9d59b9bacb0a373dff795784107085894b3)
#3 fctx_cancelquery lib/dns/resolver.c:1322:4
#4 fctx_timeout lib/dns/resolver.c:4718:4 (BuildId: a361e9d59b9bacb0a373dff795784107085894b3)
#5 task_run lib/isc/task.c:851:5 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#6 isc_task_run lib/isc/task.c:944:10
#7 process_netievent lib/isc/netmgr/netmgr.c (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#8 process_queue lib/isc/netmgr/netmgr.c:999:8 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#9 process_all_queues lib/isc/netmgr/netmgr.c:780:25 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#10 async_cb lib/isc/netmgr/netmgr.c:809:6
#11 uv__async_io /usr/src/libuv-v1.44.1/src/unix/async.c:163:5 (BuildId: 120c450d14885aa5308bc95c4ea77de2c2b1cc36)
#12 isc__trampoline_run lib/isc/trampoline.c:213:11 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
Previous read of size 8 at 0x000000000001 by thread T2 (mutexes: write M3, write M3):
#0 dump_entry lib/dns/adb.c:3586:61 (BuildId: a361e9d59b9bacb0a373dff795784107085894b3)
#1 print_namehook_list lib/dns/adb.c:3678:3 (BuildId: a361e9d59b9bacb0a373dff795784107085894b3)
#2 dump_adb lib/dns/adb.c:3502:4
#3 dns_adb_dump lib/dns/adb.c:3417:2
#4 dumpdone bin/named/./server.c:11125:4 (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#5 named_server_dumpdb bin/named/./server.c (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#6 named_control_docommand bin/named/control.c:221:3 (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#7 control_recvmessage bin/named/controlconf.c:474:13 (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#8 task_run lib/isc/task.c:851:5 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#9 isc_task_run lib/isc/task.c:944:10
#10 process_netievent lib/isc/netmgr/netmgr.c (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#11 process_queue lib/isc/netmgr/netmgr.c:999:8 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#12 process_all_queues lib/isc/netmgr/netmgr.c:780:25 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#13 async_cb lib/isc/netmgr/netmgr.c:809:6
#14 uv__async_io /usr/src/libuv-v1.44.1/src/unix/async.c:163:5 (BuildId: 120c450d14885aa5308bc95c4ea77de2c2b1cc36)
#15 isc__trampoline_run lib/isc/trampoline.c:213:11 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
Location is heap block of size 305 at 0x000000000018 allocated by thread T3:
#0 malloc <null> (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#1 default_memalloc lib/isc/mem.c:715:8 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#2 mem_get lib/isc/mem.c:624:8 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#3 mem_allocateunlocked lib/isc/mem.c:1289:8
#4 isc___mem_allocate lib/isc/mem.c:1309:7
#5 isc__mem_allocate lib/isc/mem.c:2394:10 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#6 isc___mem_get lib/isc/mem.c:1059:11 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#7 isc__mem_get lib/isc/mem.c:2373:10 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#8 new_adbentry lib/dns/adb.c:1863:6 (BuildId: a361e9d59b9bacb0a373dff795784107085894b3)
#9 import_rdataset lib/dns/adb.c:969:12 (BuildId: a361e9d59b9bacb0a373dff795784107085894b3)
#10 fetch_callback lib/dns/adb.c:4024:11 (BuildId: a361e9d59b9bacb0a373dff795784107085894b3)
#11 task_run lib/isc/task.c:851:5 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#12 isc_task_run lib/isc/task.c:944:10
#13 process_netievent lib/isc/netmgr/netmgr.c (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#14 process_queue lib/isc/netmgr/netmgr.c:999:8 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#15 process_all_queues lib/isc/netmgr/netmgr.c:780:25 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#16 async_cb lib/isc/netmgr/netmgr.c:809:6
#17 uv__async_io /usr/src/libuv-v1.44.1/src/unix/async.c:163:5 (BuildId: 120c450d14885aa5308bc95c4ea77de2c2b1cc36)
#18 isc__trampoline_run lib/isc/trampoline.c:213:11 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
Mutex M3 (0x000000000028) created at:
#0 pthread_mutex_init <null> (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#1 isc__mutex_init lib/isc/pthreads/mutex.c:290:8 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#2 isc_mutexblock_init lib/isc/mutexblock.c:24:3 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#3 dns_adb_create lib/dns/adb.c:2686:2 (BuildId: a361e9d59b9bacb0a373dff795784107085894b3)
#4 dns_view_createresolver lib/dns/view.c:830:11 (BuildId: a361e9d59b9bacb0a373dff795784107085894b3)
#5 configure_view bin/named/./server.c:4675:2 (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#6 load_configuration bin/named/./server.c:9105:3 (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#7 run_server bin/named/./server.c:9815:2 (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#8 task_run lib/isc/task.c:851:5 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#9 isc_task_run lib/isc/task.c:944:10
#10 process_netievent lib/isc/netmgr/netmgr.c (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#11 process_queue lib/isc/netmgr/netmgr.c:999:8 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#12 process_all_queues lib/isc/netmgr/netmgr.c:780:25 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#13 async_cb lib/isc/netmgr/netmgr.c:809:6
#14 uv__async_io /usr/src/libuv-v1.44.1/src/unix/async.c:163:5 (BuildId: 120c450d14885aa5308bc95c4ea77de2c2b1cc36)
#15 isc__trampoline_run lib/isc/trampoline.c:213:11 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
Mutex M3 (0x000000000037) created at:
#0 pthread_mutex_init <null> (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#1 isc__mutex_init lib/isc/pthreads/mutex.c:290:8 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#2 dns_adb_create lib/dns/adb.c:2636:2 (BuildId: a361e9d59b9bacb0a373dff795784107085894b3)
#3 dns_view_createresolver lib/dns/view.c:830:11 (BuildId: a361e9d59b9bacb0a373dff795784107085894b3)
#4 configure_view bin/named/./server.c:4675:2 (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#5 load_configuration bin/named/./server.c:9105:3 (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#6 run_server bin/named/./server.c:9815:2 (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#7 task_run lib/isc/task.c:851:5 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#8 isc_task_run lib/isc/task.c:944:10
#9 process_netievent lib/isc/netmgr/netmgr.c (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#10 process_queue lib/isc/netmgr/netmgr.c:999:8 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#11 process_all_queues lib/isc/netmgr/netmgr.c:780:25 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#12 async_cb lib/isc/netmgr/netmgr.c:809:6
#13 uv__async_io /usr/src/libuv-v1.44.1/src/unix/async.c:163:5 (BuildId: 120c450d14885aa5308bc95c4ea77de2c2b1cc36)
#14 isc__trampoline_run lib/isc/trampoline.c:213:11 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
Mutex M3 (0x000000000039) created at:
#0 pthread_mutex_init <null> (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#1 isc__mutex_init lib/isc/pthreads/mutex.c:290:8 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#2 isc_mutexblock_init lib/isc/mutexblock.c:24:3 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#3 dns_adb_create lib/dns/adb.c:2670:2 (BuildId: a361e9d59b9bacb0a373dff795784107085894b3)
#4 dns_view_createresolver lib/dns/view.c:830:11 (BuildId: a361e9d59b9bacb0a373dff795784107085894b3)
#5 configure_view bin/named/./server.c:4675:2 (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#6 load_configuration bin/named/./server.c:9105:3 (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#7 run_server bin/named/./server.c:9815:2 (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#8 task_run lib/isc/task.c:851:5 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#9 isc_task_run lib/isc/task.c:944:10
#10 process_netievent lib/isc/netmgr/netmgr.c (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#11 process_queue lib/isc/netmgr/netmgr.c:999:8 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#12 process_all_queues lib/isc/netmgr/netmgr.c:780:25 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#13 async_cb lib/isc/netmgr/netmgr.c:809:6
#14 uv__async_io /usr/src/libuv-v1.44.1/src/unix/async.c:163:5 (BuildId: 120c450d14885aa5308bc95c4ea77de2c2b1cc36)
#15 isc__trampoline_run lib/isc/trampoline.c:213:11 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
Thread T2 (running) created by main thread at:
#0 pthread_create <null> (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#1 isc_thread_create lib/isc/pthreads/thread.c:81:8 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#2 isc__netmgr_create lib/isc/netmgr/netmgr.c:345:3 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#3 isc_managers_create lib/isc/managers.c:28:2 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#4 create_managers bin/named/./main.c:931:11 (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#5 setup bin/named/./main.c:1256:11
#6 main bin/named/./main.c:1564:2
Thread T2 (running) created by main thread at:
#0 pthread_create <null> (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#1 isc_thread_create lib/isc/pthreads/thread.c:81:8 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#2 isc__netmgr_create lib/isc/netmgr/netmgr.c:345:3 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#3 isc_managers_create lib/isc/managers.c:28:2 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#4 create_managers bin/named/./main.c:931:11 (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#5 setup bin/named/./main.c:1256:11
#6 main bin/named/./main.c:1564:2
Thread T3 (running) created by main thread at:
#0 pthread_create <null> (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#1 isc_thread_create lib/isc/pthreads/thread.c:81:8 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#2 isc__netmgr_create lib/isc/netmgr/netmgr.c:345:3 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#3 isc_managers_create lib/isc/managers.c:28:2 (BuildId: e0d729256a5c7a436c61de3796656fc58ea302a0)
#4 create_managers bin/named/./main.c:931:11 (BuildId: 3f0432fae76a976c190849cf408f82c1a0e9f07c)
#5 setup bin/named/./main.c:1256:11
#6 main bin/named/./main.c:1564:2
SUMMARY: ThreadSanitizer: data race lib/dns/adb.c:4319:19 in maybe_adjust_quota