Data race lib/isc/time.c:149 in time_now
The statschannel
system test triggered TSAN report on v9.18-S. The bind-9.18-sub
branch has been rebased yesterday.
WARNING: ThreadSanitizer: data race
Write of size 4 at 0x000000000001 by thread T0001 (mutexes: write M0001):
#0 time_now lib/isc/time.c:149 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#1 isc_time_now lib/isc/time.c:162 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#2 soa_query lib/dns/zone.c:14756 (BuildId: 1d77f2ec19011b82828e0d5d921360bee8d6cfc4)
#3 task_run lib/isc/task.c:832 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#4 isc_task_run lib/isc/task.c:913
#5 isc__nm_async_task netmgr/netmgr.c:867 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#6 process_netievent netmgr/netmgr.c:949 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#7 process_queue netmgr/netmgr.c:1042 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#8 process_all_queues netmgr/netmgr.c:780 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#9 async_cb netmgr/netmgr.c:809
#10 uv__async_io src/unix/async.c:176 (BuildId: 16ce2bd0a43f71d0593ea690cd09cab0111c4493)
#11 uv__async_io src/unix/async.c:140 (BuildId: 16ce2bd0a43f71d0593ea690cd09cab0111c4493)
#12 uv__io_poll src/unix/linux.c:1528 (BuildId: 16ce2bd0a43f71d0593ea690cd09cab0111c4493)
#13 uv_run src/unix/core.c:448 (BuildId: 16ce2bd0a43f71d0593ea690cd09cab0111c4493)
#14 nm_thread netmgr/netmgr.c:711 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#15 isc__trampoline_run lib/isc/trampoline.c:190 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
Previous read of size 8 at 0x000000000001 by thread T0002 (mutexes: read M0002):
#0 dns_zone_getxfrintime lib/dns/zone.c:18471 (BuildId: 1d77f2ec19011b82828e0d5d921360bee8d6cfc4)
#1 xfrin_jsonrender bin/named/statschannel.c:3256 (BuildId: 97e691a689eb7bafd369d969b4c8c633cbe8fd10)
#2 dns_zt_apply lib/dns/zt.c:553 (BuildId: 1d77f2ec19011b82828e0d5d921360bee8d6cfc4)
#3 generatejson bin/named/statschannel.c:3559 (BuildId: 97e691a689eb7bafd369d969b4c8c633cbe8fd10)
#4 render_json bin/named/statschannel.c:3896 (BuildId: 97e691a689eb7bafd369d969b4c8c633cbe8fd10)
#5 render_json_xfrins bin/named/statschannel.c:3966 (BuildId: 97e691a689eb7bafd369d969b4c8c633cbe8fd10)
#6 prepare_response lib/isc/httpd.c:821 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#7 httpd_request lib/isc/httpd.c:982
#8 isc__nm_async_readcb netmgr/netmgr.c:2954 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#9 isc__nm_readcb netmgr/netmgr.c:2927 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#10 isc__nm_tcp_read_cb netmgr/tcp.c:904 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#11 uv__read src/unix/stream.c:1143 (BuildId: 16ce2bd0a43f71d0593ea690cd09cab0111c4493)
#12 uv__stream_io src/unix/stream.c:1203 (BuildId: 16ce2bd0a43f71d0593ea690cd09cab0111c4493)
#13 uv__io_poll src/unix/linux.c:1528 (BuildId: 16ce2bd0a43f71d0593ea690cd09cab0111c4493)
#14 uv_run src/unix/core.c:448 (BuildId: 16ce2bd0a43f71d0593ea690cd09cab0111c4493)
#15 nm_thread netmgr/netmgr.c:711 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#16 isc__trampoline_run lib/isc/trampoline.c:190 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
Location is heap block of size 3336 at 0x000000000028 allocated by thread T0003:
#0 malloc <null> (BuildId: c8455fafa477dccacaa74df59b23caba0427f5bf)
#1 mallocx lib/isc/jemalloc_shim.h:43 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#2 mem_get lib/isc/mem.c:352
#3 isc__mem_get lib/isc/mem.c:825 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#4 dns_zone_create lib/dns/zone.c:1147 (BuildId: 1d77f2ec19011b82828e0d5d921360bee8d6cfc4)
#5 dns_zonemgr_createzone lib/dns/zone.c:19446 (BuildId: 1d77f2ec19011b82828e0d5d921360bee8d6cfc4)
#6 configure_zone bin/named/server.c:7154 (BuildId: 97e691a689eb7bafd369d969b4c8c633cbe8fd10)
#7 configure_view bin/named/server.c:4482 (BuildId: 97e691a689eb7bafd369d969b4c8c633cbe8fd10)
#8 load_configuration bin/named/server.c:9709 (BuildId: 97e691a689eb7bafd369d969b4c8c633cbe8fd10)
#9 run_server bin/named/server.c:10446 (BuildId: 97e691a689eb7bafd369d969b4c8c633cbe8fd10)
#10 task_run lib/isc/task.c:832 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#11 isc_task_run lib/isc/task.c:913
#12 isc__nm_async_task netmgr/netmgr.c:867 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#13 process_netievent netmgr/netmgr.c:949 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#14 process_queue netmgr/netmgr.c:1042 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#15 process_all_queues netmgr/netmgr.c:780 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#16 async_cb netmgr/netmgr.c:809
#17 uv__async_io src/unix/async.c:176 (BuildId: 16ce2bd0a43f71d0593ea690cd09cab0111c4493)
#18 uv__async_io src/unix/async.c:140 (BuildId: 16ce2bd0a43f71d0593ea690cd09cab0111c4493)
#19 uv__io_poll src/unix/linux.c:1528 (BuildId: 16ce2bd0a43f71d0593ea690cd09cab0111c4493)
#20 uv_run src/unix/core.c:448 (BuildId: 16ce2bd0a43f71d0593ea690cd09cab0111c4493)
#21 nm_thread netmgr/netmgr.c:711 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#22 isc__trampoline_run lib/isc/trampoline.c:190 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
Mutex M0001 (0x000000000038) created at:
#0 pthread_mutex_init <null> (BuildId: c8455fafa477dccacaa74df59b23caba0427f5bf)
#1 isc__mutex_init lib/isc/mutex.c:49 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#2 dns_zone_create lib/dns/zone.c:1152 (BuildId: 1d77f2ec19011b82828e0d5d921360bee8d6cfc4)
#3 dns_zonemgr_createzone lib/dns/zone.c:19446 (BuildId: 1d77f2ec19011b82828e0d5d921360bee8d6cfc4)
#4 configure_zone bin/named/server.c:7154 (BuildId: 97e691a689eb7bafd369d969b4c8c633cbe8fd10)
#5 configure_view bin/named/server.c:4482 (BuildId: 97e691a689eb7bafd369d969b4c8c633cbe8fd10)
#6 load_configuration bin/named/server.c:9709 (BuildId: 97e691a689eb7bafd369d969b4c8c633cbe8fd10)
#7 run_server bin/named/server.c:10446 (BuildId: 97e691a689eb7bafd369d969b4c8c633cbe8fd10)
#8 task_run lib/isc/task.c:832 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#9 isc_task_run lib/isc/task.c:913
#10 isc__nm_async_task netmgr/netmgr.c:867 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#11 process_netievent netmgr/netmgr.c:949 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#12 process_queue netmgr/netmgr.c:1042 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#13 process_all_queues netmgr/netmgr.c:780 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#14 async_cb netmgr/netmgr.c:809
#15 uv__async_io src/unix/async.c:176 (BuildId: 16ce2bd0a43f71d0593ea690cd09cab0111c4493)
#16 uv__async_io src/unix/async.c:140 (BuildId: 16ce2bd0a43f71d0593ea690cd09cab0111c4493)
#17 uv__io_poll src/unix/linux.c:1528 (BuildId: 16ce2bd0a43f71d0593ea690cd09cab0111c4493)
#18 uv_run src/unix/core.c:448 (BuildId: 16ce2bd0a43f71d0593ea690cd09cab0111c4493)
#19 nm_thread netmgr/netmgr.c:711 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#20 isc__trampoline_run lib/isc/trampoline.c:190 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
Mutex M0002 (0x000000000042) created at:
#0 pthread_rwlock_init <null> (BuildId: c8455fafa477dccacaa74df59b23caba0427f5bf)
#1 isc_rwlock_init lib/isc/rwlock.c:40 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#2 dns_zt_create lib/dns/zt.c:99 (BuildId: 1d77f2ec19011b82828e0d5d921360bee8d6cfc4)
#3 dns_view_create lib/dns/view.c:132 (BuildId: 1d77f2ec19011b82828e0d5d921360bee8d6cfc4)
#4 create_view bin/named/server.c:6819 (BuildId: 97e691a689eb7bafd369d969b4c8c633cbe8fd10)
#5 load_configuration bin/named/server.c:9663 (BuildId: 97e691a689eb7bafd369d969b4c8c633cbe8fd10)
#6 run_server bin/named/server.c:10446 (BuildId: 97e691a689eb7bafd369d969b4c8c633cbe8fd10)
#7 task_run lib/isc/task.c:832 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#8 isc_task_run lib/isc/task.c:913
#9 isc__nm_async_task netmgr/netmgr.c:867 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#10 process_netievent netmgr/netmgr.c:949 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#11 process_queue netmgr/netmgr.c:1042 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#12 process_all_queues netmgr/netmgr.c:780 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#13 async_cb netmgr/netmgr.c:809
#14 uv__async_io src/unix/async.c:176 (BuildId: 16ce2bd0a43f71d0593ea690cd09cab0111c4493)
#15 uv__async_io src/unix/async.c:140 (BuildId: 16ce2bd0a43f71d0593ea690cd09cab0111c4493)
#16 uv__io_poll src/unix/linux.c:1528 (BuildId: 16ce2bd0a43f71d0593ea690cd09cab0111c4493)
#17 uv_run src/unix/core.c:448 (BuildId: 16ce2bd0a43f71d0593ea690cd09cab0111c4493)
#18 nm_thread netmgr/netmgr.c:711 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#19 isc__trampoline_run lib/isc/trampoline.c:190 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
Thread T0001 (running) created by main thread at:
#0 pthread_create <null> (BuildId: c8455fafa477dccacaa74df59b23caba0427f5bf)
#1 isc_thread_create lib/isc/thread.c:73 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#2 isc__netmgr_create netmgr/netmgr.c:324 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#3 isc_managers_create lib/isc/managers.c:31 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#4 create_managers bin/named/main.c:1046 (BuildId: 97e691a689eb7bafd369d969b4c8c633cbe8fd10)
#5 setup bin/named/main.c:1317
#6 main bin/named/main.c:1598
Thread T0002 (running) created by main thread at:
#0 pthread_create <null> (BuildId: c8455fafa477dccacaa74df59b23caba0427f5bf)
#1 isc_thread_create lib/isc/thread.c:73 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#2 isc__netmgr_create netmgr/netmgr.c:324 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#3 isc_managers_create lib/isc/managers.c:31 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#4 create_managers bin/named/main.c:1046 (BuildId: 97e691a689eb7bafd369d969b4c8c633cbe8fd10)
#5 setup bin/named/main.c:1317
#6 main bin/named/main.c:1598
Thread T0003 (running) created by main thread at:
#0 pthread_create <null> (BuildId: c8455fafa477dccacaa74df59b23caba0427f5bf)
#1 isc_thread_create lib/isc/thread.c:73 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#2 isc__netmgr_create netmgr/netmgr.c:324 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#3 isc_managers_create lib/isc/managers.c:31 (BuildId: 17e3400744afa05829444a4c96f44a54e7901981)
#4 create_managers bin/named/main.c:1046 (BuildId: 97e691a689eb7bafd369d969b4c8c633cbe8fd10)
#5 setup bin/named/main.c:1317
#6 main bin/named/main.c:1598
SUMMARY: ThreadSanitizer: data race lib/isc/time.c:149 in time_now