You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Ken Giusti (Jira)" <ji...@apache.org> on 2022/01/04 14:46:00 UTC
[jira] [Created] (DISPATCH-2302) Segfault in core_client_api.c on shutdown
Ken Giusti created DISPATCH-2302:
------------------------------------
Summary: Segfault in core_client_api.c on shutdown
Key: DISPATCH-2302
URL: https://issues.apache.org/jira/browse/DISPATCH-2302
Project: Qpid Dispatch
Issue Type: Bug
Components: Router Node
Affects Versions: 1.18.0
Reporter: Ken Giusti
Attachments: NEW_BUG.txt
Hard to reproduce - I hit this only due to a buggy patch I was working on but seems legit:
During shutdown qdr_core_free() cleans up any outstanding endpoint clients. This results in any outstanding core client RPC calls to be cancelled by invoking the "free request" logic which invokes the "request done" client handler with the error parameter set to "link detach".
In the case of the edge router client address lookup module, the error is ignored and the client assumes the request was successful. At this point it attempts to process the request which results in a segfault.
We need to audit all the core client "request done" callbacks to make sure the error flag is being checked and properly handled.
See backtrace in attachment
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org