ThreadSanitizer: data race bin/tests/system/rpz/testlib/test-data.c:401 in add_other_rr
Job #3279668 failed for cc8b9c1f.
system:gcc:tsan
reported ThreadSanitizer data race in a test code (bin/tests/system/rpz/testlib/test-data.c
).
This should be either fixed or the file suppressed in tsan-suppressions.txt
.
WARNING: ThreadSanitizer: data race
Read of size 4 at 0x000000000001 by thread T1:
#0 add_other_rr bin/tests/system/rpz/testlib/test-data.c:401
#1 apply_update bin/tests/system/rpz/testlib/test-data.c:1036
#2 load_all_updates bin/tests/system/rpz/testlib/test-data.c:1351
#3 apply_all_updates bin/tests/system/rpz/testlib/dummylib.c:739
#4 trpz_rsp_create bin/tests/system/rpz/testlib/dummylib.c:855
#5 dns_dnsrps_rewrite_init lib/dns/dnsrps.c:266
#6 rpz_rewrite lib/ns/query.c:4212
#7 query_checkrpz lib/ns/query.c:7200
#8 query_gotanswer lib/ns/query.c:7630
#9 query_lookup lib/ns/query.c:6137
#10 ns__query_start lib/ns/query.c:5822
#11 query_setup lib/ns/query.c:5536
#12 ns_query_start lib/ns/query.c:12102
#13 ns_client_request lib/ns/client.c:2234
#14 isc__nm_readcb_job netmgr/netmgr.c:1883
#15 isc__nm_readcb netmgr/netmgr.c:1897
#16 isc__nm_udp_read_cb netmgr/udp.c:592
#17 uv__udp_recvmmsg /usr/src/libuv-v1.44.1/src/unix/udp.c:231
#18 isc__trampoline_run lib/isc/trampoline.c:202
Previous write of size 4 at 0x000000000001 by thread T2:
#0 add_other_rr bin/tests/system/rpz/testlib/test-data.c:401
#1 apply_update bin/tests/system/rpz/testlib/test-data.c:1036
#2 load_all_updates bin/tests/system/rpz/testlib/test-data.c:1351
#3 apply_all_updates bin/tests/system/rpz/testlib/dummylib.c:739
#4 trpz_rsp_create bin/tests/system/rpz/testlib/dummylib.c:855
#5 dns_dnsrps_rewrite_init lib/dns/dnsrps.c:266
#6 rpz_rewrite lib/ns/query.c:4212
#7 query_checkrpz lib/ns/query.c:7200
#8 query_gotanswer lib/ns/query.c:7630
#9 query_lookup lib/ns/query.c:6137
#10 ns__query_start lib/ns/query.c:5822
#11 query_setup lib/ns/query.c:5536
#12 ns_query_start lib/ns/query.c:12102
#13 ns_client_request lib/ns/client.c:2234
#14 isc__nm_readcb_job netmgr/netmgr.c:1883
#15 isc__nm_readcb netmgr/netmgr.c:1897
#16 isc__nm_udp_read_cb netmgr/udp.c:592
#17 uv__udp_recvmmsg /usr/src/libuv-v1.44.1/src/unix/udp.c:231
#18 isc__trampoline_run lib/isc/trampoline.c:202
Location is global 'rrn.1' of size 4 at 0x000000000001
Thread T2 'isc-loop-0008' (running) created by main thread at:
#0 pthread_create <null>
#1 isc_thread_create lib/isc/thread.c:70
#2 isc_loopmgr_run lib/isc/loop.c:478
#3 main bin/named/main.c:1514
Thread T2 'isc-loop-0001' (running) created by main thread at:
#0 pthread_create <null>
#1 isc_thread_create lib/isc/thread.c:70
#2 isc_loopmgr_run lib/isc/loop.c:478
#3 main bin/named/main.c:1514
SUMMARY: ThreadSanitizer: data race bin/tests/system/rpz/testlib/test-data.c:401 in add_other_rr