Skip to content

Feature-request: Path replacement for executable and symbol file lookup #1137

Description

@ishaanmehta4

Problem

Currently, rust-minidump relies on file paths embedded in the DMP file to locate executables and symbol files. This works well when decoding on the same machine where the dump was generated. However, on a different machine—even if the required artifacts exist—the tool fails to locate them because the paths differ.

In many workflows, build artifacts are preserved and shared across machines. A simple path replacement mechanism would allow decoding crashes on any machine without restructuring directories.

Proposed Solution

Introduce two new command-line arguments:

  • --symbolSourceDirToReplace <sourceDir>
  • --targetDir <targetDir>

These options will replace the prefix of symbol paths from the DMP file before lookup.

Example
Symbol path in DMP file:
C://some/user/path/myApp/foo/bar.pdb

Actual location on current machine:
D://some/other/path/foo/bar.pdb

Command:

rust-minidump ./crashDump.dmp --use-local-debuginfo --human \
  --symbolSourceDirToReplace C://some/user/path/myApp \
  --targetDir D://some/other/path

This approach ensures seamless symbol resolution across machines with mirrored directory structures.

Activity

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