You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support opt-in crashpad (out-of-proc) for native crash handling in AOT applications #4867
The .NET SDK's native crash integration uses SENTRY_BACKEND=inproc, which has limitations in containerized/ephemeral environments (e.g., Kubernetes).
When a native crash occurs (SIGSEGV, etc.), the in-process handler may not capture and send the crash before the process terminates. This is especially problematic when:
Containers have no persistent storage (no PVC)
The orchestrator terminates pods quickly after a crash
There's no opportunity for crash-on-restart recovery
Currently, users must disable the SDK's native integration (<SentryNative>false</SentryNative>) and manually configure crashpad with their own watchdog process to reliably capture native crashes.
Solution Brainstorm
Opt-in crashpad package: Bundle crashpad (out-of-proc crash handling) as a separate opt-in NuGet package. This would allow users in containerized environments to get reliable native crash capture without manual setup.
Documentation improvements: Document the current inproc limitations and the <SentryNative>false</SentryNative> opt-out for users who need to manage native crash handling themselves.
Configuration options: Expose options to configure the native crash handler backend (inproc vs crashpad) for advanced use cases.
Context: This request comes from a customer successfully running AOT-compiled .NET 10 apps in Kubernetes who had to implement their own crashpad wrapper to get reliable native crash capture with proper managed + native stack traces.
I'm not exactly sure how this would work. From the docs, it looks like it's possible to pass a SENTRY_BACKEND=crashpad property to the build process (for the SDK user's app or for Sentry native???) and then make sure crashpad is in the same directory as the application.
Does that need to be passed when building SDK user's app or when building Sentry native?
If it's Sentry native, we'd need to bundle separate versions of Sentry native 😞
If it's when building the user's app, we need to work out what that property does in cmake and see if we can do the same from .NET somehow
I'm guessing this wouldn't work on mobile platforms (no permissions to launch a separate process) so would need to disable it for those environments
Activity
linear commentedon Jan 23, 2026
NET-570
jamescrosswell commentedon Jan 26, 2026
I'm not exactly sure how this would work. From the docs, it looks like it's possible to pass a
SENTRY_BACKEND=crashpadproperty to the build process (for the SDK user's app or for Sentry native???) and then make sure crashpad is in the same directory as the application.References
feat(native): implement HTTP client interface
ref(native): implement HTTP client interface
fix: don't report caught NullReferenceException as a native crash
fix(native): preload signal handlers before runtime
ref(native): implement HTTP client interface
fix(native): preload signal handlers before runtime
fix(native): preload signal handlers before runtime
fix(native): implement HTTP client interface (#5987)
fix(native): preload signal handlers before runtime
fix: prevent false native crash reports from handled exceptions in Na…