Data race lib/dns/qp.c:563 in chunk_discount
Job #3390630 failed for 55cc0715.
WARNING: ThreadSanitizer: data race
Write of size 4 at 0x000000000001 by thread T1:
#0 chunk_discount lib/dns/qp.c:563
#1 chunk_free lib/dns/qp.c:591
#2 destroy_guts lib/dns/qp.c:1403
#3 qpmulti_destroy_cb lib/dns/qp.c:1441
#4 call_rcu_thread <null>
Previous read of size 4 at 0x000000000001 by thread T2 (mutexes: write M1):
#0 reclaim_chunks_cb lib/dns/qp.c:663
#1 call_rcu_thread <null>
Location is heap block of size 168 at 0x000000000008 allocated by main thread:
#0 malloc <null>
#1 mallocx lib/isc/jemalloc_shim.h:65
#2 mem_get lib/isc/mem.c:305
#3 isc__mem_get lib/isc/mem.c:674
#4 dns_qpmulti_create lib/dns/qp.c:1375
#5 many_transactions tests/dns/qpmulti_test.c:370
#6 isc__async_cb lib/isc/async.c:112
#7 uv__async_io /usr/src/libuv-v1.44.1/src/unix/async.c:163
#8 thread_body lib/isc/thread.c:87
#9 isc_thread_main lib/isc/thread.c:118
#10 isc_loopmgr_run lib/isc/loop.c:452
#11 run_test_qpmulti tests/dns/qpmulti_test.c:388
#12 cmocka_run_one_test_or_fixture <null>
#13 __libc_start_call_main <null>
Mutex M1 (0x000000000022) created at:
#0 pthread_mutex_init <null>
#1 dns_qpmulti_create lib/dns/qp.c:1380
#2 many_transactions tests/dns/qpmulti_test.c:370
#3 isc__async_cb lib/isc/async.c:112
#4 uv__async_io /usr/src/libuv-v1.44.1/src/unix/async.c:163
#5 thread_body lib/isc/thread.c:87
#6 isc_thread_main lib/isc/thread.c:118
#7 isc_loopmgr_run lib/isc/loop.c:452
#8 run_test_qpmulti tests/dns/qpmulti_test.c:388
#9 cmocka_run_one_test_or_fixture <null>
#10 __libc_start_call_main <null>
Thread T1 (running) created by main thread at:
#0 pthread_create <null>
#1 call_rcu_data_init <null>
#2 run_test_qpmulti tests/dns/qpmulti_test.c:388
#3 cmocka_run_one_test_or_fixture <null>
#4 __libc_start_call_main <null>
Thread T2 (running) created by main thread at:
#0 pthread_create <null>
#1 call_rcu_data_init <null>
#2 run_test_qpmulti tests/dns/qpmulti_test.c:388
#3 cmocka_run_one_test_or_fixture <null>
#4 __libc_start_call_main <null>
SUMMARY: ThreadSanitizer: data race lib/dns/qp.c:563 in chunk_discount
WARNING: ThreadSanitizer: data race
Write of size 1 at 0x000000000001 by thread T1:
#0 pthread_mutex_destroy <null>
#1 qpmulti_destroy_cb lib/dns/qp.c:1442
#2 call_rcu_thread <null>
Previous atomic read of size 1 at 0x000000000001 by thread T2 (mutexes: write M1):
#0 pthread_mutex_unlock <null>
#1 reclaim_chunks_cb lib/dns/qp.c:668
#2 call_rcu_thread <null>
Location is heap block of size 168 at 0x000000000007 allocated by main thread:
#0 malloc <null>
#1 mallocx lib/isc/jemalloc_shim.h:65
#2 mem_get lib/isc/mem.c:305
#3 isc__mem_get lib/isc/mem.c:674
#4 dns_qpmulti_create lib/dns/qp.c:1375
#5 many_transactions tests/dns/qpmulti_test.c:370
#6 isc__async_cb lib/isc/async.c:112
#7 uv__async_io /usr/src/libuv-v1.44.1/src/unix/async.c:163
#8 thread_body lib/isc/thread.c:87
#9 isc_thread_main lib/isc/thread.c:118
#10 isc_loopmgr_run lib/isc/loop.c:452
#11 run_test_qpmulti tests/dns/qpmulti_test.c:388
#12 cmocka_run_one_test_or_fixture <null>
#13 __libc_start_call_main <null>
Mutex M1 is already destroyed.
Thread T1 (running) created by main thread at:
#0 pthread_create <null>
#1 call_rcu_data_init <null>
#2 run_test_qpmulti tests/dns/qpmulti_test.c:388
#3 cmocka_run_one_test_or_fixture <null>
#4 __libc_start_call_main <null>
Thread T2 (running) created by main thread at:
#0 pthread_create <null>
#1 call_rcu_data_init <null>
#2 run_test_qpmulti tests/dns/qpmulti_test.c:388
#3 cmocka_run_one_test_or_fixture <null>
#4 __libc_start_call_main <null>
SUMMARY: ThreadSanitizer: data race in __interceptor_pthread_mutex_destroy
WARNING: ThreadSanitizer: data race
Write of size 8 at 0x000000000001 by thread T1:
#0 free <null>
#1 sdallocx lib/isc/jemalloc_shim.h:80
#2 mem_put lib/isc/mem.c:327
#3 isc__mem_putanddetach lib/isc/mem.c:560
#4 qpmulti_destroy_cb lib/dns/qp.c:1445
#5 call_rcu_thread <null>
Previous read of size 4 at 0x000000000001 by thread T2 (mutexes: write M1):
#0 reclaim_chunks_cb lib/dns/qp.c:663
#1 call_rcu_thread <null>
Mutex M1 is already destroyed.
Thread T1 (running) created by main thread at:
#0 pthread_create <null>
#1 call_rcu_data_init <null>
#2 run_test_qpmulti tests/dns/qpmulti_test.c:388
#3 cmocka_run_one_test_or_fixture <null>
#4 __libc_start_call_main <null>
Thread T2 (running) created by main thread at:
#0 pthread_create <null>
#1 call_rcu_data_init <null>
#2 run_test_qpmulti tests/dns/qpmulti_test.c:388
#3 cmocka_run_one_test_or_fixture <null>
#4 __libc_start_call_main <null>
SUMMARY: ThreadSanitizer: data race in __interceptor_free
Might be Duplicate of #4070 (closed).