Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

determine the vmlinux file from the crash dump #285

Closed
wants to merge 53 commits into from

Conversation

PaulZ-98
Copy link
Contributor

= Problem

sdb does not automatically determine the vmlinux file from the crash dump
#41

= Solution

When a crash dump is supplied but the vmlinux file is not supplied on the command line, parse the crash dump to find the OS version, then scan /usr/lib/debug and /root for the vmlinux file matching that version. This follows the solution proposed by @prakashsurya. Other options require changes outside of sdb/drgn.

root@ub-20:~/sdb_detect/sdb# sdb -s /root/objs /root/dump-orig/dump.202102031354
sdb using ['/root/dumps/vmlinux-5.8.0-41-generic'] auto-detected from core file
sdb>

Tested with a core referencing a vmlinux that can be found in /root or /usr/lib/debug, and with one that is not located in /root or /usr/lib/debug.

Closes #41

PaulZ-98 and others added 23 commits November 23, 2021 14:07
Develop CI code quality checks for sdb

See merge request sdb_dev/sdb!11
Add zfs_refcount command

See merge request sdb_dev/sdb!7
Fix CI failure, yapf reports formatting error in exit.py

See merge request sdb_dev/sdb!13
Add a zio command to sdb

See merge request sdb_dev/sdb!9
Add mutex and rrwlock commands to sdb

See merge request sdb_dev/sdb!8
Add nvlist command to sdb

See merge request sdb_dev/sdb!10
Add blkptr command to sdb

See merge request sdb_dev/sdb!6
# Conflicts:
#   tests/integration/test_zfs_generic.py
Create a znode command for sdb

See merge request sdb_dev/sdb!4
Add the ps command to sdb.

See merge request sdb_dev/sdb!3
Fixes to pass tests

See merge request sdb_dev/sdb!14
to not print the address of the field.

Signed-off-by: Tony Perkins <[email protected]>
Enhance the sdb print command to allow a new parameter "-S"

See merge request sdb_dev/sdb!15
Handle exception when gathering stacks

See merge request sdb_dev/sdb!16
@PaulZ-98 PaulZ-98 changed the title Sdb detect determine the vmlinux file from the crash dump May 17, 2022
@PaulZ-98
Copy link
Contributor Author

Let me try this again. It picks up too many other Datto changes.

@PaulZ-98 PaulZ-98 closed this May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

how to determine which "vmlinux" to use when working with kernel dumps?
2 participants