技术解析

请教使用 crash 分析 vmcore
0
2021-06-17 15:26:51
idczone
虚拟机已安装 kernel-debug-debuginfo 、kernel-debuginfo-common,使用 crash 分析本机生成的 vmcore 文件时出现报错。

本机内核版本和软件包信息:

# uname -r
2.6.32-754.el6.x86_64
# rpm -qa | grep kernel-debug
kernel-debug-debuginfo-2.6.32-754.el6.x86_64
kernel-debuginfo-common-x86_64-2.6.32-754.el6.x86_64

crash 报错内容:

# crash /usr/lib/debug/lib/modules/2.6.32-754.el6.x86_64.debug/vmlinux ./vmcore

crash 7.1.0-8.el6
Copyright (C) 2002-2014 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc.
This program is free software, covered by the GNU General Public License,
and you are welcome to change it and/or distribute copies of it under
certain conditions. Enter "help copying" to see the conditions.
This program has absolutely no warranty. Enter "help warranty" for details.

GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...

crash: page excluded: kernel virtual address: ffffffff815b6f80 type: "cpu_possible_mask"

网上某些帖子说是 vmlinux 与 vmcore 不匹配,就我的情况来看并非如此,请教应该怎么配置才能正常分析 vmcore ?


数据地带为您的网站提供全球顶级IDC资源
在线咨询
专属客服