Skip to content

SIGSEGV when a NullReferenceException is thrown in Release mode #3861

Closed
0 of 1 issue completed
Closed
@tranb3r

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

  1. Open repro app in Visual Studio and set your Dsn for Sentry before running the app. Check Sentry.Maui version in csproj.
  2. Run the app in Release mode on Android.
  3. Tap on Run button. A NullReferenceException happens.
  4. 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.
  5. 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

dotnet/android#9055
#3461
#3694

Sub-issues

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    • Status

      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions