Jiri Daněk created DISPATCH-2150:
------------------------------------

             Summary: ThreadSanitizer: data race 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-proton/c/src/proactor/epoll.c:2661
 in check_earmark_override
                 Key: DISPATCH-2150
                 URL: https://issues.apache.org/jira/browse/DISPATCH-2150
             Project: Qpid Dispatch
          Issue Type: Bug
    Affects Versions: 1.17.0
            Reporter: Jiri Daněk


Happens in many tests. It is a known Proton race that has not yet been triaged, 
see PROTON-2133.

https://github.com/jiridanek/qpid-dispatch/runs/2640256854#step:25:682

{noformat}
18: WARNING: ThreadSanitizer: data race (pid=1800)
18:   Read of size 4 at 0x7b28000000f8 by thread T4:
18:     #0 check_earmark_override 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-proton/c/src/proactor/epoll.c:2661
 (libqpid-proton-proactor.so.1+0xb666)
18:     #1 pn_proactor_done 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-proton/c/src/proactor/epoll.c:2678
 (libqpid-proton-proactor.so.1+0xb666)
18:     #2 thread_run 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1139 
(libqpid-dispatch.so+0xf5574)
18:     #3 _thread_init 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/posix/threading.c:172
 (libqpid-dispatch.so+0x95fa2)
18: 
18:   Previous write of size 4 at 0x7b28000000f8 by main thread (mutexes: write 
M262):
18:     #0 next_event_batch 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-proton/c/src/proactor/epoll.c:2411
 (libqpid-proton-proactor.so.1+0x1017a)
18:     #1 pn_proactor_wait 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-proton/c/src/proactor/epoll.c:2650
 (libqpid-proton-proactor.so.1+0x14622)
18:     #2 thread_run 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1106 
(libqpid-dispatch.so+0xf545e)
18:     #3 qd_server_run 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1501 
(libqpid-dispatch.so+0xf5808)
18:     #4 main_process 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:115
 (qdrouterd+0x40287c)
18:     #5 main 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:369
 (qdrouterd+0x4024fc)
18: 
18:   Location is heap block of size 160 at 0x7b28000000a0 allocated by main 
thread:
18:     #0 calloc <null> (libtsan.so.0+0x32b3e)
18:     #1 find_tslot 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-proton/c/src/proactor/epoll.c:2158
 (libqpid-proton-proactor.so.1+0x11002)
18:     #2 next_event_batch 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-proton/c/src/proactor/epoll.c:2404
 (libqpid-proton-proactor.so.1+0x11002)
18:     #3 pn_proactor_wait 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-proton/c/src/proactor/epoll.c:2650
 (libqpid-proton-proactor.so.1+0x14622)
18:     #4 thread_run 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1106 
(libqpid-dispatch.so+0xf545e)
18:     #5 qd_server_run 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1501 
(libqpid-dispatch.so+0xf5808)
18:     #6 main_process 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:115
 (qdrouterd+0x40287c)
18:     #7 main 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:369
 (qdrouterd+0x4024fc)
18: 
18:   Mutex M262 (0x7b640003cd20) created at:
18:     #0 pthread_mutex_init <null> (libtsan.so.0+0x49603)
18:     #1 pmutex_init 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-proton/c/src/proactor/epoll-internal.h:323
 (libqpid-proton-proactor.so.1+0xd52c)
18:     #2 pn_proactor 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-proton/c/src/proactor/epoll.c:1941
 (libqpid-proton-proactor.so.1+0xd52c)
18:     #3 qd_server 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1354 
(libqpid-dispatch.so+0xf3598)
18:     #4 qd_dispatch_prepare 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/dispatch.c:333 
(libqpid-dispatch.so+0x75f06)
18:     #5 ffi_call_unix64 <null> (libffi.so.6+0x6c03)
18:     #6 main_process 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:97
 (qdrouterd+0x40281c)
18:     #7 main 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:369
 (qdrouterd+0x4024fc)
18: 
18:   Thread T4 (tid=1805, running) created by main thread at:
18:     #0 pthread_create <null> (libtsan.so.0+0x5bf45)
18:     #1 sys_thread 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/posix/threading.c:181
 (libqpid-dispatch.so+0x9643e)
18:     #2 qd_server_run 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/src/server.c:1499 
(libqpid-dispatch.so+0xf57e2)
18:     #3 main_process 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:115
 (qdrouterd+0x40287c)
18:     #4 main 
/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/router/src/main.c:369
 (qdrouterd+0x4024fc)
{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