Bug 197583 - Empty <cmdline> node causes virsh crash
Summary: Empty <cmdline> node causes virsh crash
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Veillard
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-07-04 11:10 UTC by Mark McLoughlin
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-07-04 11:42:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mark McLoughlin 2006-07-04 11:10:26 UTC
In virDomainParseXMLOSDesc(), cur->children can be NULL if the txt node is empty


[root@lak test3]# grep cmdline test3.xml
    <cmdline></cmdline>

[root@lak test3]# gdb virsh
(gdb) run create test3.xml
Starting program: /usr/bin/virsh create test3.xml

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912500545936 (LWP 24715)]
virDomainParseXMLDesc (xmldesc=Variable "xmldesc" is not available.
) at xml.c:614
614                     if ((txt->type == XML_TEXT_NODE) && (txt->next == NULL))

Comment 1 Daniel Veillard 2006-07-04 11:42:05 UTC
Dohh !!
I fixed the other similar bugs found in that module, oops !
Commited in CVS.

  thanks,

Daniel


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