Skip to content

feat: add intentional crash API - #2013

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

feat: add intentional crash API#2013
jpnurmi wants to merge 2 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 2436b1f

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