Ganesh Murthy created DISPATCH-2315:
---------------------------------------
Summary: TSAN data race in qdr_connection_process
Key: DISPATCH-2315
URL: https://issues.apache.org/jira/browse/DISPATCH-2315
Project: Qpid Dispatch
Issue Type: Bug
Reporter: Ganesh Murthy
{noformat}
62: ERROR
62:
62: ======================================================================
62: ERROR: tearDownClass (system_tests_multicast.MulticastLinearTest)
62: ----------------------------------------------------------------------
62: Traceback (most recent call last):
62: File "/home/travis/build/apache/qpid-dispatch/tests/system_test.py", line
836, in tearDownClass
62: cls.tester.teardown()
62: File "/home/travis/build/apache/qpid-dispatch/tests/system_test.py", line
779, in teardown
62: raise RuntimeError("Errors during teardown: \n\n%s" %
"\n\n".join([str(e) for e in errors]))
62: RuntimeError: Errors during teardown:
62:
62: Process 16478 error: exit code 66, expected 0
62: qdrouterd -c INT.B.conf -I /home/travis/build/apache/qpid-dispatch/python
62:
/home/travis/build/apache/qpid-dispatch/build/tests/system_test.dir/system_tests_multicast/MulticastLinearTest/setUpClass/INT.B-2.cmd
62: >>>>
62: ==================
62: WARNING: ThreadSanitizer: data race (pid=16478)
62: Read of size 1 at 0x7b44000213d4 by thread T2:
62: #0 qdr_connection_process
/home/travis/build/apache/qpid-dispatch/src/router_core/connections.c:405
(qdrouterd+0x9d9c6)
62: #1 AMQP_writable_conn_handler
/home/travis/build/apache/qpid-dispatch/src/router_node.c:299
(qdrouterd+0xdbb81)
62: #2 writable_handler
/home/travis/build/apache/qpid-dispatch/src/container.c:388 (qdrouterd+0x662eb)
62: #3 qd_conn_event_batch_complete
/home/travis/build/apache/qpid-dispatch/src/container.c:478 (qdrouterd+0x6769b)
62: #4 thread_run /home/travis/build/apache/qpid-dispatch/src/server.c:1149
(qdrouterd+0xe733e)
62: #5 _thread_init
/home/travis/build/apache/qpid-dispatch/src/posix/threading.c:172
(qdrouterd+0x8c441)
62:
62: Previous write of size 1 at 0x7b44000213d4 by thread T1:
62: #0 qdr_delivery_mcast_outbound_settled_CT
/home/travis/build/apache/qpid-dispatch/src/router_core/delivery.c:889
(qdrouterd+0xab913)
62: #1 qdr_delivery_mcast_outbound_update_CT
/home/travis/build/apache/qpid-dispatch/src/router_core/delivery.c:1020
(qdrouterd+0xab913)
62: #2 qdr_update_delivery_CT
/home/travis/build/apache/qpid-dispatch/src/router_core/delivery.c:680
(qdrouterd+0xac615)
62: #3 router_core_thread
/home/travis/build/apache/qpid-dispatch/src/router_core/router_core_thread.c:236
(qdrouterd+0xc0fe0)
62: #4 _thread_init
/home/travis/build/apache/qpid-dispatch/src/posix/threading.c:172
(qdrouterd+0x8c441)
62:
62: Location is heap block of size 320 at 0x7b4400021340 allocated by main
thread:
62: #0 posix_memalign
../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:835
(libtsan.so.0+0x3046d)
62: #1 qd_alloc
/home/travis/build/apache/qpid-dispatch/src/alloc_pool.c:391 (qdrouterd+0x54d24)
62: #2 new_qdr_delivery_t
/home/travis/build/apache/qpid-dispatch/src/router_core/delivery.c:24
(qdrouterd+0xa8442)
62: #3 qdr_link_deliver_to
/home/travis/build/apache/qpid-dispatch/src/router_core/transfer.c:99
(qdrouterd+0xc6ecd)
62: #4 AMQP_rx_handler
/home/travis/build/apache/qpid-dispatch/src/router_node.c:827
(qdrouterd+0xdf0cf)
62: #5 do_receive
/home/travis/build/apache/qpid-dispatch/src/container.c:219 (qdrouterd+0x69b54)
62: #6 qd_container_handle_event
/home/travis/build/apache/qpid-dispatch/src/container.c:734 (qdrouterd+0x69b54)
62: #7 handle /home/travis/build/apache/qpid-dispatch/src/server.c:1108
(qdrouterd+0xe57a9)
62: #8 thread_run /home/travis/build/apache/qpid-dispatch/src/server.c:1133
(qdrouterd+0xe726c)
62: #9 qd_server_run
/home/travis/build/apache/qpid-dispatch/src/server.c:1527 (qdrouterd+0xe7e6f)
62: #10 main_process
/home/travis/build/apache/qpid-dispatch/router/src/main.c:115
(qdrouterd+0x2dda7)
62: #11 main /home/travis/build/apache/qpid-dispatch/router/src/main.c:369
(qdrouterd+0x2d092)
62:
62: Thread T2 (tid=16481, running) created by main thread at:
62: #0 pthread_create
../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:962
(libtsan.so.0+0x5ea79)
62: #1 sys_thread
/home/travis/build/apache/qpid-dispatch/src/posix/threading.c:181
(qdrouterd+0x8ca02)
62: #2 qd_server_run
/home/travis/build/apache/qpid-dispatch/src/server.c:1525 (qdrouterd+0xe7e4a)
62: #3 main_process
/home/travis/build/apache/qpid-dispatch/router/src/main.c:115
(qdrouterd+0x2dda7)
62: #4 main /home/travis/build/apache/qpid-dispatch/router/src/main.c:369
(qdrouterd+0x2d092)
62:
62: Thread T1 (tid=16480, running) created by main thread at:
62: #0 pthread_create
../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:962
(libtsan.so.0+0x5ea79)
62: #1 sys_thread
/home/travis/build/apache/qpid-dispatch/src/posix/threading.c:181
(qdrouterd+0x8ca02)
62: #2 qdr_core
/home/travis/build/apache/qpid-dispatch/src/router_core/router_core.c:124
(qdrouterd+0xbb1ce)
62: #3 qd_router_setup_late
/home/travis/build/apache/qpid-dispatch/src/router_node.c:2127
(qdrouterd+0xe021c)
62: #4 <null> <null> (libffi.so.7+0x6ff4)
62: #5 main_process
/home/travis/build/apache/qpid-dispatch/router/src/main.c:97 (qdrouterd+0x2dd32)
62: #6 main /home/travis/build/apache/qpid-dispatch/router/src/main.c:369
(qdrouterd+0x2d092)
62:
62: SUMMARY: ThreadSanitizer: data race
/home/travis/build/apache/qpid-dispatch/src/router_core/connections.c:405 in
qdr_connection_process
62: ==================
62: ThreadSanitizer: reported 1 warnings
62: <<<< {noformat}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]