Skip to content

fix(native): ensure event ID for fastfail crashes - #1832

Merged
jpnurmi merged 3 commits into
masterfrom
jpnurmi/fix/native/event-id
Jul 1, 2026
Merged

jpnurmi merged 3 commits into
masterfrom
jpnurmi/fix/native/event-id

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

This PR ensures that fast-fail crash envelopes have valid event IDs, which is required for resolving the correct envelope path when launching the external crash reporter.

For normal SEH crashes, native_backend_except is called, and it populates the event with a valid event ID by calling sentry_value_new_event. For fast-fail crashes captured via WER, however, the app callback cannot be called, and __sentry-event was therefore left without a valid ID. Consequently, the envelope's filename couldn't be correctly resolved when launching the external crash reporter for fast-fail crashes.

Before After
image image

@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 165a2c1. Configure here.

Comment thread tests/test_integration_native.py Resolved
@jpnurmi
jpnurmi requested review from JoshuaMoelans and mujacica July 1, 2026 07:16
@jpnurmi
jpnurmi merged commit 902c9d5 into master Jul 1, 2026
97 of 98 checks passed
@jpnurmi
jpnurmi deleted the jpnurmi/fix/native/event-id branch July 1, 2026 11:00
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
sentry-native 0.15.3

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.

- [ ] `resource` blocks have been checked for updates.
<details>
  <summary>release notes</summary>
  <pre>**Features**

- Android: Expose app-hang detection through the NDK bindings via `NdkOptions.setEnableAppHangTracking()` and `NdkOptions.setAppHangTimeoutMillis()`. ([#1823](getsentry/sentry-native#1823))
- Windows: add wide-char versions of `sentry_capture_minidump` and `sentry_capture_minidump_n`. ([#1827](getsentry/sentry-native#1827))
- Add `sentry_update_context` to allow updating already set context objects with new key-value pairs, as well as new values for existing keys. ([#1835](getsentry/sentry-native#1835))

**Fixes**:

- Native/Windows: ensure valid event IDs for fast-fail crash envelopes to fix launching of the external crash reporter for fast-fail crashes. ([#1832](getsentry/sentry-native#1832))
- Native/Linux: resolve symbols from split-debug files on Linux. ([#1836](https://github.com/getsentry/sentry-native/pull/1836))</pre>
  <p>View the full release notes at <a href="https://github.com/getsentry/sentry-native/releases/tag/0.15.3">https://github.com/getsentry/sentry-native/releases/tag/0.15.3</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!13728
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.

3 participants