Skip to content
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

Save errno in signal handlers #9457

Merged
merged 1 commit into from
Mar 1, 2020
Merged

Conversation

alexey-milovidov
Copy link
Member

@alexey-milovidov alexey-milovidov commented Mar 1, 2020

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Avoid extremely rare cases when the user can get wrong error message (Success instead of detailed error description).

Detailed description / Documentation draft:
This was clearly a bug. But it's very unlikely to reproduce. It requires query profiler enabled with some high frequency (by default it is enabled with the frequency of one second) and we should have some error when we check errno (example: cannot read from file) and the profiling signal should come exactly in the instruction when we already get the error but before we have checked for errno. I have not seen this bug in practice yet. The fix comes only from theoretical observations and no test will be attached.

@alexey-milovidov alexey-milovidov added pr-bugfix Pull request with bugfix, not backported by default no-docs-needed labels Mar 1, 2020
@alexey-milovidov alexey-milovidov merged commit c107ed2 into master Mar 1, 2020
@alexey-milovidov alexey-milovidov deleted the profiler-save-errno branch March 1, 2020 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-docs-needed pr-bugfix Pull request with bugfix, not backported by default
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants