8000 Please support adding crash metadata as extra stream · Issue #214 · rust-minidump/minidump-writer · GitHub
[go: up one dir, main page]

Skip to content

Please support adding crash metadata as extra stream #214

Open

Description

@bdrung

I would be useful to crash metadata as extra stream to the minidump file. My proposal is to use a flexible format like BSON for it and declare common key, value pairs. Example keys:

  • Date
  • Distribution
  • Architecture
  • Package
  • /proc/cmdline
  • Uname

This way Linux distribution could use it to collect additional information, but the format is flexible enough to be adapted to other use cases.

Activity

  1. gabrielesvelto commented on Aug 21, 2026

    @gabrielesvelto
    Contributor

    You might want to check out how Google Crashpad does it. We've got a pull request that I haven't merged yet to surface that information in rust-minidump. If that works for you we could add support for that.

    Also keep in mind that some of the information you're looking for is already in the minidump, in particular:

    • The contents of /proc/cmdline are in the LinuxCmdLine stream
    • The distribution info is in the LinuxLsbRelease stream
    • The processor architecture and uname are in the SystemInfoStream stream
    • The date is in the minidump header

    Try using minidump-stackwalk --dump or minidump-stackwalk --json to inspect the full contents of a Linux minidump. What you're lo 6EC9 oking for might already be there.

  2. bdrung commented on Aug 21, 2026

    @bdrung
    Author

    To give some background information: I discussed the idea with @schopin-mozilla to change Apport (Ubuntu's crash dumper) to use minidump. Apport collects the crash, metadata like I mentioned, package information, and has a hook infrastructure to collect more information (like config setting, config files, locale, Desktop env, etc).

  3. gabrielesvelto commented on Aug 26, 2026

    @gabrielesvelto
    Contributor

    Yes, this is something we definitely want to do. In Firefox we collect this information in a separate file (.extra, what the code in rust-minidump calls "evil JSON") but we'd like that info to live in the minidump instead.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0