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

Clifford Jansen commented on PROTON-2239:
-----------------------------------------

Attached patch is a mitigation which greatly reduces the possibility that a 
timer callback is unaccounted for.  A complete fix remains elusive.

> epoll proactor race condition on connection teardown with heartbeats
> --------------------------------------------------------------------
>
>                 Key: PROTON-2239
>                 URL: https://issues.apache.org/jira/browse/PROTON-2239
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: proton-c-0.28.0
>            Reporter: Clifford Jansen
>            Assignee: Clifford Jansen
>            Priority: Major
>         Attachments: p2239.diff, xxx.c
>
>
> If a connection with heartbeats is closed at about the same time to when its 
> idle timeout timer fires, it is possible to have two threads believing they 
> are the last activity on the connection. Both threads proceed to free the 
> same resources leading to memory corruption and various crashes.
> The existing code has guards for this exact situation, but there is an 
> Achilles heel somewhere.



--
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