SIGSEGV when a NullReferenceException is thrown in Release mode #3861
Description
Package
Sentry.Maui
.NET Flavor
.NET
.NET Version
9.0.0
OS
Android
SDK Version
35
Self-Hosted Sentry Version
No response
Steps to Reproduce
Repro app : https://github.com/tranb3r/Issues/tree/main/MauiAppSegfault
- Open repro app in Visual Studio and set your Dsn for Sentry before running the app. Check Sentry.Maui version in csproj.
- Run the app in Release mode on Android.
- Tap on Run button. A NullReferenceException happens.
- With Sentry.Maui 4.x, the exception is catched silently. Close the app, launch it again. An error report with SIGSEGV is sent to Sentry immediately.
- With Sentry.Maui 5.0.0, even if the exception is catched, the app crashes. Launch the app again. An error report with SIGSEGV is sent to Sentry.
Expected Result
No crash. No SIGSEGV report by Sentry.
Actual Result
With 4.x : no crash but SIGSEGV report by Sentry.
With 5.0 : app crashes and SIGSEGV report is sent by Sentry.
Without Sentry.Maui : no crash (exception is catched).
Related issues/PRs
Sub-issues
Metadata
Assignees
Labels
Type
Projects
Status
Done
Status
No status