[
https://issues.apache.org/jira/browse/DISPATCH-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17305167#comment-17305167
]
Ganesh Murthy commented on DISPATCH-2012:
-----------------------------------------
One more
{noformat}
72: WARNING: ThreadSanitizer: data race (pid=1028799)72: Read of size 4 at
0x7b54000aa9a0 by thread T3:
72: #0 sys_atomic_set
/home/gmurthy/opensource/qpid-dispatch/include/qpid/dispatch/atomic.h:95
(libqpid-dispatch.so+0x5c608)
72: #1 handle_connection_event
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:664
(libqpid-dispatch.so+0x6048d)
72: #2 handle_event_with_context
/home/gmurthy/opensource/qpid-dispatch/src/server.c:804
(libqpid-dispatch.so+0x12b69b)
72: #3 do_handle_raw_connection_event
/home/gmurthy/opensource/qpid-dispatch/src/server.c:810
(libqpid-dispatch.so+0x12b6ed)
72: #4 handle /home/gmurthy/opensource/qpid-dispatch/src/server.c:1090
(libqpid-dispatch.so+0x12cf56)
72: #5 thread_run /home/gmurthy/opensource/qpid-dispatch/src/server.c:1122
(libqpid-dispatch.so+0x12d0aa)
72: #6 _thread_init
/home/gmurthy/opensource/qpid-dispatch/src/posix/threading.c:172
(libqpid-dispatch.so+0xaacbc)
72: #7 <null> <null> (libtsan.so.0+0x2d18f)
72:
72: Previous atomic write of size 4 at 0x7b54000aa9a0 by main thread
(mutexes: write M901):
72: #0 __tsan_atomic32_compare_exchange_strong <null> (libtsan.so.0+0x7da50)
72: #1 sys_atomic_set
/home/gmurthy/opensource/qpid-dispatch/include/qpid/dispatch/atomic.h:96
(libqpid-dispatch.so+0x5c64c)
72: #2 qdr_tcp_q2_unblocked_handler
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:173
(libqpid-dispatch.so+0x5d320)
72: #3 qd_message_stream_data_release
/home/gmurthy/opensource/qpid-dispatch/src/message.c:2659
(libqpid-dispatch.so+0x96c17)
72: #4 handle_connection_event
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:689
(libqpid-dispatch.so+0x6075b)
72: #5 handle_event_with_context
/home/gmurthy/opensource/qpid-dispatch/src/server.c:804
(libqpid-dispatch.so+0x12b69b)
72: #6 do_handle_raw_connection_event
/home/gmurthy/opensource/qpid-dispatch/src/server.c:810
(libqpid-dispatch.so+0x12b6ed)
72: #7 handle /home/gmurthy/opensource/qpid-dispatch/src/server.c:1090
(libqpid-dispatch.so+0x12cf56)
72: #8 thread_run /home/gmurthy/opensource/qpid-dispatch/src/server.c:1122
(libqpid-dispatch.so+0x12d0aa)
72: #9 qd_server_run
/home/gmurthy/opensource/qpid-dispatch/src/server.c:1484
(libqpid-dispatch.so+0x12f295)
72: #10 main_process
/home/gmurthy/opensource/qpid-dispatch/router/src/main.c:113
(qdrouterd+0x40271a)
72: #11 main /home/gmurthy/opensource/qpid-dispatch/router/src/main.c:367
(qdrouterd+0x403557)
72:
72: Location is heap block of size 576 at 0x7b54000aa780 allocated by thread
T4:
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_tcp_connection_t
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:89
(libqpid-dispatch.so+0x5cc2e)
72: #3 qdr_tcp_connection_egress
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:793
(libqpid-dispatch.so+0x61114)
72: #4 qdr_tcp_deliver
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:1182
(libqpid-dispatch.so+0x6429d)
72: #5 qdr_link_process_deliveries
/home/gmurthy/opensource/qpid-dispatch/src/router_core/transfer.c:175
(libqpid-dispatch.so+0x101327)
72: #6 qdr_tcp_push
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:1165
(libqpid-dispatch.so+0x63f7f)
72: #7 qdr_connection_process
/home/gmurthy/opensource/qpid-dispatch/src/router_core/connections.c:412
(libqpid-dispatch.so+0xc2415)
72: #8 on_activate
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:120
(libqpid-dispatch.so+0x5cebe)
72: #9 qd_timer_visit
/home/gmurthy/opensource/qpid-dispatch/src/timer.c:201
(libqpid-dispatch.so+0x132691)
72: #10 handle /home/gmurthy/opensource/qpid-dispatch/src/server.c:1008
(libqpid-dispatch.so+0x12c6fd)
72: #11 thread_run /home/gmurthy/opensource/qpid-dispatch/src/server.c:1122
(libqpid-dispatch.so+0x12d0aa)
72: #12 _thread_init
/home/gmurthy/opensource/qpid-dispatch/src/posix/threading.c:172
(libqpid-dispatch.so+0xaacbc)
72: #13 <null> <null> (libtsan.so.0+0x2d18f)
72:
72: Mutex M901 (0x7b100000b140) 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+0xaa7ad)
72: #2 qdr_tcp_connection_egress
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:795
(libqpid-dispatch.so+0x61133)
72: #3 qdr_tcp_deliver
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:1182
(libqpid-dispatch.so+0x6429d)
72: #4 qdr_link_process_deliveries
/home/gmurthy/opensource/qpid-dispatch/src/router_core/transfer.c:175
(libqpid-dispatch.so+0x101327)
72: #5 qdr_tcp_push
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:1165
(libqpid-dispatch.so+0x63f7f)
72: #6 qdr_connection_process
/home/gmurthy/opensource/qpid-dispatch/src/router_core/connections.c:412
(libqpid-dispatch.so+0xc2415)
72: #7 on_activate
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/tcp_adaptor.c:120
(libqpid-dispatch.so+0x5cebe)
72: #8 qd_timer_visit
/home/gmurthy/opensource/qpid-dispatch/src/timer.c:201
(libqpid-dispatch.so+0x132691)
72: #9 handle /home/gmurthy/opensource/qpid-dispatch/src/server.c:1008
(libqpid-dispatch.so+0x12c6fd)
72: #10 thread_run /home/gmurthy/opensource/qpid-dispatch/src/server.c:1122
(libqpid-dispatch.so+0x12d0aa)
72: #11 _thread_init
/home/gmurthy/opensource/qpid-dispatch/src/posix/threading.c:172
(libqpid-dispatch.so+0xaacbc)
72: #12 <null> <null> (libtsan.so.0+0x2d18f)
{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: [email protected]
For additional commands, e-mail: [email protected]