Skip to content

Fix crash during shutdown after unsuccessful ping() #8674

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 30, 2025

Conversation

dyemanov
Copy link
Member

If Y-valve's ping() gets an error from the underlying provider, it disconnects immediately and clears the next pointer. YHelper::release() calls destroy() only if next != nullptr. Thus the attachment handle remains uncleared from the attachments array. When shutdown is performed afterwards, it iterates through this array and tries to shutdown/release the already destroyed attachment.

@dyemanov dyemanov requested a review from AlexPeshkoff July 29, 2025 06:55
@dyemanov dyemanov changed the base branch from master to v5.0-release July 29, 2025 06:55
@dyemanov dyemanov self-assigned this Jul 30, 2025
@dyemanov dyemanov merged commit af1e441 into v5.0-release Jul 30, 2025
22 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants