Feature #463
closed
tool to capture debug info
Added by Sage Weil over 13 years ago.
Updated over 13 years ago.
Description
- /usr/bin/ binary
- /usr/lib/debug/usr/bin symbol binary (if any)
- core files (if any)
- logs
Maybe it should check that any found core files match the binary before including them (the default /core could be anything).
It should probably take a (required?) argument specifying the tar.gz with all the info.
commit:baa3772b1558af280a878c7b32b1d739c4054ed3 introduces cdebugpack. Generates a tar.gz (name needs to be specified on the command line). Included info is the cmon/cmds/cosd binaries, the log directory and core files. At the moment it search for the core files in a few predefined places, but doesn't try to be smart about it.
- Status changed from New to Resolved
- Status changed from Resolved to In Progress
- Assignee changed from Yehuda Sadeh to Sage Weil
Yehuda can you make a quick man page?
There is a little bug in "cebugpack".
/bin/sh is used as interpreter. On Debian systems /bin/sh is symlinked to /bin/bash, but on Ubuntu systems it is linked to /bin/dash
When running the tool on Ubuntu you get:
root@node01:/usr/src/ceph/src# ./cdebugpack
[: 52: unexpected operator
./cdebugpack: 55: Bad substitution
root@node01:/usr/src/ceph/src#
Changing to /bin/bash as interpreter fixes it.
- Status changed from In Progress to Resolved
Also available in: Atom
PDF