You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Ken Giusti (Jira)" <ji...@apache.org> on 2021/05/18 19:44:00 UTC

[jira] [Created] (DISPATCH-2132) core->uptime_ticks races

Ken Giusti created DISPATCH-2132:
------------------------------------

             Summary: core->uptime_ticks races
                 Key: DISPATCH-2132
                 URL: https://issues.apache.org/jira/browse/DISPATCH-2132
             Project: Qpid Dispatch
          Issue Type: Bug
          Components: Router Node
    Affects Versions: 1.16.0
            Reporter: Ken Giusti
            Assignee: Ken Giusti
             Fix For: 1.17.0


TSAN flags many races while accessing core->uptime_ticks.  Likely harmless.  Replace core->uptime_ticks with atomic integer.

 

Example:

30: WARNING: ThreadSanitizer: data race (pid=632294) 
30: Read of size 4 at 0x7b64000352c8 by thread T3: 
30: #0 qdr_link_first_attach /home/kgiusti/work/dispatch/qpid-dispatch/src/router_core/connections.c:608 (libqpid-dispatch.so+0xc5ee8) 
30: #1 AMQP_incoming_link_handler /home/kgiusti/work/dispatch/qpid-dispatch/src/router_node.c:985 (libqpid-dispatch.so+0x1247f4) 
30: #2 setup_incoming_link /home/kgiusti/work/dispatch/qpid-dispatch/src/container.c:205 (libqpid-dispatch.so+0x7a7f8) 
30: #3 qd_container_handle_event /home/kgiusti/work/dispatch/qpid-dispatch/src/container.c:670 (libqpid-dispatch.so+0x7c935) 
30: #4 handle /home/kgiusti/work/dispatch/qpid-dispatch/src/server.c:1096 (libqpid-dispatch.so+0x130537) 
30: #5 thread_run /home/kgiusti/work/dispatch/qpid-dispatch/src/server.c:1121 (libqpid-dispatch.so+0x13063a) 
30: #6 _thread_init /home/kgiusti/work/dispatch/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0xad37a) 
30: #7 <null> <null> (libtsan.so.0+0x2d33f) 
30: 
30: Previous write of size 4 at 0x7b64000352c8 by thread T1: 
30: #0 qdr_process_tick_CT /home/kgiusti/work/dispatch/qpid-dispatch/src/router_core/core_timer.c:111 (libqpid-dispatch.so+0x10a860) 
30: #1 router_core_thread /home/kgiusti/work/dispatch/qpid-dispatch/src/router_core/router_core_thread.c:239 (libqpid-dispatch.so+0xfb2ae) 
30: #2 _thread_init /home/kgiusti/work/dispatch/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0xad37a) 
30: #3 <null> <null> (libtsan.so.0+0x2d33f)



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

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