Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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 ***