ThreadSanitizer: data race lib/dns/catz.c:2257:2 in dns__catz_update_cb
Job #3270428 failed for 71f6ce0cafdd71cb720701e728c6e2e4f6587233.
This happened on bind-9.18-sub
, so while I don't think it's the case, we just might be missing a bind-9.18
fix and a bind-9.18-sub
rebase on top of bind-9.18
is all we need. !7705 (merged) is on the affected branch, tho.
WARNING: ThreadSanitizer: data race
Read of size 8 at 0x000000000001 by thread T1:
#0 dns__catz_update_cb lib/dns/catz.c:2257:2 (BuildId: 666f66a42faef3f08eba7d3dc612014f0ee091e0)
#1 isc__nm_work_run lib/isc/netmgr/netmgr.c:3520:2 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#2 isc__trampoline_run lib/isc/trampoline.c:189:11 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#3 isc__nm_work_cb lib/isc/netmgr/netmgr.c:3532:9 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#4 uv__queue_work /usr/src/libuv-v1.44.1/src/threadpool.c:326:3 (BuildId: 120c450d14885aa5308bc95c4ea77de2c2b1cc36)
Previous write of size 8 at 0x000000000001 by thread T2 (mutexes: write M1):
#0 attach lib/dns/rbtdb.c:788:11 (BuildId: 666f66a42faef3f08eba7d3dc612014f0ee091e0)
#1 dns_db_attach lib/dns/db.c:143:2 (BuildId: 666f66a42faef3f08eba7d3dc612014f0ee091e0)
#2 dns_catz_dbupdate_callback lib/dns/catz.c:2163:3 (BuildId: 666f66a42faef3f08eba7d3dc612014f0ee091e0)
#3 dns_db_endload lib/dns/db.c:293:3 (BuildId: 666f66a42faef3f08eba7d3dc612014f0ee091e0)
#4 zone_loaddone lib/dns/zone.c:17840:12 (BuildId: 666f66a42faef3f08eba7d3dc612014f0ee091e0)
#5 load_quantum lib/dns/master.c:3174:3 (BuildId: 666f66a42faef3f08eba7d3dc612014f0ee091e0)
#6 task_run lib/isc/task.c:815:5 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#7 isc_task_run lib/isc/task.c:896:10
#8 isc__nm_async_task lib/isc/netmgr/netmgr.c:848:11 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#9 process_netievent lib/isc/netmgr/netmgr.c (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#10 process_queue lib/isc/netmgr/netmgr.c:1013:8 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#11 process_all_queues lib/isc/netmgr/netmgr.c:767:25 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#12 async_cb lib/isc/netmgr/netmgr.c:796: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:189:11 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
Location is heap block of size 520 at 0x000000000019 allocated by thread T3:
#0 malloc <null> (BuildId: 7e037db70ff852e5656e0d5112bfd951e2e76fbf)
#1 mallocx lib/isc/./jemalloc_shim.h:35:10 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#2 mem_get lib/isc/mem.c:343:8
#3 isc__mem_get lib/isc/mem.c:761:8
#4 dns_catz_new_zone lib/dns/catz.c:833:9 (BuildId: 666f66a42faef3f08eba7d3dc612014f0ee091e0)
#5 dns_catz_add_zone lib/dns/catz.c:883:11 (BuildId: 666f66a42faef3f08eba7d3dc612014f0ee091e0)
#6 configure_catz_zone bin/named/server.c:3071:11 (BuildId: 7e037db70ff852e5656e0d5112bfd951e2e76fbf)
#7 configure_catz bin/named/server.c:3217:3
#8 configure_view bin/named/server.c:4345:3 (BuildId: 7e037db70ff852e5656e0d5112bfd951e2e76fbf)
#9 load_configuration bin/named/server.c:9570:3 (BuildId: 7e037db70ff852e5656e0d5112bfd951e2e76fbf)
#10 run_server bin/named/server.c:10307:2 (BuildId: 7e037db70ff852e5656e0d5112bfd951e2e76fbf)
#11 task_run lib/isc/task.c:815:5 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#12 isc_task_run lib/isc/task.c:896:10
#13 isc__nm_async_task lib/isc/netmgr/netmgr.c:848:11 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#14 process_netievent lib/isc/netmgr/netmgr.c (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#15 process_queue lib/isc/netmgr/netmgr.c:1013:8 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#16 process_all_queues lib/isc/netmgr/netmgr.c:767:25 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#17 async_cb lib/isc/netmgr/netmgr.c:796:6
#18 uv__async_io /usr/src/libuv-v1.44.1/src/unix/async.c:163:5 (BuildId: 120c450d14885aa5308bc95c4ea77de2c2b1cc36)
#19 isc__trampoline_run lib/isc/trampoline.c:189:11 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
Mutex M1 (0x000000000028) created at:
#0 pthread_mutex_init <null> (BuildId: 7e037db70ff852e5656e0d5112bfd951e2e76fbf)
#1 isc__mutex_init lib/isc/mutex.c:49:10 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#2 dns_catz_new_zones lib/dns/catz.c:798:2 (BuildId: 666f66a42faef3f08eba7d3dc612014f0ee091e0)
#3 configure_catz bin/named/server.c:3194:2 (BuildId: 7e037db70ff852e5656e0d5112bfd951e2e76fbf)
#4 configure_view bin/named/server.c:4345:3 (BuildId: 7e037db70ff852e5656e0d5112bfd951e2e76fbf)
#5 load_configuration bin/named/server.c:9570:3 (BuildId: 7e037db70ff852e5656e0d5112bfd951e2e76fbf)
#6 run_server bin/named/server.c:10307:2 (BuildId: 7e037db70ff852e5656e0d5112bfd951e2e76fbf)
#7 task_run lib/isc/task.c:815:5 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#8 isc_task_run lib/isc/task.c:896:10
#9 isc__nm_async_task lib/isc/netmgr/netmgr.c:848:11 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#10 process_netievent lib/isc/netmgr/netmgr.c (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#11 process_queue lib/isc/netmgr/netmgr.c:1013:8 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#12 process_all_queues lib/isc/netmgr/netmgr.c:767:25 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#13 async_cb lib/isc/netmgr/netmgr.c:796: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:189:11 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
Thread T3 (running) created by thread T3 at:
#0 pthread_create <null> (BuildId: 7e037db70ff852e5656e0d5112bfd951e2e76fbf)
#1 uv_thread_create_ex /usr/src/libuv-v1.44.1/src/unix/thread.c:279:9 (BuildId: 120c450d14885aa5308bc95c4ea77de2c2b1cc36)
#2 uv_once /usr/src/libuv-v1.44.1/src/unix/thread.c:440:7 (BuildId: 120c450d14885aa5308bc95c4ea77de2c2b1cc36)
#3 dns__catz_timer_cb lib/dns/catz.c:2118:2 (BuildId: 666f66a42faef3f08eba7d3dc612014f0ee091e0)
#4 task_run lib/isc/task.c:815:5 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#5 isc_task_run lib/isc/task.c:896:10
#6 isc__nm_async_task lib/isc/netmgr/netmgr.c:848:11 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#7 process_netievent lib/isc/netmgr/netmgr.c (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#8 process_queue lib/isc/netmgr/netmgr.c:1013:8 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#9 process_all_queues lib/isc/netmgr/netmgr.c:767:25 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#10 async_cb lib/isc/netmgr/netmgr.c:796: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:189:11 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
Thread T2 (running) created by main thread at:
#0 pthread_create <null> (BuildId: 7e037db70ff852e5656e0d5112bfd951e2e76fbf)
#1 isc_thread_create lib/isc/thread.c:73:8 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#2 isc__netmgr_create lib/isc/netmgr/netmgr.c:311:3 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#3 isc_managers_create lib/isc/managers.c:31:2 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#4 create_managers bin/named/main.c:1033:11 (BuildId: 7e037db70ff852e5656e0d5112bfd951e2e76fbf)
#5 setup bin/named/main.c:1304:11
#6 main bin/named/main.c:1576:2
Thread T3 (running) created by main thread at:
#0 pthread_create <null> (BuildId: 7e037db70ff852e5656e0d5112bfd951e2e76fbf)
#1 isc_thread_create lib/isc/thread.c:73:8 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#2 isc__netmgr_create lib/isc/netmgr/netmgr.c:311:3 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#3 isc_managers_create lib/isc/managers.c:31:2 (BuildId: ad8c165bb75f75ca44c4b2a82d508c708b57531d)
#4 create_managers bin/named/main.c:1033:11 (BuildId: 7e037db70ff852e5656e0d5112bfd951e2e76fbf)
#5 setup bin/named/main.c:1304:11
#6 main bin/named/main.c:1576:2
SUMMARY: ThreadSanitizer: data race lib/dns/catz.c:2257:2 in dns__catz_update_cb