ThreadSanitizer: data race lib/isc/unix/time.c:110 in isc_time_isepoch
Job 1742391 on v9_16
failed in the dnssec
system test with the following TSAN error:
WARNING: ThreadSanitizer: data race
Read of size 4 at 0x000000000001 by thread T1 (mutexes: read M1, write M2):
#0 isc_time_isepoch lib/isc/unix/time.c:110
#1 zone_settimer lib/dns/zone.c:14649
#2 dns_zone_maintenance lib/dns/zone.c:6281
#3 dns_zonemgr_forcemaint lib/dns/zone.c:18190
#4 view_loaded server.c:9654
#5 call_loaddone lib/dns/zt.c:301
#6 doneloading lib/dns/zt.c:575
#7 zone_asyncload lib/dns/zone.c:2259
#8 task_run lib/isc/task.c:845
#9 isc_task_run lib/isc/task.c:938
#10 isc__nm_async_task lib/isc/netmgr/netmgr.c:855
#11 process_netievent lib/isc/netmgr/netmgr.c:934
#12 process_queue lib/isc/netmgr/netmgr.c:1003
#13 process_all_queues lib/isc/netmgr/netmgr.c:775
#14 async_cb lib/isc/netmgr/netmgr.c:804
#15 <null> <null>
#16 isc__trampoline_run lib/isc/trampoline.c:191
#17 <null> <null>
Previous write of size 4 at 0x000000000001 by thread T2:
#0 isc_time_set lib/isc/unix/time.c:93
#1 set_key_expiry_warning lib/dns/zone.c:6430
#2 del_sigs lib/dns/zone.c:6711
#3 zone_resigninc lib/dns/zone.c:7113
#4 zone_maintenance lib/dns/zone.c:11111
#5 zone_timer lib/dns/zone.c:14588
#6 task_run lib/isc/task.c:845
#7 isc_task_run lib/isc/task.c:938
#8 isc__nm_async_task lib/isc/netmgr/netmgr.c:855
#9 process_netievent lib/isc/netmgr/netmgr.c:934
#10 process_queue lib/isc/netmgr/netmgr.c:1003
#11 process_all_queues lib/isc/netmgr/netmgr.c:775
#12 async_cb lib/isc/netmgr/netmgr.c:804
#13 <null> <null>
#14 isc__trampoline_run lib/isc/trampoline.c:191
#15 <null> <null>
Location is heap block of size 2801 at 0x000000000023 allocated by thread T3:
#0 malloc <null>
#1 default_memalloc lib/isc/mem.c:717
#2 mem_get lib/isc/mem.c:626
#3 mem_allocateunlocked lib/isc/mem.c:1292
#4 isc___mem_allocate lib/isc/mem.c:1312
#5 isc__mem_allocate lib/isc/mem.c:2563
#6 isc___mem_get lib/isc/mem.c:1061
#7 isc__mem_get lib/isc/mem.c:2542
#8 dns_zone_create lib/dns/zone.c:1047
#9 dns_zonemgr_createzone lib/dns/zone.c:18063
#10 configure_zone server.c:6451
#11 configure_view server.c:4024
#12 load_configuration server.c:9096
#13 run_server server.c:9815
#14 task_run lib/isc/task.c:845
#15 isc_task_run lib/isc/task.c:938
#16 isc__nm_async_task lib/isc/netmgr/netmgr.c:855
#17 process_netievent lib/isc/netmgr/netmgr.c:934
#18 process_queue lib/isc/netmgr/netmgr.c:1003
#19 process_all_queues lib/isc/netmgr/netmgr.c:775
#20 async_cb lib/isc/netmgr/netmgr.c:804
#21 <null> <null>
#22 isc__trampoline_run lib/isc/trampoline.c:191
#23 <null> <null>
Mutex M1 is already destroyed.
Mutex M2 is already destroyed.
Thread T3 (running) created by main thread at:
#0 pthread_create <null>
#1 isc_thread_create lib/isc/pthreads/thread.c:79
#2 isc__netmgr_create lib/isc/netmgr/netmgr.c:350
#3 isc_managers_create lib/isc/managers.c:33
#4 create_managers main.c:920
#5 setup main.c:1245
#6 main main.c:1548
Thread T2 (running) created by main thread at:
#0 pthread_create <null>
#1 isc_thread_create lib/isc/pthreads/thread.c:79
#2 isc__netmgr_create lib/isc/netmgr/netmgr.c:350
#3 isc_managers_create lib/isc/managers.c:33
#4 create_managers main.c:920
#5 setup main.c:1245
#6 main main.c:1548
Thread T3 (running) created by main thread at:
#0 pthread_create <null>
#1 isc_thread_create lib/isc/pthreads/thread.c:79
#2 isc__netmgr_create lib/isc/netmgr/netmgr.c:350
#3 isc_managers_create lib/isc/managers.c:33
#4 create_managers main.c:920
#5 setup main.c:1245
#6 main main.c:1548
SUMMARY: ThreadSanitizer: data race lib/isc/unix/time.c:110 in isc_time_isepoch
Similar TSAN error in the same CI job: d84c7cc0b14ccdcf28a2c70083942efdc1f99addab62b39f3ab8f81f1e507975.tsan