[Crash-utility] crash does not work with last fedora kernels?

Vasily Averin vvs at virtuozzo.com
Mon Apr 26 08:27:40 UTC 2021


It looks like Fedora kernels uses gcc11 and generates debuginfo in DWARF 5 format.

[root at localhost ~]# rpm -q crash
crash-7.2.9-5.fc35.x86_64
[root at localhost ~]# uname -a
Linux localhost.localdomain 5.11.12-300.fc34.x86_64 #1 SMP Wed Apr 7 16:31:13 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux


[root at localhost ~]# crash -1
Dwarf Error: wrong version in compilation unit header (is 5, should be 2, 3, or 4) [in module /usr/lib/debug/usr/lib/modules/5.11.12-300.fc34.x86_64/vmlinux]
crash: gdb_session_init: pulling in debug data by accessing init_mm.mmap 
Dwarf Error: wrong version in compilation unit header (is 5, should be 2, 3, or 4) [in module /usr/lib/debug/usr/lib/modules/5.11.12-300.fc34.x86_64/vmlinux]

crash: /usr/lib/debug/lib/modules/5.11.12-300.fc34.x86_64/vmlinux: no debugging data available

[root at localhost ~]# ls -al /usr/lib/debug/lib/modules/5.11.12-300.fc34.x86_64/vmlinux
-rwxr-xr-x. 1 root root 679679112 Apr  7 20:14 /usr/lib/debug/lib/modules/5.11.12-300.fc34.x86_64/vmlinux
[root at localhost ~]# rpm -qf /usr/lib/debug/lib/modules/5.11.12-300.fc34.x86_64/vmlinux
kernel-debuginfo-5.11.12-300.fc34.x86_64

NB: last fc35 does not work too.

Thank you,
	Vasily Averin




More information about the Crash-utility mailing list