kvm crashes during snapshot creation

Bug #1124553 reported by Davide Guerri
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qemu-kvm (Ubuntu)
Confirmed
High
Unassigned

Bug Description

Whenever I try to take an internal snapshot with libvirt, kvm crashes with a segfault.

I'm using Ubuntu Quantal, qemu-kvm version: 1.2.0 libvirt version: 0.9.13

For instance:

virsh # snapshot-create-as 00000_00000_Guerri_VD test
error: Unable to read from monitor: Connection reset by peer

Logs except:

==> libvirt/qemu/00000_00000_Guerri_VD.log <==
*** glibc detected *** /usr/bin/kvm: free(): invalid pointer: 0x00007f1ab8000a00 ***

==> syslog <==
Feb 13 22:47:54 kvm02 kernel: [39570.605558] kvm[16192]: segfault at 8 ip 00007f1ac615e512 sp 00007f1a25f07cf0 error 4 in libc-2.15.so[7f1ac60de000+1b5000]

==> apport.log <==
ERROR: apport (pid 16214) Wed Feb 13 22:47:54 2013: called for pid 15445, signal 11, core limit 0
ERROR: apport (pid 16214) Wed Feb 13 22:47:54 2013: executable: /usr/bin/qemu-system-x86_64 (command line "/usr/bin/kvm -name 00000_00000_Guerri_VD -S -M pc-1.0 -cpu Westmere,+rdtscp,+pdpe1gb,+dca,+xtpr,+tm2,+est,+vmx,+ds_cpl,+monitor,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme -enable-kvm -m 2048 -smp 2,sockets=2,cores=1,threads=1 -uuid 731decda-0e70-caf1-03c1-f7ff1e2db455 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/00000_00000_Guerri_VD.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime -no-shutdown -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x7 -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/nfs/qn1-raidset1/00000_00000_Guerri_VD.img,if=none,id=drive-virtio-disk0,format=qcow2,cache=none,aio=native -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive if=none,id=drive-ide0-1-0,readonly=on,format=raw,cache=none,aio=native -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=42,id=hostnet0,vhost=on,vhostfd=43 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:38:f3:a6,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0 -vnc 0.0.0.0:0 -k it -vga cirrus -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6")
ERROR: apport (pid 16214) Wed Feb 13 22:47:54 2013: is_closing_session(): no DBUS_SESSION_BUS_ADDRESS in environment
ERROR: apport (pid 16214) Wed Feb 13 22:47:55 2013: this executable already crashed 2 times, ignoring

Revision history for this message
Davide Guerri (davide-guerri) wrote :

If domain is saved before taking the snapshot, all works as expected

virsh # save 00000_00000_Guerri_VD /tmp/vmsave

Domain 00000_00000_Guerri_VD saved to /tmp/vmsave

virsh # snapshot-create-as 00000_00000_Guerri_VD test
Domain snapshot test created

virsh # restore /tmp/vmsave
Domain restored from /tmp/vmsave

virsh # snapshot-list 00000_00000_Guerri_VD
 Name Creation Time State
------------------------------------------------------------
 test 2013-02-13 23:38:43 +0100 shutoff

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Is there any chance you'd be able to test whether this is fixed in raring?

affects: qemu (Ubuntu) → qemu-kvm (Ubuntu)
Changed in qemu-kvm (Ubuntu):
importance: Undecided → High
status: New → Incomplete
Revision history for this message
Davide Guerri (davide-guerri) wrote :

I don't have a raring instance atm.

 I'd like to try a backport of KVM 1.3. Is this available (beta)?

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Hi Davide,

I've built a version of qemu 1.3 in ppa:serge-hallyn/virt.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for qemu-kvm (Ubuntu) because there has been no activity for 60 days.]

Changed in qemu-kvm (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Dean Kamali (dean-kamali) wrote :

I'm having the same issue with Ubuntu 12.04.2 LTS, every time I try and take snapshot I get the following error.

error: Unable to read from monitor: Connection reset by peer

Then the virtual mechine shuts down, and qemu log for that vm shows

 *** glibc detected *** /usr/bin/kvm: free(): invalid pointer: 0x00007f2368000a00 ***

is there is a fix?

Thank you

Changed in qemu-kvm (Ubuntu):
status: Expired → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.