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

Can't find the vmlinux file for kernel Version 4.18.0-80.11.2.el8_0.x86_64 (CentOS8)

Only for an older version like below. /usr/lib/debug/usr/lib/modules/4.18.0-80.7.1.el8_0.x86_64/vmlinux

Any pointer for me from where to download it?

DebugInfo repo is enabled, but still getting not the actual vmlinux file.

It looks like CentOS is behind on copying kernel debuginfo rpms into the repository (at http://debuginfo.centos.org/) so I don't think you can get the file you want at the moment.

OK. So I have to wait. Thanks for reply.

You may want to file a request at https://bugs.centos.org and urge^W ask CentOS devs. There is one for CentOS-7 https://bugs.centos.org/view.php?id=16820.

Thanks Akemi Yagi.

Opened a bug report for it on bugs.centos.org regarding this issue.