[
https://issues.apache.org/jira/browse/DISPATCH-2289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17444699#comment-17444699
]
ASF subversion and git services commented on DISPATCH-2289:
-----------------------------------------------------------
Commit 99be9d4f56bc8b486e82079aa53022d98977a7ad in qpid-dispatch's branch
refs/heads/1.18.x from Ken Giusti
[ https://gitbox.apache.org/repos/asf?p=qpid-dispatch.git;h=99be9d4 ]
DISPATCH-2289: postpone data stream free until after disconnect.
The TCP adaptor should not release any outstanding data stream
elements until after the connection disconnect event. Otherwise it is
possible proton is still holding a reference to the data stream.
This closes #1439
(cherry picked from commit f7fdaf12a1bcbaa660f6ebc10d066542a3a30fca)
> use-after-free of streaming data causes crash in tcp adaptor
> ------------------------------------------------------------
>
> Key: DISPATCH-2289
> URL: https://issues.apache.org/jira/browse/DISPATCH-2289
> Project: Qpid Dispatch
> Issue Type: Bug
> Components: Protocol Adaptors
> Affects Versions: 1.17.1
> Reporter: Ken Giusti
> Assignee: Ken Giusti
> Priority: Critical
>
> The adaptor is manipulating a stream data which it previously freed:
>
> #0 0x000000000045f7e3 qd_message_stream_data_release_up_to
> (qdrouterd + 0x5f7e3)
> #1 0x000000000043f9a3 handle_connection_event (qdrouterd +
> 0x3f9a3)
> #2 0x00000000004b873c handle_event_with_context (qdrouterd +
> 0xb873c)
> #3 0x00000000004b8779 do_handle_raw_connection_event
> (qdrouterd + 0xb8779)
> #4 0x00000000004b9639 handle (qdrouterd + 0xb9639)
>
> #5 0x00000000004b9747 thread_run (qdrouterd + 0xb9747)
>
> #6 0x000000000046c856 _thread_init (qdrouterd + 0x6c856)
>
> #7 0x00007f35282b73f9 start_thread (libpthread.so.0 +
> 0x93f9)
> #8 0x00007f3527ddb4c3 __clone (libc.so.6 + 0x1014c3)
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]