V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
king1688888888
V2EX  ›  Linux

请教使用 crash 分析 vmcore

  •  
  •   king1688888888 · 2020-04-04 19:30:14 +08:00 · 1755 次点击
    这是一个创建于 1693 天前的主题,其中的信息可能已经有所发展或是发生改变。
    虚拟机已安装 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 ?
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2848 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 02:49 · PVG 10:49 · LAX 18:49 · JFK 21:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.