Skip to content

Fix crash during shutdown after unsuccessful ping()#8674

Merged
dyemanov merged 1 commit intov5.0-releasefrom
work/fix-shutdown-crash-after-ping
Jul 30, 2025
Merged

Fix crash during shutdown after unsuccessful ping()#8674
dyemanov merged 1 commit intov5.0-releasefrom
work/fix-shutdown-crash-after-ping

Conversation

@dyemanov
Copy link
Copy Markdown
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
@mrotteveel mrotteveel added the rlsnotes60: no Intentionally not added to the Firebird 6.0 release notes. label Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants