You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/02/27 17:59:00 UTC

[jira] [Commented] (DISPATCH-1272) Router crashes when detach from receiver and detach from broker arrive at the same time on a link route

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

ASF subversion and git services commented on DISPATCH-1272:
-----------------------------------------------------------

Commit 8e94c5cf6f98083af3066b8cff2fd5aa0b176027 in qpid-dispatch's branch refs/heads/master from Ganesh Murthy
[ https://gitbox.apache.org/repos/asf?p=qpid-dispatch.git;h=8e94c5c ]

DISPATCH-1272 - Zeroed the qd_link->pn_link reference so there would be no attempt to send out a detach by CORE_link_detach if the outgoing pn_link has already been freed


> Router crashes when detach from receiver and detach from broker arrive at the same time on a link route
> -------------------------------------------------------------------------------------------------------
>
>                 Key: DISPATCH-1272
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1272
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Container
>    Affects Versions: 1.5.0
>            Reporter: Ganesh Murthy
>            Assignee: Ganesh Murthy
>            Priority: Major
>             Fix For: 1.6.0
>
>
> A receiver attaches to the router on a link routed address which is serviced by the *standalone* router via a route-container connection connected to the broker.
> When the receiver and the broker send detaches at the same time, the receiver side pn_link gets freed and the router tries to forward the detach received from the broker on to this freed pn_link and crashes.
> {noformat}
> (gdb) thread 1
> [Switching to thread 1 (LWP 8445)]
> #0  pn_data_clear (data=data@entry=0x15) at /usr/src/debug/qpid-proton-0.26.0/c/src/core/codec.c:409
> 409        data->size = 0;
> (gdb) bt
> #0  pn_data_clear (data=data@entry=0x15) at /usr/src/debug/qpid-proton-0.26.0/c/src/core/codec.c:409
> #1  0x00007fb9385e1e21 in pn_data_copy (data=0x15, src=0x93dbfc0) at /usr/src/debug/qpid-proton-0.26.0/c/src/core/codec.c:2071
> #2  0x00007fb938851f89 in qdr_error_copy (from=from@entry=0x7fb91c209698, to=<optimized out>) at /usr/src/debug/qpid-dispatch-1.5.0/src/router_core/error.c:96
> #3  0x00007fb93886738b in CORE_link_detach (context=0x18185c0, link=0x7fb91c104fd8, error=0x7fb91c209698, first=<optimized out>, close=<optimized out>) at /usr/src/debug/qpid-dispatch-1.5.0/src/router_node.c:1345
> #4  0x00007fb93884d792 in qdr_connection_process (conn=0x7fb91c059f18) at /usr/src/debug/qpid-dispatch-1.5.0/src/router_core/connections.c:330
> #5  0x00007fb938833558 in writable_handler (container=0x182f6d0, container=0x182f6d0, conn=0x7fb921a96650, qd_conn=0x7fb9201f31d8) at /usr/src/debug/qpid-dispatch-1.5.0/src/container.c:332
> #6  qd_container_handle_event (container=0x182f6d0, event=event@entry=0x307aa10, conn=conn@entry=0x7fb921a96650, qd_conn=qd_conn@entry=0x7fb9201f31d8) at /usr/src/debug/qpid-dispatch-1.5.0/src/container.c:640
> #7  0x00007fb93886c4df in handle (qd_server=qd_server@entry=0x182dde0, e=e@entry=0x307aa10, pn_conn=pn_conn@entry=0x7fb921a96650, ctx=ctx@entry=0x7fb9201f31d8) at /usr/src/debug/qpid-dispatch-1.5.0/src/server.c:985
> #8  0x00007fb93886d2cf in thread_run (arg=0x182dde0) at /usr/src/debug/qpid-dispatch-1.5.0/src/server.c:1010{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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