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

common: assert: abort() rather than throw #6804

Merged
merged 1 commit into from Dec 18, 2015

Conversation

adamemerson
Copy link
Contributor

Assertion failure should be big. It should be catastrophic. It should
make an impression!

It should also not throw exceptions. This change does exactly that.

More specifically it calls abort() so we don't throw out stack frames or
otherwise mess up debugging.

Signed-off-by: Adam C. Emerson aemerson@redhat.com

@adamemerson adamemerson force-pushed the putting-the-fail-in-assertion-failed branch from b6f4312 to 5c07cd6 Compare December 5, 2015 02:05
@adamemerson adamemerson force-pushed the putting-the-fail-in-assertion-failed branch from 5c07cd6 to e0491be Compare December 11, 2015 00:43
Assertion failure should be big. It should be catastrophic. It should
make an impression!

It should also not throw exceptions. This change does exactly that.

More specifically it calls abort() so we don't throw out stack frames or
otherwise mess up debugging.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
@adamemerson adamemerson force-pushed the putting-the-fail-in-assertion-failed branch from e0491be to f07e029 Compare December 11, 2015 19:25
@liewegas
Copy link
Member

lgtm!

liewegas added a commit that referenced this pull request Dec 18, 2015
common: assert: abort() rather than throw

Reviewed-by: Sage Weil <sage@redhat.com>
@liewegas liewegas merged commit 14f5d3b into master Dec 18, 2015
@liewegas liewegas deleted the putting-the-fail-in-assertion-failed branch December 18, 2015 20:08
@ghost ghost changed the title assert: abort() rather than throw common: assert: abort() rather than throw Feb 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants