Data race lib/dns/rbtdb.c:1474 in node_createdata
Job #3213901 failed for isc-private/bind9@0f03d5737bcbdaa1bf713c6db1887b14938c3421 (v9_18_sub
) in respdiff-long:tsan
CI job.
WARNING: ThreadSanitizer: data race
Read of size 8 at 0x000000000001 by thread T1 (mutexes: write M1, write M2):
#0 node_createdata lib/dns/rbtdb.c:1474
#1 rbt_addnode_withdata lib/dns/rbtdb.c:1678
#2 findnodeintree lib/dns/rbtdb.c:3014
#3 findnode lib/dns/rbtdb.c:3060
#4 dns_db_findnode lib/dns/db.c:428
#5 cache_name lib/dns/resolver.c:6559
#6 cache_message lib/dns/resolver.c:7028
#7 resquery_response lib/dns/resolver.c:8495
#8 udp_recv lib/dns/dispatch.c:638
#9 isc__nm_async_readcb netmgr/netmgr.c:2890
#10 isc__nm_readcb netmgr/netmgr.c:2863
#11 udp_recv_cb netmgr/udp.c:650
#12 isc__nm_udp_read_cb netmgr/udp.c:1057
#13 uv__udp_recvmsg /usr/src/libuv-v1.44.1/src/unix/udp.c:303
#14 isc__trampoline_run lib/isc/trampoline.c:189
Previous write of size 8 at 0x000000000001 by thread T2 (mutexes: write M3, write M4):
#0 node_createdata lib/dns/rbtdb.c:1479
#1 ecs_nonecs_nodedata_set lib/dns/rbtdb.c:1489
#2 add32 lib/dns/rbtdb.c:7662
#3 addrdatasetext lib/dns/rbtdb.c:8118
#4 dns_db_addrdatasetext lib/dns/db.c:822
#5 cache_name lib/dns/resolver.c:6766
#6 cache_message lib/dns/resolver.c:7028
#7 resquery_response lib/dns/resolver.c:8495
#8 udp_recv lib/dns/dispatch.c:638
#9 isc__nm_async_readcb netmgr/netmgr.c:2890
#10 isc__nm_readcb netmgr/netmgr.c:2863
#11 udp_recv_cb netmgr/udp.c:650
#12 isc__nm_udp_read_cb netmgr/udp.c:1057
#13 uv__udp_recvmsg /usr/src/libuv-v1.44.1/src/unix/udp.c:303
#14 isc__trampoline_run lib/isc/trampoline.c:189
Location is heap block of size 110 at 0x000000000023 allocated by thread T2:
#0 malloc ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:651
#1 mallocx lib/isc/jemalloc_shim.h:35
#2 mem_get lib/isc/mem.c:343
#3 isc__mem_get lib/isc/mem.c:761
#4 create_node lib/dns/rbt.c:1557
#5 dns_rbt_addnode lib/dns/rbt.c:629
#6 rbt_addnode_withdata lib/dns/rbtdb.c:1673
#7 findnodeintree lib/dns/rbtdb.c:3014
#8 findnode lib/dns/rbtdb.c:3060
#9 dns_db_findnode lib/dns/db.c:428
#10 cache_name lib/dns/resolver.c:6559
#11 cache_message lib/dns/resolver.c:7028
#12 resquery_response lib/dns/resolver.c:8495
#13 udp_recv lib/dns/dispatch.c:638
#14 isc__nm_async_readcb netmgr/netmgr.c:2890
#15 isc__nm_readcb netmgr/netmgr.c:2863
#16 udp_recv_cb netmgr/udp.c:650
#17 isc__nm_udp_read_cb netmgr/udp.c:1057
#18 uv__udp_recvmsg /usr/src/libuv-v1.44.1/src/unix/udp.c:303
#19 isc__trampoline_run lib/isc/trampoline.c:189
Mutex M1 (0x000000000030) created at:
#0 pthread_mutex_init ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1220
#1 isc__mutex_init lib/isc/mutex.c:49
#2 dns_resolver_create lib/dns/resolver.c:10943
#3 dns_view_createresolver lib/dns/view.c:876
#4 configure_view bin/named/server.c:4947
#5 load_configuration bin/named/server.c:9570
#6 run_server bin/named/server.c:10307
#7 task_run lib/isc/task.c:815
#8 isc_task_run lib/isc/task.c:896
#9 isc__nm_async_task netmgr/netmgr.c:848
#10 process_netievent netmgr/netmgr.c:920
#11 process_queue netmgr/netmgr.c:1013
#12 process_all_queues netmgr/netmgr.c:767
#13 async_cb netmgr/netmgr.c:796
#14 uv__async_io /usr/src/libuv-v1.44.1/src/unix/async.c:163
#15 isc__trampoline_run lib/isc/trampoline.c:189
Mutex M2 (0x000000000046) created at:
#0 pthread_rwlock_init ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1313
#1 isc_rwlock_init lib/isc/rwlock.c:40
#2 dns_rbtdb_create lib/dns/rbtdb.c:9428
#3 dns_db_create lib/dns/db.c:120
#4 cache_create_db lib/dns/cache.c:172
#5 dns_cache_create lib/dns/cache.c:254
#6 configure_view bin/named/server.c:4890
#7 load_configuration bin/named/server.c:9570
#8 run_server bin/named/server.c:10307
#9 task_run lib/isc/task.c:815
#10 isc_task_run lib/isc/task.c:896
#11 isc__nm_async_task netmgr/netmgr.c:848
#12 process_netievent netmgr/netmgr.c:920
#13 process_queue netmgr/netmgr.c:1013
#14 process_all_queues netmgr/netmgr.c:767
#15 async_cb netmgr/netmgr.c:796
#16 uv__async_io /usr/src/libuv-v1.44.1/src/unix/async.c:163
#17 isc__trampoline_run lib/isc/trampoline.c:189
Mutex M3 (0x000000000054) created at:
#0 pthread_mutex_init ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1220
#1 isc__mutex_init lib/isc/mutex.c:49
#2 dns_resolver_create lib/dns/resolver.c:10943
#3 dns_view_createresolver lib/dns/view.c:876
#4 configure_view bin/named/server.c:4947
#5 load_configuration bin/named/server.c:9570
#6 run_server bin/named/server.c:10307
#7 task_run lib/isc/task.c:815
#8 isc_task_run lib/isc/task.c:896
#9 isc__nm_async_task netmgr/netmgr.c:848
#10 process_netievent netmgr/netmgr.c:920
#11 process_queue netmgr/netmgr.c:1013
#12 process_all_queues netmgr/netmgr.c:767
#13 async_cb netmgr/netmgr.c:796
#14 uv__async_io /usr/src/libuv-v1.44.1/src/unix/async.c:163
#15 isc__trampoline_run lib/isc/trampoline.c:189
Mutex M4 (0x000000000055) created at:
#0 pthread_rwlock_init ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:1313
#1 isc_rwlock_init lib/isc/rwlock.c:40
#2 dns_rbtdb_create lib/dns/rbtdb.c:9491
#3 dns_db_create lib/dns/db.c:120
#4 cache_create_db lib/dns/cache.c:172
#5 dns_cache_create lib/dns/cache.c:254
#6 configure_view bin/named/server.c:4890
#7 load_configuration bin/named/server.c:9570
#8 run_server bin/named/server.c:10307
#9 task_run lib/isc/task.c:815
#10 isc_task_run lib/isc/task.c:896
#11 isc__nm_async_task netmgr/netmgr.c:848
#12 process_netievent netmgr/netmgr.c:920
#13 process_queue netmgr/netmgr.c:1013
#14 process_all_queues netmgr/netmgr.c:767
#15 async_cb netmgr/netmgr.c:796
#16 uv__async_io /usr/src/libuv-v1.44.1/src/unix/async.c:163
#17 isc__trampoline_run lib/isc/trampoline.c:189
Thread T1 (running) created by main thread at:
#0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:962
#1 isc_thread_create lib/isc/thread.c:73
#2 isc__netmgr_create netmgr/netmgr.c:311
#3 isc_managers_create lib/isc/managers.c:31
#4 create_managers bin/named/main.c:1033
#5 setup bin/named/main.c:1304
#6 main bin/named/main.c:1576
Thread T2 (running) created by main thread at:
#0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:962
#1 isc_thread_create lib/isc/thread.c:73
#2 isc__netmgr_create netmgr/netmgr.c:311
#3 isc_managers_create lib/isc/managers.c:31
#4 create_managers bin/named/main.c:1033
#5 setup bin/named/main.c:1304
#6 main bin/named/main.c:1576
SUMMARY: ThreadSanitizer: data race lib/dns/rbtdb.c:1474 in node_createdata