linux - 分析 Xen 核心转储

标签 linux gdb coredump xen

Xen guest 域挂起后,我使用 xm core-dump 进行了转储。根据我找到的稀疏文档,我尝试使用崩溃实用程序来分析转储。

不幸的是,内核镜像 (Debian lenny) 被剥离了,所以我不得不使用映射文件。

但是,

crash /boot/System.map-2.6.26-2-xen-amd64 vmlinux-2.6.26-2-xen-amd64 /mnt/my-core-file

(vmlinux-2.6.26-2-xen-amd64 是 gunzip 的 vmlinuz 镜像)失败:

crash: vmlinux-2.6.26-2-xen-amd64: no debugging data available

然后我读到当前的 Xen 版本为 guest 域生成 ELF 兼容的转储。确实,情况似乎是这样:

~$ sudo file my-core-dump

my-core-dump: ELF 64-bit LSB core file x86-64, version 1

但是,gdb vmlinux-2.6.26-2-xen-amd64 my-core-dump 也失败了:

...is not a core dump: File format not recognized

有什么提示吗?

最佳答案

您是否尝试连接到 domU 控制台?

xm create domU.conf -c

关于核心转储文件的主题,我发现了这个:

http://lists.xensource.com/archives/html/xen-devel/2006-12/msg00456.html

I just want to check that you aren't under the impression that 'xm dump-core' emits an Elf core file. It doesn't -- the format is custom and as far as I know is only interpreted by a set of gdbserver patches that we ship in our repository. Does the crash utility really support this special format?

编辑:这可能有助于调试核心转储:http://os-drive.com/files/docbook/xen-faq.html#setup_gdb

关于linux - 分析 Xen 核心转储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1454413/

相关文章:

java - 如何将文件从远程Linux机器复制到JSP Web目录

c++ - gdb:改变特定对象时中断

android - 在android中生成核心转储

c - strcmp 的段错误(核心转储)错误

c++ - Linux 上的编译 - 在函数 '_start' : (. text+0x20) 中:对 'main' 的 undefined reference

python - 如何将错误消息从 shell 脚本传递到 Python 脚本?

linux - bash/linux 的简单一行,检查 PNG 是否有效?

c - 栈帧和gdb

c++ - 使用 gdb backtrace 调试 MPI 代码

c - OS X : Generate core dump without bringing down the process?