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 845468

Summary: snapshot-list --descendants --from will core dumped
Product: Red Hat Enterprise Linux 6 Reporter: Huang Wenlong <whuang>
Component: libvirtAssignee: Peter Krempa <pkrempa>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.4CC: acathrow, cwei, dallan, dyasny, dyuan, mzhan, pkrempa, rwu, zhpeng
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-0.10.0-0rc1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 07:20:45 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 Huang Wenlong 2012-08-03 07:35:35 UTC
Description of problem:
snapshot-list  --descendants --from  will core dumped

Version-Release number of selected component (if applicable):
libvirt-0.10.0-0rc0.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.297.el6_3.x86_64


How reproducible:
100%

Steps to Reproduce:
1.  prepare a domain with snapshot
# virsh snapshot-list q3
 Name                 Creation Time             State
------------------------------------------------------------
 d1                   2012-07-26 14:43:43 +0800 disk-snapshot
 d2                   2012-07-26 14:43:49 +0800 disk-snapshot
 d3                   2012-07-26 14:43:56 +0800 disk-snapshot
 s1                   2012-07-26 11:06:19 +0800 running
 s2                   2012-07-26 14:34:18 +0800 shutoff
 s3                   2012-07-26 14:34:56 +0800 shutoff


2.# virsh snapshot-list q3 --descendants --from d1
Segmentation fault (core dumped)
[root@intel-q9400-4-2 ~]# virsh snapshot-list q3 --descendants --from s1
Segmentation fault (core dumped)


Actual results:
as step2

Expected results:
no core dumped

Additional info:

-- 
Best Regards!
Wenlong Huang
IRC Account: wenlong
Phone: 62608117

Comment 2 Peter Krempa 2012-08-03 09:41:53 UTC
The problem is in the RPC code that doesn't fill one of the arguments when doing the remote call. I'll post a patch soon.

Comment 3 Peter Krempa 2012-08-03 11:02:46 UTC
Fixed upstream:

commit 2b01761d5e9addaefe33b2934576836836f486e2
Author: Peter Krempa <pkrempa>
Date:   Fri Aug 3 11:45:12 2012 +0200

    remote: Fill snapshot argument in remoteDomainSnapshotListAllChildren
    
    The remote driver did not fill the required snapshot parent argument in
    the RPC call structure that caused a client crash when trying to use
    this new API.

Moving to POST.

Comment 5 zhpeng 2012-08-23 08:07:47 UTC
Test with: libvirt-0.10.0-0rc1.el6.x86_64

[root@zhpeng ~]# virsh snapshot-list rhel63q --descendants --from d1
 Name                 Creation Time             State
------------------------------------------------------------
 d2                   2012-08-23 15:59:00 +0800 disk-snapshot
 d3                   2012-08-23 15:59:02 +0800 disk-snapshot
 d4                   2012-08-23 15:59:04 +0800 disk-snapshot
 snap1                2012-08-23 15:59:09 +0800 running

So this is verified.

Comment 6 errata-xmlrpc 2013-02-21 07:20:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0276.html