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

MB-44253: Remove try/catch from Executor*::runTask methods #9

Merged

Conversation

trondn
Copy link

@trondn trondn commented Dec 3, 2024

Slightly adapted Dave Rigby's patch:

commit 3d4519d
Author: Dave Rigby [email protected]
Date: Thu Feb 11 14:01:47 2021 +0000

MB-44253: Remove try/catch from Executor*::runTask methods

These try/catch blocks prevent unhandled exceptions in GlobalTasks
from triggering std::terminate, and in turn generating a Breakpad
minidump with the state of the process when the exception was thrown
(as opposed to where it was caught).

Started a discussion with Folly about a more generic way to address
this (i.e. making the try/catch somehow optional) - see
https://github.com/facebook/folly/issues/1525 - but in the short-term
simply remove the invokeCatchingExns() wrapper from our branch.

(Note: Currently we only use ThreadPoolExecutor and hence we only
/need/ to change that one, but for consistency / possible future use
change all instances).

@udkyo udkyo self-requested a review December 3, 2024 15:43
Copy link

@udkyo udkyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@trondn trondn force-pushed the v2024.11.25.00-couchbase branch from 3df85fa to c51da3d Compare December 10, 2024 13:42
@udkyo udkyo merged commit 21f92b3 into couchbasedeps:v2024.11.25.00-couchbase Dec 10, 2024
1 of 4 checks passed
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.

2 participants