Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
1.17.0
-
None
-
None
Description
This is a PR build, but I think it is unlikely the build changes in PR caused this.
https://github.com/apache/qpid-dispatch/pull/1267/checks?check_run_id=2878253245#step:25:999
44: WARNING: ThreadSanitizer: data race (pid=2005) 44: Write of size 8 at 0x7b440008eb28 by thread T4: 44: #0 cleanup_link /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:353 (qdrouterd+0x462d70) 44: #1 qd_link_free /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:1000 (qdrouterd+0x4632b5) 44: #2 qd_link_free /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:991 (qdrouterd+0x463392) 44: #3 CORE_link_detach /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/router_node.c:1844 (qdrouterd+0x4d931a) 44: #4 qdr_connection_process /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/router_core/connections.c:433 (qdrouterd+0x497f2c) 44: #5 AMQP_writable_conn_handler /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/router_node.c:299 (qdrouterd+0x4d89cd) 44: #6 writable_handler /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:395 (qdrouterd+0x464334) 44: #7 qd_container_handle_event /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:747 (qdrouterd+0x464334) 44: #8 handle /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1096 (qdrouterd+0x4e1c51) 44: #9 thread_run /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1121 (qdrouterd+0x4e3f90) 44: #10 _thread_init /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/posix/threading.c:172 (qdrouterd+0x4868bd) 44: 44: Previous read of size 8 at 0x7b440008eb28 by main thread: 44: #0 qd_link_connection /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:1057 (qdrouterd+0x4626b0) 44: #1 qd_link_q2_restart_receive /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/router_node.c:2198 (qdrouterd+0x4dd0bf) 44: #2 qd_message_free /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/message.c:1066 (qdrouterd+0x472d82) 44: #3 qdr_do_message_to_addr_free /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/router_core/router_core_thread.c:102 (qdrouterd+0x4bcfa6) 44: #4 qdr_general_handler /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/router_core/router_core.c:942 (qdrouterd+0x4b5bc3) 44: #5 qd_timer_visit /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/timer.c:316 (qdrouterd+0x4e6bb5) 44: #6 handle /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1006 (qdrouterd+0x4e1be6) 44: #7 thread_run /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1121 (qdrouterd+0x4e4005) 44: #8 qd_server_run /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1501 (qdrouterd+0x4e4c11) 44: #9 main_process /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x426ccc) 44: #10 main /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x42622c) 44: 44: Location is heap block of size 320 at 0x7b440008ea80 allocated by thread T3: 44: #0 posix_memalign <null> (libtsan.so.0+0x32a23) 44: #1 qd_alloc /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/alloc_pool.c:396 (qdrouterd+0x44c6d4) 44: #2 new_qd_link_t /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:75 (qdrouterd+0x463f70) 44: #3 setup_outgoing_link /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:143 (qdrouterd+0x463f70) 44: #4 qd_container_handle_event /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:662 (qdrouterd+0x463f70) 44: #5 handle /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1096 (qdrouterd+0x4e1c51) 44: #6 thread_run /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1121 (qdrouterd+0x4e3f0b) 44: #7 _thread_init /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/posix/threading.c:172 (qdrouterd+0x4868bd) 44: 44: Thread T4 (tid=2010, running) created by main thread at: 44: #0 pthread_create <null> (libtsan.so.0+0x5bf45) 44: #1 sys_thread /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/posix/threading.c:181 (qdrouterd+0x486d4c) 44: #2 qd_server_run /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1499 (qdrouterd+0x4e4bec) 44: #3 main_process /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x426ccc) 44: #4 main /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x42622c) 44: 44: Thread T3 (tid=2009, running) created by main thread at: 44: #0 pthread_create <null> (libtsan.so.0+0x5bf45) 44: #1 sys_thread /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/posix/threading.c:181 (qdrouterd+0x486d4c) 44: #2 qd_server_run /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1499 (qdrouterd+0x4e4bec) 44: #3 main_process /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x426ccc) 44: #4 main /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x42622c) 44: 44: SUMMARY: ThreadSanitizer: data race /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:353 in cleanup_link
https://github.com/apache/qpid-dispatch/pull/1267/checks?check_run_id=2878253245#step:25:1053
44: WARNING: ThreadSanitizer: data race (pid=2005) 44: Write of size 8 at 0x7b440008eb30 by thread T4: 44: #0 memset <null> (libtsan.so.0+0x5cfeb) 44: #1 qd_dealloc /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/alloc_pool.c:458 (qdrouterd+0x44d6a1) 44: #2 free_qd_link_t /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:75 (qdrouterd+0x4632d2) 44: #3 qd_link_free /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:1001 (qdrouterd+0x4632d2) 44: #4 qd_link_free /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:991 (qdrouterd+0x463392) 44: #5 CORE_link_detach /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/router_node.c:1844 (qdrouterd+0x4d931a) 44: #6 qdr_connection_process /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/router_core/connections.c:433 (qdrouterd+0x497f2c) 44: #7 AMQP_writable_conn_handler /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/router_node.c:299 (qdrouterd+0x4d89cd) 44: #8 writable_handler /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:395 (qdrouterd+0x464334) 44: #9 qd_container_handle_event /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:747 (qdrouterd+0x464334) 44: #10 handle /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1096 (qdrouterd+0x4e1c51) 44: #11 thread_run /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1121 (qdrouterd+0x4e3f90) 44: #12 _thread_init /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/posix/threading.c:172 (qdrouterd+0x4868bd) 44: 44: Previous read of size 4 at 0x7b440008eb30 by main thread: 44: #0 qd_link_direction /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:1047 (qdrouterd+0x46264b) 44: #1 qd_link_q2_restart_receive /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/router_node.c:2196 (qdrouterd+0x4dd0b3) 44: #2 qd_message_free /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/message.c:1066 (qdrouterd+0x472d82) 44: #3 qdr_do_message_to_addr_free /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/router_core/router_core_thread.c:102 (qdrouterd+0x4bcfa6) 44: #4 qdr_general_handler /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/router_core/router_core.c:942 (qdrouterd+0x4b5bc3) 44: #5 qd_timer_visit /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/timer.c:316 (qdrouterd+0x4e6bb5) 44: #6 handle /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1006 (qdrouterd+0x4e1be6) 44: #7 thread_run /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1121 (qdrouterd+0x4e4005) 44: #8 qd_server_run /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1501 (qdrouterd+0x4e4c11) 44: #9 main_process /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x426ccc) 44: #10 main /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x42622c) 44: 44: Location is heap block of size 320 at 0x7b440008ea80 allocated by thread T3: 44: #0 posix_memalign <null> (libtsan.so.0+0x32a23) 44: #1 qd_alloc /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/alloc_pool.c:396 (qdrouterd+0x44c6d4) 44: #2 new_qd_link_t /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:75 (qdrouterd+0x463f70) 44: #3 setup_outgoing_link /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:143 (qdrouterd+0x463f70) 44: #4 qd_container_handle_event /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:662 (qdrouterd+0x463f70) 44: #5 handle /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1096 (qdrouterd+0x4e1c51) 44: #6 thread_run /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1121 (qdrouterd+0x4e3f0b) 44: #7 _thread_init /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/posix/threading.c:172 (qdrouterd+0x4868bd) 44: 44: Thread T4 (tid=2010, running) created by main thread at: 44: #0 pthread_create <null> (libtsan.so.0+0x5bf45) 44: #1 sys_thread /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/posix/threading.c:181 (qdrouterd+0x486d4c) 44: #2 qd_server_run /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1499 (qdrouterd+0x4e4bec) 44: #3 main_process /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x426ccc) 44: #4 main /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x42622c) 44: 44: Thread T3 (tid=2009, running) created by main thread at: 44: #0 pthread_create <null> (libtsan.so.0+0x5bf45) 44: #1 sys_thread /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/posix/threading.c:181 (qdrouterd+0x486d4c) 44: #2 qd_server_run /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1499 (qdrouterd+0x4e4bec) 44: #3 main_process /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x426ccc) 44: #4 main /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x42622c) 44: 44: SUMMARY: ThreadSanitizer: data race (/lib64/libtsan.so.0+0x5cfeb) in __interceptor_memset
44: WARNING: ThreadSanitizer: data race (pid=2005) 44: Write of size 8 at 0x7b440008ea80 by thread T4: 44: #0 qd_dealloc /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/alloc_pool.c:477 (qdrouterd+0x44d6d6) 44: #1 free_qd_link_t /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:75 (qdrouterd+0x4632d2) 44: #2 qd_link_free /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:1001 (qdrouterd+0x4632d2) 44: #3 qd_link_free /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:991 (qdrouterd+0x463392) 44: #4 CORE_link_detach /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/router_node.c:1844 (qdrouterd+0x4d931a) 44: #5 qdr_connection_process /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/router_core/connections.c:433 (qdrouterd+0x497f2c) 44: #6 AMQP_writable_conn_handler /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/router_node.c:299 (qdrouterd+0x4d89cd) 44: #7 writable_handler /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:395 (qdrouterd+0x464334) 44: #8 qd_container_handle_event /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:747 (qdrouterd+0x464334) 44: #9 handle /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1096 (qdrouterd+0x4e1c51) 44: #10 thread_run /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1121 (qdrouterd+0x4e3f90) 44: #11 _thread_init /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/posix/threading.c:172 (qdrouterd+0x4868bd) 44: 44: Previous read of size 8 at 0x7b440008ea80 by main thread: 44: #0 qd_alloc_sequence /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/alloc_pool.c:525 (qdrouterd+0x44df98) 44: #1 qd_alloc_deref_safe_ptr /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/include/qpid/dispatch/alloc_pool.h:102 (qdrouterd+0x4dd0a1) 44: #2 qd_link_q2_restart_receive /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/router_node.c:2192 (qdrouterd+0x4dd0a1) 44: #3 qd_message_free /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/message.c:1066 (qdrouterd+0x472d82) 44: #4 qdr_do_message_to_addr_free /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/router_core/router_core_thread.c:102 (qdrouterd+0x4bcfa6) 44: #5 qdr_general_handler /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/router_core/router_core.c:942 (qdrouterd+0x4b5bc3) 44: #6 qd_timer_visit /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/timer.c:316 (qdrouterd+0x4e6bb5) 44: #7 handle /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1006 (qdrouterd+0x4e1be6) 44: #8 thread_run /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1121 (qdrouterd+0x4e4005) 44: #9 qd_server_run /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1501 (qdrouterd+0x4e4c11) 44: #10 main_process /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x426ccc) 44: #11 main /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x42622c) 44: 44: Location is heap block of size 320 at 0x7b440008ea80 allocated by thread T3: 44: #0 posix_memalign <null> (libtsan.so.0+0x32a23) 44: #1 qd_alloc /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/alloc_pool.c:396 (qdrouterd+0x44c6d4) 44: #2 new_qd_link_t /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:75 (qdrouterd+0x463f70) 44: #3 setup_outgoing_link /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:143 (qdrouterd+0x463f70) 44: #4 qd_container_handle_event /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/container.c:662 (qdrouterd+0x463f70) 44: #5 handle /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1096 (qdrouterd+0x4e1c51) 44: #6 thread_run /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1121 (qdrouterd+0x4e3f0b) 44: #7 _thread_init /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/posix/threading.c:172 (qdrouterd+0x4868bd) 44: 44: Thread T4 (tid=2010, running) created by main thread at: 44: #0 pthread_create <null> (libtsan.so.0+0x5bf45) 44: #1 sys_thread /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/posix/threading.c:181 (qdrouterd+0x486d4c) 44: #2 qd_server_run /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1499 (qdrouterd+0x4e4bec) 44: #3 main_process /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x426ccc) 44: #4 main /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x42622c) 44: 44: Thread T3 (tid=2009, running) created by main thread at: 44: #0 pthread_create <null> (libtsan.so.0+0x5bf45) 44: #1 sys_thread /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/posix/threading.c:181 (qdrouterd+0x486d4c) 44: #2 qd_server_run /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1499 (qdrouterd+0x4e4bec) 44: #3 main_process /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x426ccc) 44: #4 main /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x42622c) 44: 44: SUMMARY: ThreadSanitizer: data race /home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/alloc_pool.c:477 in qd_dealloc 44: ================== 44: ThreadSanitizer: reported 3 warnings
Attachments
Issue Links
- is a clone of
-
DISPATCH-2180 Race: timer freeing qd_message_t during cleanup conflict with I/O threads
- Open
- is duplicated by
-
DISPATCH-2180 Race: timer freeing qd_message_t during cleanup conflict with I/O threads
- Open