Skip to content

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

@mdh1418

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)

Metadata

Metadata

Labels

needs-triageIssues that need to be assigned.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions