Good case (qemu_spice_display_start before qxl_send_events)
Thread 1 "qemu-system-x86" hit Breakpoint 4, qemu_spice_display_start () at ../ui/spice-core.c:995
995 if (spice_display_is_running) {
(gdb) bt
#0 qemu_spice_display_start () at ../ui/spice-core.c:995
#1 0x0000555555a8b6b7 in qemu_spice_display_init_done () at ../ui/spice-core.c:635
#2 0x0000555555a8fe25 in qemu_spice_display_init () at ../ui/spice-display.c:1198
#3 0x0000555555b38646 in qemu_init_displays () at ../softmmu/vl.c:2635
#4 0x0000555555b3b1ad in qemu_init (argc=13, argv=0x7fffffffe4a8, envp=0x7fffffffe518) at ../softmmu/vl.c:3777
#5 0x000055555580bd81 in main (argc=13, argv=0x7fffffffe4a8, envp=0x7fffffffe518) at ../softmmu/main.c:49
(gdb) c
Continuing.
Thread 4 "SPICE Worker" hit Breakpoint 3, qxl_send_events (d=0x555557191210, events=16) at ../hw/display/qxl.c:1867
1867 uint32_t le_events = cpu_to_le32(events);
(gdb) bt
#0 qxl_send_events (d=0x555557191210, events=16) at ../hw/display/qxl.c:1867
#1 0x0000555555a9a5d5 in interface_set_client_capabilities (sin=0x555557191c08, client_present=0 '\000', caps=0x7fffcfdfe6b0 "") at ../hw/display/qxl.c:1019
#2 0x00007ffff7e12231 in ?? () from /lib/x86_64-linux-gnu/libspice-server.so.1
#3 0x00007ffff7e3c943 in ?? () from /lib/x86_64-linux-gnu/libspice-server.so.1
#4 0x00007ffff7e0a255 in ?? () from /lib/x86_64-linux-gnu/libspice-server.so.1
#5 0x00007ffff7e0ae51 in ?? () from /lib/x86_64-linux-gnu/libspice-server.so.1
#6 0x00007ffff7a7f7c4 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7 0x00007ffff7ad2f08 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8 0x00007ffff7a7ee43 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9 0x00007ffff7e3d1ca in ?? () from /lib/x86_64-linux-gnu/libspice-server.so.1
#10 0x00007ffff76b3927 in start_thread (arg=<optimized out>) at pthread_create.c:435
#11 0x00007ffff77439e4 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100
Good case (qemu_spice_ display_ start before qxl_send_events)
Thread 1 "qemu-system-x86" hit Breakpoint 4, qemu_spice_ display_ start () at ../ui/spice- core.c: 995 display_ is_running) { display_ start () at ../ui/spice- core.c: 995 display_ init_done () at ../ui/spice- core.c: 635 display_ init () at ../ui/spice- display. c:1198 vl.c:2635 e4a8, envp=0x7fffffff e518) at ../softmmu/ vl.c:3777 e4a8, envp=0x7fffffff e518) at ../softmmu/ main.c: 49
995 if (spice_
(gdb) bt
#0 qemu_spice_
#1 0x0000555555a8b6b7 in qemu_spice_
#2 0x0000555555a8fe25 in qemu_spice_
#3 0x0000555555b38646 in qemu_init_displays () at ../softmmu/
#4 0x0000555555b3b1ad in qemu_init (argc=13, argv=0x7fffffff
#5 0x000055555580bd81 in main (argc=13, argv=0x7fffffff
(gdb) c
Continuing.
Thread 4 "SPICE Worker" hit Breakpoint 3, qxl_send_events (d=0x555557191210, events=16) at ../hw/display/ qxl.c:1867 le32(events) ; qxl.c:1867 set_client_ capabilities (sin=0x55555719 1c08, client_present=0 '\000', caps=0x7fffcfdfe6b0 "") at ../hw/display/ qxl.c:1019 64-linux- gnu/libspice- server. so.1 64-linux- gnu/libspice- server. so.1 64-linux- gnu/libspice- server. so.1 64-linux- gnu/libspice- server. so.1 context_ dispatch () from /lib/x86_ 64-linux- gnu/libglib- 2.0.so. 0 64-linux- gnu/libglib- 2.0.so. 0 64-linux- gnu/libglib- 2.0.so. 0 64-linux- gnu/libspice- server. so.1 create. c:435 unix/sysv/ linux/x86_ 64/clone. S:100
1867 uint32_t le_events = cpu_to_
(gdb) bt
#0 qxl_send_events (d=0x555557191210, events=16) at ../hw/display/
#1 0x0000555555a9a5d5 in interface_
#2 0x00007ffff7e12231 in ?? () from /lib/x86_
#3 0x00007ffff7e3c943 in ?? () from /lib/x86_
#4 0x00007ffff7e0a255 in ?? () from /lib/x86_
#5 0x00007ffff7e0ae51 in ?? () from /lib/x86_
#6 0x00007ffff7a7f7c4 in g_main_
#7 0x00007ffff7ad2f08 in ?? () from /lib/x86_
#8 0x00007ffff7a7ee43 in g_main_loop_run () from /lib/x86_
#9 0x00007ffff7e3d1ca in ?? () from /lib/x86_
#10 0x00007ffff76b3927 in start_thread (arg=<optimized out>) at pthread_
#11 0x00007ffff77439e4 in clone () at ../sysdeps/