[ https://issues.apache.org/jira/browse/DISPATCH-2132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ken Giusti resolved DISPATCH-2132. ---------------------------------- Resolution: Fixed > 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 > Priority: Minor > Labels: race-condition, tsan > Fix For: 1.19.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.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org