Data race lib/dns/zone.c:4127:26 in set_refreshkeytimer
Job #3451385 failed for 81c5f12e.
WARNING: ThreadSanitizer: data race
Write of size 8 at 0x000000000001 by thread T1 (mutexes: write M2, read M2):
#0 set_refreshkeytimer lib/dns/zone.c:4127:26 (BuildId: fcbd6258d04361cb62bc32ccf87eff93722e9925)
#1 sync_keyzone lib/dns/zone.c:4683:5 (BuildId: fcbd6258d04361cb62bc32ccf87eff93722e9925)
#2 dns_zone_synckeyzone lib/dns/zone.c:4767:11
#3 view_loaded bin/named/./server.c:9692:14 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#4 call_loaddone lib/dns/zt.c:308:3 (BuildId: fcbd6258d04361cb62bc32ccf87eff93722e9925)
#5 doneloading lib/dns/zt.c:597:3
#6 zone_asyncload lib/dns/zone.c:2404:3 (BuildId: fcbd6258d04361cb62bc32ccf87eff93722e9925)
#7 task_run lib/isc/task.c:859:5 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#8 isc_task_run lib/isc/task.c:953:10
#9 process_netievent lib/isc/netmgr/netmgr.c (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#10 process_queue lib/isc/netmgr/netmgr.c:1009:8 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#11 process_all_queues lib/isc/netmgr/netmgr.c:790:25 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#12 async_cb lib/isc/netmgr/netmgr.c:819: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: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
Previous read of size 4 at 0x000000000001 by thread T2:
#0 isc_time_compare lib/isc/unix/time.c:211:24 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#1 zone_maintenance lib/dns/zone.c:11440:7 (BuildId: fcbd6258d04361cb62bc32ccf87eff93722e9925)
#2 zone_timer lib/dns/zone.c:15072:2 (BuildId: fcbd6258d04361cb62bc32ccf87eff93722e9925)
#3 task_run lib/isc/task.c:859:5 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#4 isc_task_run lib/isc/task.c:953:10
#5 process_netievent lib/isc/netmgr/netmgr.c (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#6 process_queue lib/isc/netmgr/netmgr.c:1009:8 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#7 process_all_queues lib/isc/netmgr/netmgr.c:790:25 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#8 async_cb lib/isc/netmgr/netmgr.c:819:6
#9 uv__async_io /usr/src/libuv-v1.44.1/src/unix/async.c:163:5 (BuildId: 120c450d14885aa5308bc95c4ea77de2c2b1cc36)
#10 isc__trampoline_run lib/isc/trampoline.c:213:11 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
Location is heap block of size 3289 at 0x000000000016 allocated by thread T1:
#0 malloc <null> (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#1 default_memalloc lib/isc/mem.c:716:8 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#2 mem_get lib/isc/mem.c:625:8 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#3 mem_allocateunlocked lib/isc/mem.c:1290:8
#4 isc___mem_allocate lib/isc/mem.c:1310:7
#5 isc__mem_allocate lib/isc/mem.c:2406:10 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#6 isc___mem_get lib/isc/mem.c:1060:11 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#7 isc__mem_get lib/isc/mem.c:2385:10 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#8 dns_zone_create lib/dns/zone.c:1137:9 (BuildId: fcbd6258d04361cb62bc32ccf87eff93722e9925)
#9 dns_zonemgr_createzone lib/dns/zone.c:18828:11 (BuildId: fcbd6258d04361cb62bc32ccf87eff93722e9925)
#10 add_keydata_zone bin/named/./server.c:6789:2 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#11 configure_view_dnsseckeys bin/named/./server.c:1218:2 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#12 configure_view bin/named/./server.c:5515:2 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#13 load_configuration bin/named/./server.c:9136:3 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#14 loadconfig bin/named/./server.c:10322:11 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#15 named_server_reconfigcommand bin/named/./server.c:10724:2 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#16 named_control_docommand bin/named/control.c:252:12 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#17 control_recvmessage bin/named/controlconf.c:477:13 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#18 task_run lib/isc/task.c:859:5 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#19 isc_task_run lib/isc/task.c:953:10
#20 process_netievent lib/isc/netmgr/netmgr.c (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#21 process_queue lib/isc/netmgr/netmgr.c:1009:8 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#22 process_all_queues lib/isc/netmgr/netmgr.c:790:25 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#23 async_cb lib/isc/netmgr/netmgr.c:819:6
#24 uv__async_io /usr/src/libuv-v1.44.1/src/unix/async.c:163:5 (BuildId: 120c450d14885aa5308bc95c4ea77de2c2b1cc36)
#25 isc__trampoline_run lib/isc/trampoline.c:213:11 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
Mutex M2 (0x000000000033) created at:
#0 pthread_mutex_init <null> (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#1 isc__mutex_init lib/isc/pthreads/mutex.c:290:8 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#2 dns_zone_create lib/dns/zone.c:1142:2 (BuildId: fcbd6258d04361cb62bc32ccf87eff93722e9925)
#3 dns_zonemgr_createzone lib/dns/zone.c:18828:11 (BuildId: fcbd6258d04361cb62bc32ccf87eff93722e9925)
#4 add_keydata_zone bin/named/./server.c:6789:2 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#5 configure_view_dnsseckeys bin/named/./server.c:1218:2 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#6 configure_view bin/named/./server.c:5515:2 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#7 load_configuration bin/named/./server.c:9136:3 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#8 loadconfig bin/named/./server.c:10322:11 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#9 named_server_reconfigcommand bin/named/./server.c:10724:2 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#10 named_control_docommand bin/named/control.c:252:12 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#11 control_recvmessage bin/named/controlconf.c:477:13 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#12 task_run lib/isc/task.c:859:5 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#13 isc_task_run lib/isc/task.c:953:10
#14 process_netievent lib/isc/netmgr/netmgr.c (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#15 process_queue lib/isc/netmgr/netmgr.c:1009:8 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#16 process_all_queues lib/isc/netmgr/netmgr.c:790:25 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#17 async_cb lib/isc/netmgr/netmgr.c:819: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:213:11 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
Mutex M2 (0x000000000037) created at:
#0 pthread_rwlock_init <null> (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#1 isc_rwlock_init lib/isc/rwlock.c:41:2 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#2 dns_rbtdb_create lib/dns/rbtdb.c:8656:2 (BuildId: fcbd6258d04361cb62bc32ccf87eff93722e9925)
#3 dns_db_create lib/dns/db.c:120:13 (BuildId: fcbd6258d04361cb62bc32ccf87eff93722e9925)
#4 zone_load lib/dns/zone.c:2307:11 (BuildId: fcbd6258d04361cb62bc32ccf87eff93722e9925)
#5 dns_zone_load lib/dns/zone.c:2380:10 (BuildId: fcbd6258d04361cb62bc32ccf87eff93722e9925)
#6 load_zones bin/named/./server.c:9754:13 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#7 named_server_reconfigcommand bin/named/./server.c:10726:11 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#8 named_control_docommand bin/named/control.c:252:12 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#9 control_recvmessage bin/named/controlconf.c:477:13 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#10 task_run lib/isc/task.c:859:5 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#11 isc_task_run lib/isc/task.c:953:10
#12 process_netievent lib/isc/netmgr/netmgr.c (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#13 process_queue lib/isc/netmgr/netmgr.c:1009:8 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#14 process_all_queues lib/isc/netmgr/netmgr.c:790:25 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#15 async_cb lib/isc/netmgr/netmgr.c:819:6
#16 uv__async_io /usr/src/libuv-v1.44.1/src/unix/async.c:163:5 (BuildId: 120c450d14885aa5308bc95c4ea77de2c2b1cc36)
#17 isc__trampoline_run lib/isc/trampoline.c:213:11 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
Thread T1 (running) created by main thread at:
#0 pthread_create <null> (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#1 isc_thread_create lib/isc/pthreads/thread.c:81:8 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#2 isc__netmgr_create lib/isc/netmgr/netmgr.c:355:3 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#3 isc_managers_create lib/isc/managers.c:28:2 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#4 create_managers bin/named/./main.c:1065:11 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#5 setup bin/named/./main.c:1397:11
#6 main bin/named/./main.c:1711:2
Thread T2 (running) created by main thread at:
#0 pthread_create <null> (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#1 isc_thread_create lib/isc/pthreads/thread.c:81:8 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#2 isc__netmgr_create lib/isc/netmgr/netmgr.c:355:3 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#3 isc_managers_create lib/isc/managers.c:28:2 (BuildId: 6899e3b78cd26e2e0be1758888e5b949c65bdb33)
#4 create_managers bin/named/./main.c:1065:11 (BuildId: dbafb0d25d480c1049a7bd687a3c53a6f4aeace4)
#5 setup bin/named/./main.c:1397:11
#6 main bin/named/./main.c:1711:2
SUMMARY: ThreadSanitizer: data race lib/dns/zone.c:4127:26 in set_refreshkeytimer