运行崩溃时vmlinux中没有调试数据来分析内核恐慌
我正在尝试使用 kdump 和 crash 实用程序来分析 openSUSE 11.3 上的 Linux 内核恐慌。系统成功创建了 vmcore 文件,但是当我去分析它时,崩溃抱怨缺少符号。
# crash -s vmlinux-2.6.34-12-desktop.gz vmcore
crash: vmlinux-2.6.34-12-desktop.gz: no debugging data available
crash: vmlinux-2.6.34-12-desktop.debug: debuginfo file not found
crash: either install the appropriate kernel debuginfo package, or
copy vmlinux-2.6.34-12-desktop.debug to this machine
该系统正在运行库存桌面内核
# uname -r
2.6.34-12-desktop
,并安装了 kernel-devel
和 kernel-desktop-devel
软件包。是否有其他软件包具有调试符号(类似于 Red Hat 的 kernel-debuginfo rpm),或者是否有其他我应该使用的方法/内核?
I'm trying to analyze a Linux kernel panic on openSUSE 11.3 using kdump and the crash utility. The system is successfully creating the vmcore file, but when I go to analyze it, crash complains about the lack of symbols.
# crash -s vmlinux-2.6.34-12-desktop.gz vmcore
crash: vmlinux-2.6.34-12-desktop.gz: no debugging data available
crash: vmlinux-2.6.34-12-desktop.debug: debuginfo file not found
crash: either install the appropriate kernel debuginfo package, or
copy vmlinux-2.6.34-12-desktop.debug to this machine
The system is running a stock desktop kernel
# uname -r
2.6.34-12-desktop
and has the kernel-devel
and kernel-desktop-devel
packages installed. Does some other package have the debug symbols (similar to Red Hat's kernel-debuginfo rpm) or is there another approach / kernel I should be using?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
openSUSE 的符号命名与 Red Hat 及其变体(CentOS、Fedora 等)类似,但存在于不同的 存储库。对于此示例,vmlinux 符号位于
kernel-desktop-devel-debuginfo
包中,但实际上,您可能还想获取kernel-desktop-debuginfo
对于模块符号。The symbols for openSUSE are named similarly to Red Hat and variants (CentOS, Fedora, ...) but live in a different repository. For this example, the vmlinux symbols are in the
kernel-desktop-devel-debuginfo
package, but practically, you'd probably also want to grab thekernel-desktop-debuginfo
for the module symbols.加载内核的“kernel-debug-devel”包。
Load the "kernel-debug-devel" package for your kernel.