Bug 1270745

Summary: virt-sysprep got segmentation fault with ppc64le guest image
Product: Red Hat Enterprise Linux 7 Reporter: Wayne Sun <gsun>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: dyuan, hliu, leiwang, mzhan, ptoscano
Target Milestone: rc   
Target Release: ---   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-12 11:14:17 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 Wayne Sun 2015-10-12 09:50:13 UTC
Description of problem:
virt-sysprep got segmentation fault on ppc64le host with a rhel7.2 ppc64le guest image. 

Version-Release number of selected component (if applicable):
# rpm -q libguestfs libguestfs-tools libvirt
libguestfs-1.28.1-1.35.el7.ppc64le
libguestfs-tools-1.28.1-1.35.el7.noarch
libvirt-1.2.17-13.el7.ppc64le

How reproducible:
always

Steps to Reproduce:
1. run virt-sysprep with
# virt-sysprep -a /var/lib/libvirt/images/jeos-19-64.qcow2  -n --operations defaults,-ssh-hostkeys -v -x
[   0.0] Examining the guest ...
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
Segmentation fault


2.
3.

Actual results:
fail

Expected results:
succeed

Additional info:
# qemu-img info /var/lib/libvirt/images/jeos-19-64.qcow2 
image: /var/lib/libvirt/images/jeos-19-64.qcow2
file format: qcow2
virtual size: 8.0G (8589934592 bytes)
disk size: 8.0G
cluster_size: 65536
Format specific information:
    compat: 1.1
    lazy refcounts: true
    refcount bits: 16
    corrupt: false

guest with the image could be started.

Comment 2 Wayne Sun 2015-10-12 11:14:17 UTC

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