gdb attach $VM_PID -ex='thread apply all bt' -ex='quit'
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
attach: No such file or directory.
Attaching to process 2743
[New LWP 2744]
[New LWP 2766]
[New LWP 2767]
[New LWP 2768]
[New LWP 2769]
[New LWP 2771]
[New LWP 2773]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
__lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:103
103 ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: No such file or directory.
Thread 8 (Thread 0x7f7e229ff700 (LWP 2773)):
#0 futex_wait_cancelable (private=0, expected=0, futex_word=0x5626c6fa99fc) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1 __pthread_cond_wait_common (abstime=0x0, mutex=0x5626c6fa9a08, cond=0x5626c6fa99d0) at pthread_cond_wait.c:502
#2 __pthread_cond_wait (cond=cond@entry=0x5626c6fa99d0, mutex=mutex@entry=0x5626c6fa9a08) at pthread_cond_wait.c:655
#3 0x00005626c426639f in qemu_cond_wait_impl (cond=0x5626c6fa99d0, mutex=0x5626c6fa9a08, file=0x5626c428f486 "../ui/vnc-jobs.c", line=215) at ../util/qemu-thread-posix.c:174
#4 0x00005626c3de171d in vnc_worker_thread_loop (queue=queue@entry=0x5626c6fa99d0) at ../ui/vnc-jobs.c:215
#5 0x00005626c3de1fb8 in vnc_worker_thread (arg=arg@entry=0x5626c6fa99d0) at ../ui/vnc-jobs.c:325
#6 0x00005626c4265c2a in qemu_thread_start (args=<optimized out>) at ../util/qemu-thread-posix.c:521
#7 0x00007f803f29dfa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#8 0x00007f803f1ce4cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 7 (Thread 0x7f7e23dff700 (LWP 2771)):
#0 0x00007f803f1c3819 in __GI___poll (fds=0x7f7e180269f0, nfds=2, timeout=2147483647) at ../sysdeps/unix/sysv/linux/poll.c:29
#1 0x00007f8040b9a136 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f8040b9a4c2 in g_main_loop_run () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f8040ecf147 in ?? () from /usr/lib/x86_64-linux-gnu/libspice-server.so.1
#4 0x00007f803f29dfa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#5 0x00007f803f1ce4cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 6 (Thread 0x7f80313ff700 (LWP 2769)):
#0 __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:103
#1 0x00007f803f2a0714 in __GI___pthread_mutex_lock (mutex=mutex@entry=0x5626c4767d80 <qemu_global_mutex>) at ../nptl/pthread_mutex_lock.c:80
#2 0x00005626c4265e39 in qemu_mutex_lock_impl (mutex=0x5626c4767d80 <qemu_global_mutex>, file=0x5626c4381528 "../softmmu/physmem.c", line=2729) at ../util/qemu-thread-posix.c:79
#3 0x00005626c40a866f in qemu_mutex_lock_iothread_impl (file=file@entry=0x5626c4381528 "../softmmu/physmem.c", line=line@entry=2729) at ../softmmu/cpus.c:485
#4 0x00005626c409138e in prepare_mmio_access (mr=<optimized out>) at ../softmmu/physmem.c:2729
#5 0x00005626c4093dab in flatview_read_continue (fv=fv@entry=0x7f80281d5120, addr=addr@entry=57666, attrs=..., ptr=ptr@entry=0x7f803438a000, len=len@entry=2, addr1=<optimized out>, l=<optimized out>, mr=0x5626c6f4a1a0)
at ../softmmu/physmem.c:2820
#6 0x00005626c4094013 in flatview_read (fv=0x7f80281d5120, addr=addr@entry=57666, attrs=attrs@entry=..., buf=buf@entry=0x7f803438a000, len=len@entry=2) at ../softmmu/physmem.c:2862
#7 0x00005626c4094150 in address_space_read_full (as=0x5626c4767aa0 <address_space_io>, addr=57666, attrs=..., buf=0x7f803438a000, len=2) at ../softmmu/physmem.c:2875
#8 0x00005626c40942b5 in address_space_rw (as=<optimized out>, addr=addr@entry=57666, attrs=..., attrs@entry=..., buf=<optimized out>, len=len@entry=2, is_write=is_write@entry=false) at ../softmmu/physmem.c:2903
#9 0x00005626c403d764 in kvm_handle_io (count=1, size=2, direction=<optimized out>, data=<optimized out>, attrs=..., port=57666) at ../accel/kvm/kvm-all.c:2285
#10 kvm_cpu_exec (cpu=cpu@entry=0x5626c62d32b0) at ../accel/kvm/kvm-all.c:2531
#11 0x00005626c4056725 in kvm_vcpu_thread_fn (arg=arg@entry=0x5626c62d32b0) at ../accel/kvm/kvm-cpus.c:49
#12 0x00005626c4265c2a in qemu_thread_start (args=<optimized out>) at ../util/qemu-thread-posix.c:521
#13 0x00007f803f29dfa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#14 0x00007f803f1ce4cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 5 (Thread 0x7f8031fff700 (LWP 2768)):
#0 0x00007f803f1c5427 in ioctl () at ../sysdeps/unix/syscall-template.S:78
#1 0x00005626c403d36c in kvm_vcpu_ioctl (cpu=cpu@entry=0x5626c62acd00, type=type@entry=44672) at ../accel/kvm/kvm-all.c:2654
#2 0x00005626c403d4b2 in kvm_cpu_exec (cpu=cpu@entry=0x5626c62acd00) at ../accel/kvm/kvm-all.c:2491
#3 0x00005626c4056725 in kvm_vcpu_thread_fn (arg=arg@entry=0x5626c62acd00) at ../accel/kvm/kvm-cpus.c:49
#4 0x00005626c4265c2a in qemu_thread_start (args=<optimized out>) at ../util/qemu-thread-posix.c:521
#5 0x00007f803f29dfa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#6 0x00007f803f1ce4cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
--Type <RET> for more, q to quit, c to continue without paging--
Thread 4 (Thread 0x7f8032bff700 (LWP 2767)):
#0 0x00007f803f1c5427 in ioctl () at ../sysdeps/unix/syscall-template.S:78
#1 0x00005626c403d36c in kvm_vcpu_ioctl (cpu=cpu@entry=0x5626c62857a0, type=type@entry=44672) at ../accel/kvm/kvm-all.c:2654
#2 0x00005626c403d4b2 in kvm_cpu_exec (cpu=cpu@entry=0x5626c62857a0) at ../accel/kvm/kvm-all.c:2491
#3 0x00005626c4056725 in kvm_vcpu_thread_fn (arg=arg@entry=0x5626c62857a0) at ../accel/kvm/kvm-cpus.c:49
#4 0x00005626c4265c2a in qemu_thread_start (args=<optimized out>) at ../util/qemu-thread-posix.c:521
#5 0x00007f803f29dfa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#6 0x00007f803f1ce4cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 3 (Thread 0x7f80337c5700 (LWP 2766)):
#0 __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:103
#1 0x00007f803f2a0714 in __GI___pthread_mutex_lock (mutex=mutex@entry=0x5626c4767d80 <qemu_global_mutex>) at ../nptl/pthread_mutex_lock.c:80
#2 0x00005626c4265e39 in qemu_mutex_lock_impl (mutex=0x5626c4767d80 <qemu_global_mutex>, file=0x5626c4381528 "../softmmu/physmem.c", line=2729) at ../util/qemu-thread-posix.c:79
#3 0x00005626c40a866f in qemu_mutex_lock_iothread_impl (file=file@entry=0x5626c4381528 "../softmmu/physmem.c", line=line@entry=2729) at ../softmmu/cpus.c:485
#4 0x00005626c409138e in prepare_mmio_access (mr=<optimized out>) at ../softmmu/physmem.c:2729
#5 0x00005626c4091479 in flatview_write_continue (fv=fv@entry=0x7f80281d5120, addr=addr@entry=502, attrs=..., ptr=ptr@entry=0x7f8041056000, len=len@entry=1, addr1=<optimized out>, l=<optimized out>, mr=0x5626c6bea380)
at ../softmmu/physmem.c:2754
#6 0x00005626c4091626 in flatview_write (fv=0x7f80281d5120, addr=addr@entry=502, attrs=attrs@entry=..., buf=buf@entry=0x7f8041056000, len=len@entry=1) at ../softmmu/physmem.c:2799
#7 0x00005626c4094220 in address_space_write (as=0x5626c4767aa0 <address_space_io>, addr=addr@entry=502, attrs=..., buf=0x7f8041056000, len=len@entry=1) at ../softmmu/physmem.c:2891
#8 0x00005626c40942aa in address_space_rw (as=<optimized out>, addr=addr@entry=502, attrs=..., attrs@entry=..., buf=<optimized out>, len=len@entry=1, is_write=is_write@entry=true) at ../softmmu/physmem.c:2901
#9 0x00005626c403d764 in kvm_handle_io (count=1, size=1, direction=<optimized out>, data=<optimized out>, attrs=..., port=502) at ../accel/kvm/kvm-all.c:2285
#10 kvm_cpu_exec (cpu=cpu@entry=0x5626c6234740) at ../accel/kvm/kvm-all.c:2531
#11 0x00005626c4056725 in kvm_vcpu_thread_fn (arg=arg@entry=0x5626c6234740) at ../accel/kvm/kvm-cpus.c:49
#12 0x00005626c4265c2a in qemu_thread_start (args=<optimized out>) at ../util/qemu-thread-posix.c:521
#13 0x00007f803f29dfa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#14 0x00007f803f1ce4cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 2 (Thread 0x7f8034283700 (LWP 2744)):
#0 syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1 0x00005626c4266abb in qemu_futex_wait (val=<optimized out>, f=<optimized out>) at ../util/qemu-thread-posix.c:456
#2 qemu_event_wait (ev=ev@entry=0x5626c4783fe8 <rcu_call_ready_event>) at ../util/qemu-thread-posix.c:460
#3 0x00005626c425504a in call_rcu_thread (opaque=opaque@entry=0x0) at ../util/rcu.c:258
#4 0x00005626c4265c2a in qemu_thread_start (args=<optimized out>) at ../util/qemu-thread-posix.c:521
#5 0x00007f803f29dfa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#6 0x00007f803f1ce4cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 1 (Thread 0x7f80343e1340 (LWP 2743)):
#0 __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:103
#1 0x00007f803f2a0714 in __GI___pthread_mutex_lock (mutex=mutex@entry=0x5626c614be98) at ../nptl/pthread_mutex_lock.c:80
#2 0x00005626c4265e39 in qemu_mutex_lock_impl (mutex=0x5626c614be98, file=0x5626c43c7149 "../monitor/qmp.c", line=80) at ../util/qemu-thread-posix.c:79
#3 0x00005626c41eb686 in monitor_qmp_cleanup_queue_and_resume (mon=0x5626c614bd80) at ../monitor/qmp.c:80
#4 monitor_qmp_event (opaque=0x5626c614bd80, event=<optimized out>) at ../monitor/qmp.c:421
#5 0x00005626c41e9505 in tcp_chr_disconnect_locked (chr=0x5626c5e92fa0) at ../chardev/char-socket.c:507
#6 0x00005626c41e9550 in tcp_chr_disconnect (chr=0x5626c5e92fa0) at ../chardev/char-socket.c:517
#7 0x00005626c41e959e in tcp_chr_hup (channel=<optimized out>, cond=<optimized out>, opaque=<optimized out>) at ../chardev/char-socket.c:557
#8 0x00007f8040b99dd8 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#9 0x00005626c426a848 in glib_pollfds_poll () at ../util/main-loop.c:221
#10 os_host_main_loop_wait (timeout=<optimized out>) at ../util/main-loop.c:244
#11 main_loop_wait (nonblocking=nonblocking@entry=0) at ../util/main-loop.c:520
#12 0x00005626c40470a1 in qemu_main_loop () at ../softmmu/vl.c:1678
#13 0x00005626c3db178e in main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at ../softmmu/main.c:50
A debugging session is active.
Inferior 1 [process 2743] will be detached.
Quit anyway? (y or n)