Skip to content

feat: add intentional crash API - #2013

Open
jpnurmi wants to merge 15 commits into
masterfrom
jpnurmi/feat/trigger-crash
Open

feat: add intentional crash API#2013
jpnurmi wants to merge 15 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 and preserves the existing ASAN and AIX handling.

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

Close: #913

@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 d4f73e5

@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 50.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.29%. Comparing base (162f97a) to head (d4f73e5).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2013      +/-   ##
==========================================
- Coverage   74.35%   74.29%   -0.06%     
==========================================
  Files         104      104              
  Lines       26518    26526       +8     
  Branches     4824     4824              
==========================================
- Hits        19717    19708       -9     
- Misses       5454     5475      +21     
+ Partials     1347     1343       -4     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Expose sentry_crash for verifying native crash reporting integrations and use
it across existing crash test fixtures.
@jpnurmi
jpnurmi force-pushed the jpnurmi/feat/trigger-crash branch from adf82a7 to c3099b0 Compare August 24, 2026 09:48
@jpnurmi
jpnurmi marked this pull request as ready for review August 24, 2026 11:08
Comment thread src/sentry_core.c Outdated
Comment thread src/sentry_core.c Outdated
@jpnurmi
jpnurmi force-pushed the jpnurmi/feat/trigger-crash branch from 5848186 to ef9b3f0 Compare August 24, 2026 14:32
Comment thread src/sentry_core.c Outdated

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ 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.

Comment thread src/sentry_core.c
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