Skip to content

Fix[mqb]: safe use of clientContext - #1231

Merged
dorjesinpo merged 1 commit into
mainfrom
fix/safe-clientContext
Apr 2, 2026
Merged

Fix[mqb]: safe use of clientContext#1231
dorjesinpo merged 1 commit into
mainfrom
fix/safe-clientContext

Conversation

@dorjesinpo

Copy link
Copy Markdown
Collaborator

Using QueueHandle::d_clientContext_sp after QueueHandle::clearClientDispatched is possible and leads to segfault.

Solution. QueueHandle::clearClientDispatched does not reset d_clientContext_sp, instead it is marked as isCleared

@dorjesinpo
dorjesinpo requested a review from a team as a code owner March 30, 2026 21:54
@dorjesinpo dorjesinpo added the bug Something isn't working label Mar 30, 2026
@dorjesinpo
dorjesinpo force-pushed the fix/safe-clientContext branch 4 times, most recently from 47c8351 to 3d7cd28 Compare March 31, 2026 02:32
Signed-off-by: dorjesinpo <129227380+dorjesinpo@users.noreply.github.com>
@dorjesinpo
dorjesinpo force-pushed the fix/safe-clientContext branch from 3d7cd28 to d9addb8 Compare March 31, 2026 15:47
@dorjesinpo dorjesinpo changed the title safe use of clientContext Fix[mqb]: safe use of clientContext Mar 31, 2026
@dorjesinpo
dorjesinpo requested a review from pniedzielski March 31, 2026 16:37
@dorjesinpo
dorjesinpo merged commit 97a8a44 into main Apr 2, 2026
48 of 50 checks passed
@dorjesinpo
dorjesinpo deleted the fix/safe-clientContext branch April 2, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants