[Spice-devel] qemu crashed while changing fc20 guest display resolution

邵鄭叡 vampirictutor at gmail.com
Sun Jun 22 20:02:34 PDT 2014


Hi , I am using qemu to experience fodora20 (Fedora-Live-LXDE-i686-20).
After I successfully installed fedora , it runs in 1024x768 mode,
then I tried to set display resolution to 1680x1050 (or some other 'big'
numbers),
qemu crashed.

Here is detail:

================ back trace  =========================
#0  memset () at ../sysdeps/x86_64/memset.S:1054
#1  0x00007f66df711fd5 in red_create_surface (worker=0x7f65cdc25010,
surface_id=3, width=1680, height=1050, stride=6720, format=32,
line_0=0x7f65cef02000, data_is_valid=0, send_client=1) at red_worker.c:9473
#2  0x00007f66df703b76 in red_process_surface (worker=0x7f65cdc25010,
surface=0x7f65c8163660, group_id=1, loadvm=0) at red_worker.c:4252
#3  0x00007f66df705edc in red_process_commands (worker=0x7f65cdc25010,
max_pipe_size=50, ring_is_empty=0x7f65ce5feb5c) at red_worker.c:5068
#4  0x00007f66df712243 in flush_display_commands (worker=0x7f65cdc25010) at
red_worker.c:9526
#5  0x00007f66df715517 in handle_dev_update_async (opaque=0x7f65cdc25010,
payload=0x7f66e222e820) at red_worker.c:10842
#6  0x00007f66df7f636b in dispatcher_handle_single_read
(dispatcher=0x7f66e2226108) at dispatcher.c:139
#7  0x00007f66df7f644c in dispatcher_handle_recv_read
(dispatcher=0x7f66e2226108) at dispatcher.c:162
#8  0x00007f66df718173 in handle_dev_input (fd=22, event=1,
opaque=0x7f65cdc25010) at red_worker.c:11880
#9  0x00007f66df718850 in red_worker_main (arg=0x7fff78c245b0) at
red_worker.c:12021
#10 0x00007f66dd3719ca in start_thread (arg=<value optimized out>) at
pthread_create.c:300
#11 0x00007f66dc12221d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

(gdb) frame 1
#1  0x00007f66df711fd5 in red_create_surface (worker=0x7f65cdc25010,
surface_id=3, width=1680, height=1050, stride=6720, format=32,
line_0=0x7f65cef02000, data_is_valid=0, send_client=1) at red_worker.c:9473
9473            memset((char *)line_0 + (int32_t)(stride * (height - 1)),
0, height*abs(stride));
(gdb) l
9468        surface->context.height = height;
9469        surface->context.format = format;
9470        surface->context.stride = stride;
9471        surface->context.line_0 = line_0;
9472        if (!data_is_valid) {
9473            memset((char *)line_0 + (int32_t)(stride * (height - 1)),
0, height*abs(stride));
9474        }
9475        surface->create.info = NULL;
9476        surface->destroy.info = NULL;
9477        ring_init(&surface->current);

================ full qemu cmd line ===================
/home/grizzlybears/long_term_vms/q200/bin/Qemu-system-x86_64
  -enable-kvm -L /home/grizzlybears/long_term_vms/q200/share/qemu
  -nodefconfig -nodefaults -smp 4,sockets=2,cores=8,threads=1 -m 4096
  -drive if=virtio,aio=native,file=/home/grizzlybears/images/f20_32b.qcow2
  -cdrom /home/grizzlybears/images/Fedora-Live-LXDE-i686-20-1.iso
  -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5
  -spice
port=10116,addr=0.0.0.0,disable-ticketing,image-compression=auto_glz,streaming-video=filter,disable-copy-paste

  -vga qxl -global qxl-vga.ram_size=67108864 -global
qxl-vga.vram_size=9437184
  -soundhw hda
  -readconfig /home/grizzlybears/long_term_vms/docs/ich9-ehci-uhci.cfg
  -chardev spicevmc,id=charredir0,name=usbredir -device
usb-redir,chardev=charredir0,id=redir0
  -device usb-tablet,id=input0,bus=ehci.0
  -netdev
tap,id=nic1,script=/home/grizzlybears/long_term_vms/ifup-br100,downscript=/home/grizzlybears/long_term_vms/ifdown-br100

  -device virtio-net-pci,netdev=nic1,mac=52:54:00:fb:d5:27 -balloon none
-no-hpet -rtc base=utc,driftfix=none -global
kvm-pit.lost_tick_policy=discard
  -chardev
socket,id=charmonitor,path=/home/grizzlybears/long_term_vms/dig_into/qmon_f20_32b,server,nowait
-mon chardev=charmonitor,id=monitor,mode=readline

================ versions  ===========================
qemu version 2.0.0
spice version 0.12.5
guest type Fedora 20 32bit created from Fedora-Live-LXDE-i686-20-1.iso

================ some more info ===========================
I use same qemu/spice to run win7_64b guest with spice-guest-tool-0.3
installed, and that is OK.
No crash happens while display reolution switching.

If I change '-global qxl-vga.ram_size=67108864 -global
qxl-vga.vram_size=9437184 '
         to '-global qxl-vga.ram_size=67108864 -global
qxl-vga.vram_size=67108864 ',
then no crash but 'black screen' I got.


May I get any debug hint ? :)

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20140622/c5fe5369/attachment.html>


More information about the Spice-devel mailing list