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 - snapshot-list --descendants --from will core dumped
Summary: snapshot-list --descendants --from will core dumped
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.4
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Peter Krempa
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-03 07:35 UTC by Huang Wenlong
Modified: 2013-10-20 21:45 UTC (History)
9 users (show)

Fixed In Version: libvirt-0.10.0-0rc1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-21 07:20:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0276 0 normal SHIPPED_LIVE Moderate: libvirt security, bug fix, and enhancement update 2013-02-20 21:18:26 UTC

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


Note You need to log in before you can comment on or make changes to this bug.