Skip to content

fix(native): support sentry_reinstall_backend - #2159

Merged
jpnurmi merged 1 commit into
masterfrom
jpnurmi/fix/native-reinstall
Oct 5, 2026
Merged

jpnurmi merged 1 commit into
masterfrom
jpnurmi/fix/native-reinstall

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Backend reinstallation, as originally introduced in #449 (#388), is mostly useful when using the Native SDK alongside other frameworks and runtimes that install signal handlers.

This PR adds missing reinstallation support for the native backend by reinstalling signal handlers without shutting down and starting up the whole backend/daemon. It also preserves saved handlers across repeated calls, including a NULL previous Windows exception filter.

Also, remove the experimental label from sentry_reinstall_backend now that all backends support reinstallation.

Ref: #2116

@codecov

codecov Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.87719% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.22%. Comparing base (636593d) to head (f84917f).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2159      +/-   ##
==========================================
- Coverage   75.41%   75.22%   -0.19%     
==========================================
  Files         103      103              
  Lines       28105    28151      +46     
  Branches     5132     5143      +11     
==========================================
- Hits        21194    21176      -18     
- Misses       5578     5643      +65     
+ Partials     1333     1332       -1     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Reinstall native crash handlers without restarting the daemon or
recreating backend state. Preserve saved handlers across repeated calls,
including a `NULL` previous Windows exception filter.

Add regression tests for handler replacement and crash uploads with
preserved breadcrumbs and attachments. Also remove the experimental
marker from `sentry_reinstall_backend`.
@jpnurmi
jpnurmi force-pushed the jpnurmi/fix/native-reinstall branch from 5233c12 to f84917f Compare October 2, 2026 16:37
@jpnurmi
jpnurmi requested review from limbonaut and mujacica October 5, 2026 07:12
@jpnurmi
jpnurmi merged commit 9464d49 into master Oct 5, 2026
68 checks passed
@jpnurmi
jpnurmi deleted the jpnurmi/fix/native-reinstall branch October 5, 2026 11:46
@jpnurmi jpnurmi linked an issue Oct 8, 2026 that may be closed by this pull request
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.

Promote experimental & remove deprecated features

2 participants