Skip to content

Add troubleshooting section for duplicate native crash events (.NET)#18623

Open
jamescrosswell wants to merge 3 commits into
masterfrom
dotnet-duplicate-native-exceptions-docs-3943
Open

Add troubleshooting section for duplicate native crash events (.NET)#18623
jamescrosswell wants to merge 3 commits into
masterfrom
dotnet-duplicate-native-exceptions-docs-3943

Conversation

@jamescrosswell

Copy link
Copy Markdown
Collaborator

DESCRIBE YOUR PR

Adds a Duplicate events from native crashes section to the .NET Troubleshooting page, covering the case where a single managed exception that surfaces as a native signal (e.g. a NullReferenceException raised as a SIGSEGV) is reported to Sentry twice — once as the managed .NET exception and once as a native crash.

The section documents the platform-specific fixes:

  • iOS — handled automatically as of SDK 6.4.0; no configuration needed.
  • Android — preferred (experimental) fix via options.Native.ExperimentalOptions.SignalHandlerStrategy = SignalHandlerStrategy.ChainAtStart, with runtime/version caveats, plus the options.Android.SuppressSegfaults fallback.

This resolves getsentry/sentry-dotnet#3943 (which asked to document AndroidOptions.SuppressSegfaults), reframing it around the newer preferred fix landed by @jpnurmi and demoting SuppressSegfaults to a documented fallback.

Related sentry-dotnet PRs: #4676 (Android/Mono), #5126 (iOS), #5127 (Android/CoreCLR); tracking issue #3954.

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

🤖 Generated with Claude Code

Documents how to resolve duplicate managed + native crash events on
Android and iOS. Covers the preferred (experimental) SignalHandlerStrategy
approach and the SuppressSegfaults fallback on Android, and notes the
automatic iOS handling as of 6.4.0.

Closes #3943 (getsentry/sentry-dotnet).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview, Comment Jul 2, 2026 11:38pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Jul 2, 2026 11:38pm

Request Review

@jamescrosswell

Copy link
Copy Markdown
Collaborator Author

@jpnurmi would be good to get your eyes on this briefly, to double check it doesn't say anything crazy.

The new section was nested inside the existing PlatformSection scoped
to dotnet.maui/dotnet.apple only, so readers on the plain ".NET for
Android" guide (not MAUI) wouldn't see the Android-specific fix. Give
it its own PlatformSection that also includes dotnet.android.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Comment thread docs/platforms/dotnet/common/troubleshooting.mdx

@jpnurmi jpnurmi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice, looks good! 👍

Comment thread docs/platforms/dotnet/common/troubleshooting.mdx
Comment thread docs/platforms/dotnet/common/troubleshooting.mdx
Resolves https://github.com/getsentry/sentry-docs/pull/18623/changes#r3510081163

Co-authored-by: James Crosswell <jamescrosswell@users.noreply.github.com>
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.

Document AndroidOptions.SuppressSegfaults

2 participants