feat: add intentional crash API - #2013
Merged
Merged
Conversation
|
jpnurmi
force-pushed
the
jpnurmi/feat/trigger-crash
branch
from
August 23, 2026 08:48
a093937 to
adf82a7
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #2013 +/- ##
==========================================
+ Coverage 74.17% 74.30% +0.13%
==========================================
Files 104 104
Lines 26619 26627 +8
Branches 4844 4844
==========================================
+ Hits 19744 19786 +42
+ Misses 5532 5492 -40
- Partials 1343 1349 +6 🚀 New features to boost your workflow:
|
Expose sentry_crash for verifying native crash reporting integrations and use it across existing crash test fixtures.
jpnurmi
force-pushed
the
jpnurmi/feat/trigger-crash
branch
from
August 24, 2026 09:48
adf82a7 to
c3099b0
Compare
jpnurmi
marked this pull request as ready for review
August 24, 2026 11:08
jpnurmi
force-pushed
the
jpnurmi/feat/trigger-crash
branch
from
August 24, 2026 14:32
5848186 to
ef9b3f0
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit dd226c8. Configure here.
mujacica
approved these changes
Aug 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds
sentry_crash()to deliberately crash the current process, allowing downstream SDKs and users to verify native crash reporting without bundling a custom crash library. It is promoted from the example and preserves the existing ASan and AIX handling.Because this API intentionally contains code that crashes, there is a risk that static analysis tools will report it as a defect. This may cause analysis failures in downstream projects that include sentry-native in their source tree and in static analysis.
To reduce that risk, #2014 added CI builds using GCC
-fanalyzer, MSVC/analyze, and Cppcheck. These checks increase confidence for the analyzers we run, but we cannot practically cover every commercial or downstream analyzer, such as Coverity, SonarQube, and others. Analyzer-specific findings therefore remain possible, although their impact should generally be manageable because these tools typically support excluding, ignoring, or suppressing individual findings.Close: #913