QEMU random crash caused by libspice-server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
Hi,
One of our OpenStack instances crashed. It seems there was some problem related to SPICE. Attaching what we had in qemu log. Also sending our versions:
Linux pre-node1 4.18.0-13-generic #14~18.04.1-Ubuntu SMP Thu Dec 6 14:09:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
QEMU emulator version 2.11.1(Debian 1:2.11+
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers
root@pre-node1:~# cat /var/log/
2019-03-10 20:39:36.510+0000: starting up libvirt version: 4.0.0, package: 1ubuntu8.6 (Christian Ehrhardt <email address hidden> Fri, 09 Nov 2018 07:42:01 +0100), qemu version: 2.11.1(Debian 1:2.11+
LC_ALL=C PATH=/usr/
2019-03-
inputs_
main_channel_link: add main channel client
main_channel_
red_qxl_
inputs_connect: inputs channel client create
(process:65324): Spice-WARNING **: 16:35:23.769: Failed to create channel client: Client 0x55e7c157e970: duplicate channel type 2 id 0
red_qxl_
(process:65324): Spice-WARNING **: 16:35:24.142: Failed to create channel client: Client 0x55e7c157e970: duplicate channel type 4 id 0
(process:65324): Spice-CRITICAL **: 16:35:24.142: cursor-
2019-03-13 15:35:31.785+0000: shutting down, reason=crashed
I am also attaching some gdb information extracted from qemu crash dump file. These are backtraces of particular threads within the crashed QEMU process.
Thread 9 (Thread 0x7f69649ea5c0 (LWP 65324)):
#0 0x00007f695f02d2b7 in __libc_write (fd=26, buf=0x7ffc33f5b330, nbytes=56) at ../sysdeps/
#1 0x00007f695ff30ed3 in () at /usr/lib/
#2 0x00007f695ff316ce in () at /usr/lib/
#3 0x00007f695ff52db6 in () at /usr/lib/
#4 0x00007f695ff58e38 in () at /usr/lib/
#5 0x00007f695ff5f463 in () at /usr/lib/
#6 0x00007f695ff5f7bb in () at /usr/lib/
#7 0x000055e7bec94584 in ()
#8 0x000055e7bec94e58 in aio_dispatch ()
#9 0x000055e7bec91e3e in ()
#10 0x00007f695fa45387 in g_main_
#11 0x000055e7bec940a7 in main_loop_wait ()
#12 0x000055e7be8b8486 in main ()
Thread 8 (Thread 0x7f68b78fc700 (LWP 61873)):
#0 0x00007f695f02c8c2 in futex_abstimed_
at ../sysdeps/
#1 0x00007f695f02c8c2 in do_futex_wait (sem=sem@
#2 0x00007f695f02c9d3 in __new_sem_wait_slow (sem=0x55e7c153
#3 0x000055e7bec976cf in qemu_sem_timedwait ()
#4 0x000055e7bec928bc in ()
#5 0x00007f695f0236db in start_thread (arg=0x7f68b78f
#6 0x00007f695ed4c88f in clone () at ../sysdeps/
Thread 7 (Thread 0x7f688f7fe700 (LWP 61366)):
#0 0x00007f695f02c8c2 in futex_abstimed_
at ../sysdeps/
#1 0x00007f695f02c8c2 in do_futex_wait (sem=sem@
#2 0x00007f695f02c9d3 in __new_sem_wait_slow (sem=0x55e7c153
#3 0x000055e7bec976cf in qemu_sem_timedwait ()
#4 0x000055e7bec928bc in ()
#5 0x00007f695f0236db in start_thread (arg=0x7f688f7f
#6 0x00007f695ed4c88f in clone () at ../sysdeps/
Thread 6 (Thread 0x7f687effd700 (LWP 61362)):
#0 0x00007f695f02c8c2 in futex_abstimed_
at ../sysdeps/
#1 0x00007f695f02c8c2 in do_futex_wait (sem=sem@
#2 0x00007f695f02c9d3 in __new_sem_wait_slow (sem=0x55e7c153
#3 0x000055e7bec976cf in qemu_sem_timedwait ()
#4 0x000055e7bec928bc in ()
#5 0x00007f695f0236db in start_thread (arg=0x7f687eff
#6 0x00007f695ed4c88f in clone () at ../sysdeps/
Thread 5 (Thread 0x7f68b58f1700 (LWP 60991)):
#0 0x00007f695f02c8c2 in futex_abstimed_
at ../sysdeps/
#1 0x00007f695f02c8c2 in do_futex_wait (sem=sem@
#2 0x00007f695f02c9d3 in __new_sem_wait_slow (sem=0x55e7c153
#3 0x000055e7bec976cf in qemu_sem_timedwait ()
#4 0x000055e7bec928bc in ()
#5 0x00007f695f0236db in start_thread (arg=0x7f68b58f
#6 0x00007f695ed4c88f in clone () at ../sysdeps/
Thread 4 (Thread 0x7f69564a2700 (LWP 65331)):
#0 0x00007f695ed46839 in syscall () at ../sysdeps/
#1 0x000055e7bec9790b in qemu_event_wait ()
#2 0x000055e7beca7ebe in ()
#3 0x00007f695f0236db in start_thread (arg=0x7f69564a
#4 0x00007f695ed4c88f in clone () at ../sysdeps/
Thread 3 (Thread 0x7f695449d700 (LWP 65363)):
#0 0x00007f695ed415d7 in ioctl () at ../sysdeps/
#1 0x000055e7be910547 in kvm_vcpu_ioctl ()
#2 0x000055e7be910684 in kvm_cpu_exec ()
#3 0x000055e7be8ed3f4 in ()
#4 0x00007f695f0236db in start_thread (arg=0x7f695449
#5 0x00007f695ed4c88f in clone () at ../sysdeps/
Thread 2 (Thread 0x7f6952b4f700 (LWP 65366)):
#0 0x00007f695ed415d7 in ioctl () at ../sysdeps/
#1 0x000055e7be910547 in kvm_vcpu_ioctl ()
---Type <return> to continue, or q <return> to quit---
#2 0x000055e7be910684 in kvm_cpu_exec ()
#3 0x000055e7be8ed3f4 in ()
#4 0x00007f695f0236db in start_thread (arg=0x7f6952b4
#5 0x00007f695ed4c88f in clone () at ../sysdeps/
Thread 1 (Thread 0x7f6951a40700 (LWP 65368)):
#0 0x00007f695ec69e97 in __GI_raise (sig=sig@entry=6) at ../sysdeps/
#1 0x00007f695ec6b801 in __GI_abort () at abort.c:79
#2 0x00007f695ff81cc9 in () at /usr/lib/
#3 0x00007f695ff63929 in () at /usr/lib/
#4 0x00007f695ff314f1 in () at /usr/lib/
#5 0x00007f695ff37d7b in () at /usr/lib/
#6 0x00007f695fa451f5 in g_main_
#7 0x00007f695fa455c0 in () at /usr/lib/
#8 0x00007f695fa458d2 in g_main_loop_run () at /usr/lib/
#9 0x00007f695ff63b3a in () at /usr/lib/
#10 0x00007f695f0236db in start_thread (arg=0x7f6951a4
#11 0x00007f695ed4c88f in clone () at ../sysdeps/
Regards,
Premysl
Hi Premysl,
this has similarities to [1] which was fixed long ago.
In case it is reproducible for you - as it was asked back then - it might be helpful attaching SPICE_DEBUG=1 log, using remote-viewer.
And if reproducible in general also worth a quick check to try with the latest qemu version which atm is 3.1 that you have in Debian Buster.
[1]: https:/ /bugzilla. redhat. com/show_ bug.cgi? id=980714# c8