Cannot find debug kernel vmlinux

Latest response

Greetings, I hope someone can help with this.

I am running the RHEL 7.4 debug kernel:

uname -r

3.10.0-693.21.1.el7.x86_64.debug

A kernel vmcore has been created while debugging an issue and is in /var/crash/ as per usual. However, when I attempt to do crash analysis I get this:

crash /var/crash/127.0.0.1-2018-04-10-12:16:08/vmcore /usr/lib/debug/lib/modules/3.10.0-693.21.1.el7.x86_64/vmlinux

stuf...

And then:

crash: /usr/lib/debug/lib/modules/3.10.0-693.21.1.el7.x86_64/vmlinux and /var/crash/127.0.0.1-2018-04-10-12:16:08/vmcore do not match!

But I cannot find out how to install the appropriate vmlinux for the debug kernel which I presume would be in /usr/lib/debug/lib/modules/3.10.0-693.21.1.el7.x86_64.debug/vmlinux but that file does not exist despite installing every kernel-debug-devel file and debuginfo-install file I could find.

Does anyone know where I can get the right debug kernel vmlinux file?

Thanks,

  • Greg

Responses

Do you have kernel-debuginfo and kernel-debuginfo-common installed?

Greg,

To analyze the debug kernel vmcore, you will need the kernel-debug-debuginfo package for your kernel.

Best of luck, Marc

The missing step here is probably subscribing to the debug channel to actually get the debuginfo packages:

debuginfo-install kernel

and then run crash /usr/lib/debug/lib/modules//vmlinux \ /var/crash//vmcore