Bug 1451550

Summary: crash can not read files generated with --memory-only option for virsh dump
Product: Red Hat Enterprise Linux 7 Reporter: chenruping <ruchen>
Component: qemu-kvm-rhevAssignee: Ademar Reis <areis>
Status: CLOSED DUPLICATE QA Contact: hachen <hachen>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: aliang, chayang, coli, dyuan, jdenemar, jinzhao, juzhang, knoel, michen, rbalakri, virt-maint, yafu, yuhuang, zpeng
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-18 16:08:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description chenruping 2017-05-17 03:34:16 UTC
Description of problem:
crash can not read files generated with --memory-only option for virsh dump 

Version-Release number of selected component:
Host:
kernel-3.10.0-666.el7.x86_64
libvirt-3.2.0-5.virtcov.el7.x86_64
crash-7.1.9-2.el7.x86_64
kernel-debug-3.10.0-666.el7.x86_64
kernel-debuginfo-3.10.0-666.el7.x86_64
kernel-debuginfo-common-x86_64-3.10.0-666.el7.x86_64
qemu-kvm-rhev-2.6.0-28.el7_3.9.x86_64

Guest: 
 kernel-3.10.0-666.el7.x86_64

How reproducible:
100%


Steps to Reproduce:
1.Start and dump the guest
# virsh dump generic-3 --memory-only  /tmp/generic-3.raw
Domain generic-3 dumped to /tmp/generic-3.raw

2.check the dump info
# crash /usr/lib/debug/lib/modules/3.10.0-666.el7.x86_64/vmlinux /tmp/generic-3.raw

Actual results:

crash 7.1.9-2.el7
Copyright (C) 2002-2016  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.
 
WARNING: cannot determine physical base address: defaulting to 0

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: read error: kernel virtual address: 656c69663a6f666e  type: "possible"
WARNING: cannot read cpu_possible_map
crash: read error: kernel virtual address: c040001a  type: "present"
WARNING: cannot read cpu_present_map
crash: /usr/lib/debug/lib/modules/3.10.0-666.el7.x86_64/vmlinux and /tmp/generic-3.raw do not match!

Usage:

  crash [OPTION]... NAMELIST MEMORY-IMAGE[@ADDRESS]    (dumpfile form)
  crash [OPTION]... [NAMELIST]                     (live system form)

Enter "crash -h" for details.



Expected Results:

Crash utility succeeds in reading the file generated with 'virsh dump --memory-only'.

Comment 2 Ademar Reis 2017-05-18 16:08:29 UTC

*** This bug has been marked as a duplicate of bug 1395248 ***