Skip to content

feat: add intentional crash API - #2013

Draft
jpnurmi wants to merge 3 commits into
masterfrom
jpnurmi/feat/trigger-crash
Draft

feat: add intentional crash API#2013
jpnurmi wants to merge 3 commits into
masterfrom
jpnurmi/feat/trigger-crash

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

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, preserves the existing ASAN and AIX handling, and additionally guarantees termination if a user-installed handler allows execution to continue.

TODO: Any risk of triggering static-analysis false positives?

Close: #913

Expose sentry_crash for verifying native crash reporting integrations and use
it across existing crash test fixtures.
@github-actions

github-actions Bot commented Aug 21, 2026

Copy link
Copy Markdown
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against adf82a7

@jpnurmi
jpnurmi force-pushed the jpnurmi/feat/trigger-crash branch from a093937 to adf82a7 Compare August 23, 2026 08:48
@codecov

codecov Bot commented Aug 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.64%. Comparing base (8705b5d) to head (adf82a7).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2013      +/-   ##
==========================================
- Coverage   74.66%   74.64%   -0.02%     
==========================================
  Files         104      104              
  Lines       26346    26355       +9     
  Branches     4781     4781              
==========================================
+ Hits        19670    19672       +2     
- Misses       5335     5341       +6     
- Partials     1341     1342       +1     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

New API to delliberately crash the application

1 participant