Skip to content

Kernel vmlinux files do not contain debug info

Task Info (Flyspray)
Opened By qookie (qookie)
Task ID 75652
Type Bug Report
Project Arch Linux
Category Kernel
Version None
OS x86_64
Opened 2022-08-19 15:24:19 UTC
Status Assigned
Assignee Tobias Powalowski (tpowa)
Assignee Jan Alexander Steffens (heftig)
Assignee David Runge (dvzrv)

Details

Description:

The kernel vmlinux files (contained in the linux-headers packages) have their debug info stripped, which makes it impossible to debug kernel crashes using "crash".

This applies to at least linux-headers-5.19.2.arch1-1 and linux-zen-headers-5.19.2-zen1-1, and presumably to all kernels based on the same PKGBUILD.

Steps to reproduce:

  1. Follow https://wiki.archlinux.org/title/Kdump to set up a dump kernel using a kernel from the repo (instead of a manually compiled one),
  2. Trigger a crash,
  3. Try to inspect the dump file with "crash":

$ crash /usr/lib/modules/5.19.2-zen1-1-zen/build/vmlinux crashdump-2022-08-19-16:44:58

crash 8.0.1 ... For help, type "help". Type "apropos word" to search for commands related to "word"...

crash: /usr/lib/modules/5.19.2-zen1-1-zen/build/vmlinux: no debugging data available

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information