[ 
https://issues.apache.org/jira/browse/DISPATCH-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17305025#comment-17305025
 ] 

Ganesh Murthy commented on DISPATCH-2012:
-----------------------------------------

One more TSAN warning
{noformat}
72: WARNING: ThreadSanitizer: data race (pid=1015439)
72:   Read of size 8 at 0x7b58000f2a98 by main thread:
72:     #0 qd_message_stream_data_buffers 
/home/gmurthy/opensource/qpid-dispatch/src/message.c:2560 
(libqpid-dispatch.so+0x9606e)
72:     #1 read_message_body 
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:405 
(libqpid-dispatch.so+0x5f074)
72:     #2 handle_outgoing 
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:489 
(libqpid-dispatch.so+0x5f757)
72:     #3 handle_connection_event 
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:653 
(libqpid-dispatch.so+0x60389)
72:     #4 handle_event_with_context 
/home/gmurthy/opensource/qpid-dispatch/src/server.c:804 
(libqpid-dispatch.so+0x12b623)
72:     #5 do_handle_raw_connection_event 
/home/gmurthy/opensource/qpid-dispatch/src/server.c:810 
(libqpid-dispatch.so+0x12b675)
72:     #6 handle /home/gmurthy/opensource/qpid-dispatch/src/server.c:1090 
(libqpid-dispatch.so+0x12cede)
72:     #7 thread_run /home/gmurthy/opensource/qpid-dispatch/src/server.c:1122 
(libqpid-dispatch.so+0x12d032)
72:     #8 qd_server_run 
/home/gmurthy/opensource/qpid-dispatch/src/server.c:1484 
(libqpid-dispatch.so+0x12f21d)
72:     #9 main_process 
/home/gmurthy/opensource/qpid-dispatch/router/src/main.c:113 
(qdrouterd+0x40271a)
72:     #10 main /home/gmurthy/opensource/qpid-dispatch/router/src/main.c:367 
(qdrouterd+0x403557)
72: 
72:   Previous write of size 8 at 0x7b58000f2a98 by thread T3 (mutexes: write 
M875):
72:     #0 qd_message_extend 
/home/gmurthy/opensource/qpid-dispatch/src/message.c:2387 
(libqpid-dispatch.so+0x9567c)
72:     #1 qd_message_stream_data_append 
/home/gmurthy/opensource/qpid-dispatch/src/message.c:2951 
(libqpid-dispatch.so+0x98022)
72:     #2 handle_incoming_impl 
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:237 
(libqpid-dispatch.so+0x5dcf7)
72:     #3 handle_incoming 
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:296 
(libqpid-dispatch.so+0x5e464)
72:     #4 handle_connection_event 
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:674 
(libqpid-dispatch.so+0x6054d)
72:     #5 handle_event_with_context 
/home/gmurthy/opensource/qpid-dispatch/src/server.c:804 
(libqpid-dispatch.so+0x12b623)
72:     #6 do_handle_raw_connection_event 
/home/gmurthy/opensource/qpid-dispatch/src/server.c:810 
(libqpid-dispatch.so+0x12b675)
72:     #7 handle /home/gmurthy/opensource/qpid-dispatch/src/server.c:1090 
(libqpid-dispatch.so+0x12cede)
72:     #8 thread_run /home/gmurthy/opensource/qpid-dispatch/src/server.c:1122 
(libqpid-dispatch.so+0x12d032)
72:     #9 _thread_init 
/home/gmurthy/opensource/qpid-dispatch/src/posix/threading.c:172 
(libqpid-dispatch.so+0xaac44)
72:     #10 <null> <null> (libtsan.so.0+0x2d18f)
72: 
72:   Location is heap block of size 704 at 0x7b58000f2a00 allocated by thread 
T2:
72:     #0 posix_memalign <null> (libtsan.so.0+0x301df)
72:     #1 qd_alloc /home/gmurthy/opensource/qpid-dispatch/src/alloc_pool.c:389 
(libqpid-dispatch.so+0x68895)
72:     #2 new_qd_buffer_t 
/home/gmurthy/opensource/qpid-dispatch/src/buffer.c:30 
(libqpid-dispatch.so+0x6bbcf)
72:     #3 qd_buffer /home/gmurthy/opensource/qpid-dispatch/src/buffer.c:41 
(libqpid-dispatch.so+0x6bd3f)
72:     #4 grant_read_buffers 
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:141 
(libqpid-dispatch.so+0x5d0bf)
72:     #5 handle_incoming_impl 
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:233 
(libqpid-dispatch.so+0x5dc87)
72:     #6 handle_incoming 
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:296 
(libqpid-dispatch.so+0x5e464)
72:     #7 handle_connection_event 
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:674 
(libqpid-dispatch.so+0x6054d)
72:     #8 handle_event_with_context 
/home/gmurthy/opensource/qpid-dispatch/src/server.c:804 
(libqpid-dispatch.so+0x12b623)
72:     #9 do_handle_raw_connection_event 
/home/gmurthy/opensource/qpid-dispatch/src/server.c:810 
(libqpid-dispatch.so+0x12b675)
72:     #10 handle /home/gmurthy/opensource/qpid-dispatch/src/server.c:1090 
(libqpid-dispatch.so+0x12cede)
72:     #11 thread_run /home/gmurthy/opensource/qpid-dispatch/src/server.c:1122 
(libqpid-dispatch.so+0x12d032)
72:     #12 _thread_init 
/home/gmurthy/opensource/qpid-dispatch/src/posix/threading.c:172 
(libqpid-dispatch.so+0xaac44)
72:     #13 <null> <null> (libtsan.so.0+0x2d18f)
72: 
72:   Mutex M875 (0x7b1000007480) created at:
72:     #0 pthread_mutex_init <null> (libtsan.so.0+0x46f38)
72:     #1 sys_mutex 
/home/gmurthy/opensource/qpid-dispatch/src/posix/threading.c:43 
(libqpid-dispatch.so+0xaa735)
72:     #2 qd_message /home/gmurthy/opensource/qpid-dispatch/src/message.c:1012 
(libqpid-dispatch.so+0x8f2a9)
72:     #3 handle_incoming_impl 
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:245 
(libqpid-dispatch.so+0x5dee1)
72:     #4 handle_incoming 
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:296 
(libqpid-dispatch.so+0x5e464)
72:     #5 qdr_tcp_flow 
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:1107 
(libqpid-dispatch.so+0x637b5)
72:     #6 qdr_connection_process 
/home/gmurthy/opensource/qpid-dispatch/src/router_core/connections.c:420 
(libqpid-dispatch.so+0xc24c2)
72:     #7 handle_connection_event 
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:670 
(libqpid-dispatch.so+0x60538)
72:     #8 handle_event_with_context 
/home/gmurthy/opensource/qpid-dispatch/src/server.c:804 
(libqpid-dispatch.so+0x12b623)
72:     #9 do_handle_raw_connection_event 
/home/gmurthy/opensource/qpid-dispatch/src/server.c:810 
(libqpid-dispatch.so+0x12b675)
72:     #10 handle /home/gmurthy/opensource/qpid-dispatch/src/server.c:1090 
(libqpid-dispatch.so+0x12cede)
72:     #11 thread_run /home/gmurthy/opensource/qpid-dispatch/src/server.c:1122 
(libqpid-dispatch.so+0x12d032)
72:     #12 _thread_init 
/home/gmurthy/opensource/qpid-dispatch/src/posix/threading.c:172 
(libqpid-dispatch.so+0xaac44)
72:     #13 <null> <null> (libtsan.so.0+0x2d18f)
72: 
72:   Thread T3 (tid=1015443, running) created by main thread at:
72:     #0 pthread_create <null> (libtsan.so.0+0x59536)
72:     #1 sys_thread 
/home/gmurthy/opensource/qpid-dispatch/src/posix/threading.c:181 
(libqpid-dispatch.so+0xaacda)
72:     #2 qd_server_run 
/home/gmurthy/opensource/qpid-dispatch/src/server.c:1482 
(libqpid-dispatch.so+0x12f1f7)
72:     #3 main_process 
/home/gmurthy/opensource/qpid-dispatch/router/src/main.c:113 
(qdrouterd+0x40271a)
72:     #4 main /home/gmurthy/opensource/qpid-dispatch/router/src/main.c:367 
(qdrouterd+0x403557)
72: 
72:   Thread T2 (tid=1015442, running) created by main thread at:
72:     #0 pthread_create <null> (libtsan.so.0+0x59536)
72:     #1 sys_thread 
/home/gmurthy/opensource/qpid-dispatch/src/posix/threading.c:181 
(libqpid-dispatch.so+0xaacda)
72:     #2 qd_server_run 
/home/gmurthy/opensource/qpid-dispatch/src/server.c:1482 
(libqpid-dispatch.so+0x12f1f7)
72:     #3 main_process 
/home/gmurthy/opensource/qpid-dispatch/router/src/main.c:113 
(qdrouterd+0x40271a)
72:     #4 main /home/gmurthy/opensource/qpid-dispatch/router/src/main.c:367 
(qdrouterd+0x403557) {noformat}

> [tsan] data race warning in qdr_link_process_initial_delivery_CT
> ----------------------------------------------------------------
>
>                 Key: DISPATCH-2012
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-2012
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Protocol Adaptors
>    Affects Versions: 1.15.0
>            Reporter: Ganesh Murthy
>            Assignee: Ganesh Murthy
>            Priority: Major
>
> {noformat}
> 72: WARNING: ThreadSanitizer: data race (pid=1013398)
> 72:   Write of size 8 at 0x7b5000029bb0 by thread T1:
> 72:     #0 qdr_link_process_initial_delivery_CT 
> /home/gmurthy/opensource/qpid-dispatch/src/router_core/connections.c:1652 
> (libqpid-dispatch.so+0xca2c4)
> 72:     #1 qdr_link_inbound_first_attach_CT 
> /home/gmurthy/opensource/qpid-dispatch/src/router_core/connections.c:1781 
> (libqpid-dispatch.so+0xcad28)
> 72:     #2 router_core_thread 
> /home/gmurthy/opensource/qpid-dispatch/src/router_core/router_core_thread.c:239
>  (libqpid-dispatch.so+0xf7ff0)
> 72:     #3 _thread_init 
> /home/gmurthy/opensource/qpid-dispatch/src/posix/threading.c:172 
> (libqpid-dispatch.so+0xaac44)
> 72:     #4 <null> <null> (libtsan.so.0+0x2d18f)
> 72: 
> 72:   Previous read of size 8 at 0x7b5000029bb0 by thread T2:
> 72:     #0 qdr_delivery_decref 
> /home/gmurthy/opensource/qpid-dispatch/src/router_core/delivery.c:140 
> (libqpid-dispatch.so+0xd3bbc)
> 72:     #1 qdr_tcp_open_server_side_connection 
> /home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:784 
> (libqpid-dispatch.so+0x61092)
> 72:     #2 handle_connection_event 
> /home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:621 
> (libqpid-dispatch.so+0x600a9)
> 72:     #3 handle_event_with_context 
> /home/gmurthy/opensource/qpid-dispatch/src/server.c:804 
> (libqpid-dispatch.so+0x12b61c)
> 72:     #4 do_handle_raw_connection_event 
> /home/gmurthy/opensource/qpid-dispatch/src/server.c:810 
> (libqpid-dispatch.so+0x12b66e)
> 72:     #5 handle /home/gmurthy/opensource/qpid-dispatch/src/server.c:1090 
> (libqpid-dispatch.so+0x12ced7)
> 72:     #6 thread_run 
> /home/gmurthy/opensource/qpid-dispatch/src/server.c:1122 
> (libqpid-dispatch.so+0x12d02b)
> 72:     #7 _thread_init 
> /home/gmurthy/opensource/qpid-dispatch/src/posix/threading.c:172 
> (libqpid-dispatch.so+0xaac44)
> 72:     #8 <null> <null> (libtsan.so.0+0x2d18f)
> 72: 
> 72:   Location is heap block of size 512 at 0x7b5000029a00 allocated by 
> thread T3:
> 72:     #0 posix_memalign <null> (libtsan.so.0+0x301df)
> 72:     #1 qd_alloc 
> /home/gmurthy/opensource/qpid-dispatch/src/alloc_pool.c:389 
> (libqpid-dispatch.so+0x68895)
> 72:     #2 new_qdr_delivery_t 
> /home/gmurthy/opensource/qpid-dispatch/src/router_core/delivery.c:23 
> (libqpid-dispatch.so+0xd33f9)
> 72:     #3 qdr_link_deliver_to_routed_link 
> /home/gmurthy/opensource/qpid-dispatch/src/router_core/transfer.c:115 
> (libqpid-dispatch.so+0x100d90)
> 72:     #4 AMQP_rx_handler 
> /home/gmurthy/opensource/qpid-dispatch/src/router_node.c:619 
> (libqpid-dispatch.so+0x120391)
> 72:     #5 do_receive 
> /home/gmurthy/opensource/qpid-dispatch/src/container.c:223 
> (libqpid-dispatch.so+0x7850a)
> 72:     #6 qd_container_handle_event 
> /home/gmurthy/opensource/qpid-dispatch/src/container.c:733 
> (libqpid-dispatch.so+0x7aabe)
> 72:     #7 handle /home/gmurthy/opensource/qpid-dispatch/src/server.c:1097 
> (libqpid-dispatch.so+0x12cf28)
> 72:     #8 thread_run 
> /home/gmurthy/opensource/qpid-dispatch/src/server.c:1122 
> (libqpid-dispatch.so+0x12d02b)
> 72:     #9 _thread_init 
> /home/gmurthy/opensource/qpid-dispatch/src/posix/threading.c:172 
> (libqpid-dispatch.so+0xaac44)
> 72:     #10 <null> <null> (libtsan.so.0+0x2d18f) {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to