Skip to content

Catch exceptions inside c4queryobs_setEnabled() #2237

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

snej
Copy link
Collaborator

@snej snej commented Feb 14, 2025

Speculative fix for intermittent crash observed by a customer. This API function calls into C4Query::enableObserver(), which is a pretty complex method that is not marked noexcept, so it's possible it sometimes throws, causing the crash in std::terminate seen in customer's crash logs.

Speculative fix for intermittent crash observed by a customer.
This API function calls into C4Query::enableObserver(), which is a
pretty complex method that is not marked `noexcept`, so it's
possible it sometimes throws, causing the crash in `std::terminate`
seen in customer's crash logs.
@snej snej force-pushed the fix/safer_c4queryobs_setEnabled branch from b8eff67 to 93c5fb9 Compare February 14, 2025 23:49
@snej snej requested review from pasin and velicuvlad February 14, 2025 23:49
@cbl-bot
Copy link

cbl-bot commented Feb 15, 2025

Code Coverage Results:

Type Percentage
branches 66.19
functions 78.43
instantiations 70.43
lines 77.62
regions 73.43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants