https://github.com/yshui/coredump-copy
Go debug your core dumps somewhere else
https://github.com/yshui/coredump-copy
Last synced: about 1 month ago
JSON representation
Go debug your core dumps somewhere else
- Host: GitHub
- URL: https://github.com/yshui/coredump-copy
- Owner: yshui
- Created: 2024-08-03T16:10:56.000Z (10 months ago)
- Default Branch: next
- Last Pushed: 2024-11-11T11:57:21.000Z (6 months ago)
- Last Synced: 2025-04-06T06:12:16.866Z (about 1 month ago)
- Language: Rust
- Homepage: https://trace.yshui.dev/2024-08-copy-core-dumps.html
- Size: 22.5 KB
- Stars: 26
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
coredump-copy
=============# Usage
```
coredump-copy
```- ``: The core dump file to copy. This will copy the core dump file along with all the files it references. The resulting core dump will be modified to reference the new paths. The core dump file will be named `/core`.
- ``: Where files should be copied to.# Why
Sometimes you might want to copy a core dump file to another machine, and debug it there. For example, when your program crashed on a remote machine, or in CI.
It is not enough to just copy the core dump file and the main binary, you also need to copy all the shared libraries and also maintain the directory structure, and set a prefix in gdb so it can find them. This program does all of that for you, automatically.
# Caveat
This program is not fool proof. Since it mangles with the core dump files, it is possible that it can do something wrong and break them. Report a bug if this doesn't work.