Comment 2 for bug 588803

Revision history for this message
Nicolas Grandjean (ncgrandjean) wrote :

# tar -zxf qemu-kvm-0.12.4.tar.gz
# cd qemu-kvm-0.12.4/
# ./configure --enable-debug && make && sudo make install
# sudo gdb qemu-system-x86_64
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(gdb) r test.img
Starting program: /usr/local/bin/qemu-system-x86_64 test.img
[Thread debugging using libthread_db enabled]
[New Thread 0x7f0730e906f0 (LWP 9790)]
[New Thread 0x7f072ef12950 (LWP 9793)]
[New Thread 0x7f072549b950 (LWP 9794)]
VNC server running on `127.0.0.1:5900'

(qemu) savevm // works fine
(qemu) savevm // crash!!

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f0730e906f0 (LWP 9790)]
0x00007f072fa276d2 in strcmp () from /lib/libc.so.6
(gdb) bt
#0 0x00007f072fa276d2 in strcmp () from /lib/libc.so.6
#1 0x00000000004ee0c6 in bdrv_snapshot_find (bs=0x18fd390, sn_info=0x7fffe87dd600, name=0x0) at savevm.c:1632
#2 0x00000000004ee1b6 in del_existing_snapshots (mon=0x1985800, name=0x0) at savevm.c:1654
#3 0x00000000004ee41b in do_savevm (mon=0x1985800, qdict=0x1951020) at savevm.c:1722
#4 0x0000000000416b25 in handle_user_command (mon=0x1985800, cmdline=0x194d0b0 "savevm ")
    at /home/ght1/Kvm/orig/qemu-kvm-0.12.2/monitor.c:3672
#5 0x0000000000417d80 in monitor_command_cb (mon=0x1985800, cmdline=0x194d0b0 "savevm ", opaque=0x0)
    at /home/ght1/Kvm/orig/qemu-kvm-0.12.2/monitor.c:4180
#6 0x00000000004c3657 in readline_handle_byte (rs=0x194d0b0, ch=13) at readline.c:369
#7 0x0000000000417cf9 in monitor_read (opaque=0x1985800, buf=0x7fffe87ddca0 "\r�}��\177", size=1)
    at /home/ght1/Kvm/orig/qemu-kvm-0.12.2/monitor.c:4166
#8 0x00000000004e6a0d in qemu_chr_read (s=0x18f8110, buf=0x7fffe87ddca0 "\r�}��\177", len=1) at qemu-char.c:154
#9 0x00000000004c5cd7 in kbd_send_chars (opaque=0x19856c0) at console.c:1130
#10 0x00000000004c5f22 in kbd_put_keysym (keysym=65293) at console.c:1183
#11 0x0000000000506799 in do_key_event (vs=0x1bd3420, down=1, keycode=28, sym=65293) at vnc.c:1630
#12 0x00000000005067fb in key_event (vs=0x1bd3420, down=1, sym=65293) at vnc.c:1647
#13 0x0000000000507738 in protocol_client_msg (vs=0x1bd3420, data=0x194fc10 "\004\001y", len=8) at vnc.c:1936
#14 0x0000000000505c2f in vnc_client_read (opaque=0x1bd3420) at vnc.c:1303
#15 0x000000000040c73b in main_loop_wait (timeout=1000) at /home/ght1/Kvm/orig/qemu-kvm-0.12.2/vl.c:3999
#16 0x000000000042dcf9 in kvm_main_loop () at /home/ght1/Kvm/orig/qemu-kvm-0.12.2/qemu-kvm.c:2121
#17 0x000000000040cde4 in main_loop () at /home/ght1/Kvm/orig/qemu-kvm-0.12.2/vl.c:4209
#18 0x00000000004108dc in main (argc=2, argv=0x7fffe87de598, envp=0x7fffe87de5b0)
    at /home/ght1/Kvm/orig/qemu-kvm-0.12.2/vl.c:6235

The file "test.img" is a Qemu Image, Format: Qcow , Version: 2 with a clean Debian 5.0 install. I have the same issue with Windows XP.