Bug 678319

Summary: libvirt crashes on vm run
Product: Red Hat Enterprise Linux 6 Reporter: Moran Goldboim <mgoldboi>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.1CC: berrange, dnaori, eblake, hateya, rvaknin, xen-maint, yoyzhang
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-17 15:37:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
libvirt log none

Description Moran Goldboim 2011-02-17 15:18:48 UTC
Created attachment 479347 [details]
libvirt log

Description of problem:
when trying to run a vm created from pool - libvirt crashes:
#0  0x0000003eab080022 in ?? ()
#1  0x0000003eab07fd46 in ?? ()
#2  0x0000000000000004 in ?? ()
#3  0x0000000000000001 in ?? ()
#4  0x00007f7346bfc2d8 in ?? ()
#5  0x00007f735572a6f7 in virJSONValueNewString (data=0x1 <Address 0x1 out of bounds>) at util/json.c:102
#6  0x00007f735572b201 in virJSONValueObjectAppendString (object=0x7f73340e1e80, key=0x4b9b7f "password", value=<value optimized out>) at util/json.c:283
#7  0x000000000047359e in qemuMonitorJSONMakeCommand (cmdname=<value optimized out>) at qemu/qemu_monitor_json.c:404
#8  0x0000000000476353 in qemuMonitorJSONSetGraphicsPassword (mon=0x7f733409d3d0, type=<value optimized out>, password=<value optimized out>, expiry=<value optimized out>)
    at qemu/qemu_monitor_json.c:1330
#9  0x000000000046415e in qemuInitGraphicsPasswords (driver=0x105a270, vm=0x7f7334063be0, type=4, auth=0x7f733409da58, defaultPasswd=0x0) at qemu/qemu_hotplug.c:1061
#10 0x00000000004495d9 in qemuInitPasswords (conn=0x7f73340a2f00, driver=0x105a270, vm=0x7f7334063be0, migrateFrom=<value optimized out>, start_paused=false, 
    stdin_fd=<value optimized out>, stdin_path=0x0, vmop=VIR_VM_OP_CREATE) at qemu/qemu_driver.c:2406
#11 qemudStartVMDaemon (conn=0x7f73340a2f00, driver=0x105a270, vm=0x7f7334063be0, migrateFrom=<value optimized out>, start_paused=false, stdin_fd=<value optimized out>, stdin_path=0x0, 
    vmop=VIR_VM_OP_CREATE) at qemu/qemu_driver.c:3331
#12 0x000000000044b893 in qemudDomainCreate (conn=0x7f73340a2f00, xml=<value optimized out>, flags=0) at qemu/qemu_driver.c:4012
#13 0x00007f7355780ceb in virDomainCreateXML (conn=0x7f73340a2f00, 
    xmlDesc=0x7f73340e3160 "<?xml version=\"1.0\" ?>\n<domain type=\"kvm\">\n\t<name>xxx-7</name>\n\t<uuid>b236d95c-7a72-4f3b-839e-a1914acf0d5f</uuid>\n\t<memory>524288</memory>\n\t<currentMemory>524288</currentMemory>\n\t<vcpu>1</vcpu>\n\t<devi"..., flags=0) at libvirt.c:2033
#14 0x0000000000429c88 in remoteDispatchDomainCreateXml (server=<value optimized out>, client=<value optimized out>, conn=0x7f73340a2f00, hdr=<value optimized out>, 
    rerr=0x7f7346bfcb90, args=<value optimized out>, ret=0x7f7346bfcc70) at remote.c:1273
#15 0x000000000042c7ca in remoteDispatchClientCall (server=0x1029640, client=0x7f73480012b0, msg=0x7f7348001c80) at dispatch.c:530
#16 remoteDispatchClientRequest (server=0x1029640, client=0x7f73480012b0, msg=0x7f7348001c80) at dispatch.c:408
#17 0x000000000041c4d8 in qemudWorker (data=0x7f7348000920) at libvirtd.c:1582
#18 0x0000003eab8077e1 in ?? ()
#19 0x00007f7346bfd700 in ?? ()


Version-Release number of selected component (if applicable):
vdsm-4.9-48.el6.x86_64
libvirt-0.8.7-6.el6.x86_64
qemu-kvm-0.12.1.2-2.144.el6.x86_64
kernel-2.6.32-94.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1.use the same configuration and run the domain
2.
3.
  
Actual results:
libvirt crashes

Expected results:


Additional info:
create xml:
<domain type="kvm">
        <name>xxx-7</name>
        <uuid>b236d95c-7a72-4f3b-839e-a1914acf0d5f</uuid>
        <memory>524288</memory>
        <currentMemory>524288</currentMemory>
        <vcpu>1</vcpu>
        <devices>
                <disk device="disk" type="file">
                        <source file="/rhev/data-center/07bf7773-b187-4540-bbef-1f3f33d5ceea/dd54489a-aed5-4a90-bd0e-bb07b015bcea/images/26ae0567-2517-4869-b170-db58ca99b737/0d08c950-74fa-402d-8b52-453575e475a5"/>
                        <target bus="virtio" dev="hda"/>
                        <serial>69-b170-db58ca99b737</serial>
                        <driver cache="none" error_policy="stop" io="threads" name="qemu" type="qcow2"/>
                </disk>
                <disk device="cdrom" type="file">
                        <target bus="ide" dev="hdc"/>
                </disk>
                <controller index="0" ports="16" type="virtio-serial"/>
                <channel type="unix">
                        <target name="com.redhat.rhevm.vdsm" type="virtio"/>
                        <source mode="bind" path="/var/lib/libvirt/qemu/channels/xxx-7.com.redhat.rhevm.vdsm"/>
                </channel>
                <memballoon model="none"/>
                <interface type="bridge">
                        <mac address="00:1a:4a:23:6c:35"/>
                        <model type="e1000"/>
                        <source bridge="rhevm"/>
                </interface>
                <input bus="ps2" type="mouse"/>
                <video>
                        <model heads="1" type="qxl" vram="65536"/>
                </video>
                <channel type="spicevmc">
                        <target name="com.redhat.spice.0" type="virtio"/>
                </channel>
                <graphics autoport="yes" keymap="en-us" listen="0" passwd="*****" passwdValidTo="1970-01-01T00:00:01" port="-1" tlsPort="-1" type="spice">
                        <channel mode="secure" name="main"/>
                        <channel mode="secure" name="inputs"/>
                </graphics>
                <sound model="ac97"/>
        </devices>
        <os>
                <type arch="x86_64" machine="rhel6.0.0">hvm</type>
                <boot dev="hd"/>
                <cmdline mode="sysinfo"/>
        </os>
        <sysinfo type="smbios">
                <system>
                        <entry name="manufacturer">Red Hat</entry>
                        <entry name="product">RHEL</entry>
                        <entry name="version">6Server-6.0.0.37.el6_0</entry>
                        <entry name="serial">E16AF4A0-C2CB-11DE-A4EF-00215E991874_00:21:5e:99:18:74</entry>
                        <entry name="uuid">b236d95c-7a72-4f3b-839e-a1914acf0d5f</entry>
                </system>
        </sysinfo>
        <clock adjustment="0" offset="variable"/>
        <features>
                <acpi/>
        </features>
        <cpu match="exact">
                <model>Conroe</model>
                <topology cores="1" sockets="1" threads="1"/>
        </cpu>
</domain>

Comment 2 Daniel Berrangé 2011-02-17 15:37:05 UTC

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