gpt4 book ai didi

linux - 分析 Xen 核心转储

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:12:30 25 4
gpt4 key购买 nike

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

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

但是,

crash/boot/System.map-2.6.26-2-xen-amd64vmlinux-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: nodebugging 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 notrecognized

有什么提示吗?

最佳答案

您是否尝试连接到 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com