虚拟机已安装 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 <
http://gnu.org/licenses/gpl.html>
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 ?
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/659420
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.