Skip to content

Feature request: Generate crash report #7168

Description

Today we have CrashDump extension for MTP which generates a dump on crash. In .NET 6.0+, there is also DOTNET_EnableCrashReport which generates a json crash report.

There is also DOTNET_EnableCrashReportOnly in .NET 7.0+, which generates only the report without the dump.

See https://github.com/dotnet/runtime/blob/313982dff3457c8291e8b88cd99785f6920319f0/docs/design/coreclr/botr/xplat-minidump-generation.md#configurationpolicy for docs about these env variables.

Reasons to generate report:

  1. Getting information from CI crashes on macOS when the dev doesn't have access to a macOS. Json is json and will provide info/hints on what's wrong, even if less powerful than a dump, better than nothing.
  2. Avoid paying the cost of uploading large dump files in CI for simple applications where the json will simply provide sufficient information, or maybe in some CI environments where disk space might not even be sufficient to store the dump file, or low-cost setups which won't allow uploading big artifacts.

Activity

  1. added
    area/mtp
    on Jan 7, 2026
  2. added
    area/dump
    on Jan 7, 2026
  3. bart-vmware commented on Jan 8, 2026

    @bart-vmware

    What tools exist to analyze such dump files?

  4. Youssef1313 commented on Jan 12, 2026

    @Youssef1313
    MemberAuthor

    Bart Koelman (@bart-vmware) The crash report you mean? It's just a JSON file. I have never tried it before though, and it seems to be relevant for crashes, not for hangs.

  5. bart-vmware commented on Jan 12, 2026

    @bart-vmware

    I just have no idea what information is in such a file, and how difficult it would be to extract useful information from it.

  6. Youssef1313 commented on Jan 12, 2026

    @Youssef1313
    MemberAuthor

    From the documentation above:

    generates a json formatted crash report which includes information about the threads and stack frames of the crashing application. The crash report name is the dump path/name with .crashreport.json appended.

    So looks like it's mostly plain text of the call stacks of different threads in the crashing app.

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

Metadata

Metadata

Labels

area/dumparea/mtp

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions