Skip to content

[Diagnostics] Enable .NET Runtime crash reporting before signal chaining #11290

Description

@mdh1418

Android registers signal handlers before .NET's runtime registers its own signal handlers. Android's signal handlers will kill the .NET process before .NET's crash reporting logic has a chance to fire.

In dotnet/runtime#123735, a config property System.Runtime.CrashReportBeforeSignalChaining was added to allow opting-in to switching that order, allowing .NET's crash reporting logic to run.

The config property can possibly be set in

and documented here https://github.com/dotnet/android/blob/5f936b91172479056922dd4e49fab98ca0d0443a/Documentation/docs-mobile/building-apps/build-properties.md

After enabling, diagnostics such as logged managed callstacks dotnet/runtime#123824 and a crash report json file written on disk dotnet/runtime#126916 should be available (given the right runtime version)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

needs-triageIssues that need to be assigned.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions