Skip to content

Instantly share code, notes, and snippets.

@jlevon
Created November 16, 2021 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlevon/7edc9c7e96ad8db530cf29cc40c96a90 to your computer and use it in GitHub Desktop.
Save jlevon/7edc9c7e96ad8db530cf29cc40c96a90 to your computer and use it in GitHub Desktop.
vfio-user bug threads
(gdb) thread apply all bt

Thread 8 (Thread 0x7faffab00700 (LWP 17190)):
#0  0x00007faff677eddd in internal_fallocate () at /lib64/libc.so.6
#1  0x0000000000000000 in  ()

Thread 7 (Thread 0x7faffaa91700 (LWP 17194)):
#0  0x00007faff6a64a35 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x000056154596a7e9 in qemu_cond_wait_impl (cond=<optimized out>, mutex=0x561548080d48, file=0x561545aef797 "ui/vnc-jobs.c", line=214) at util/qemu-thread-posix.c:175
#2  0x0000561545894721 in vnc_worker_thread_loop (queue=queue@entry=0x561548080d10) at ui/vnc-jobs.c:214
#3  0x0000561545894ce8 in vnc_worker_thread (arg=0x561548080d10) at ui/vnc-jobs.c:324
#4  0x000056154596a436 in qemu_thread_start (args=0x561548080da0) at util/qemu-thread-posix.c:521
#5  0x00007faff6a60ea5 in start_thread () at /lib64/libpthread.so.0
#6  0x00007faff6789b0d in epoll_pwait () at /lib64/libc.so.6
#7  0x0000000000000000 in  ()

Thread 6 (Thread 0x7faffab30cc0 (LWP 17173)):
#0  0x00007faff677ee9f in internal_fallocate () at /lib64/libc.so.6
#1  0x0000000000000000 in  ()

Thread 5 (Thread 0x7faff2acb700 (LWP 17183)):
#0  0x00007faff677eddd in internal_fallocate () at /lib64/libc.so.6
#1  0x00007faff6789b0d in epoll_pwait () at /lib64/libc.so.6
#2  0x0000000000000000 in  ()

Thread 4 (Thread 0x7faffaadb700 (LWP 17191)):
#0  0x00007faff677abbd in faccessat () at /lib64/libc.so.6
#1  0x0000000000000000 in  ()

Thread 3 (Thread 0x7faffab2d700 (LWP 17182)):
#0  0x00007faff6783e29 in munmap () at /lib64/libc.so.6
#1  0x000056154596ac40 in qemu_event_wait (val=<optimized out>, f=<optimized out>) at /usr/src/debug/qemu-kvm-4.2.0/include/qemu/futex.h:29
#2  0x000056154596ac40 in qemu_event_wait (ev=ev@entry=0x5615461fece0 <rcu_gp_event>) at util/qemu-thread-posix.c:461
#3  0x000056154597c3a4 in synchronize_rcu () at util/rcu.c:134
#4  0x000056154597c3a4 in synchronize_rcu () at util/rcu.c:170
#5  0x000056154597c706 in call_rcu_thread (opaque=<optimized out>) at util/rcu.c:267
#6  0x000056154596a436 in qemu_thread_start (args=0x561547000230) at util/qemu-thread-posix.c:521
#7  0x00007faff6a60ea5 in start_thread () at /lib64/libpthread.so.0
#8  0x00007faff6789b0d in epoll_pwait () at /lib64/libc.so.6
#9  0x0000000000000000 in  ()

Thread 2 (Thread 0x7faff22ca700 (LWP 17184)):
#0  0x00007faff677eddd in internal_fallocate () at /lib64/libc.so.6
#1  0x0000000000000000 in  ()

Thread 1 (Thread 0x7faffaab6700 (LWP 17193)):
#0  0x00005615456b043b in vfio_user_recv (proxy=0x5615484e3db0) at /usr/src/debug/qemu-kvm-4.2.0/hw/vfio/user.c:285
#1  0x00005615456b043b in vfio_user_recv (opaque=0x5615484e3db0) at /usr/src/debug/qemu-kvm-4.2.0/hw/vfio/user.c:172
#2  0x0000561545967a18 in aio_dispatch_handlers (ctx=ctx@entry=0x5615484e40c0) at util/aio-posix.c:429
#3  0x0000561545968569 in aio_poll (ctx=0x5615484e40c0, blocking=blocking@entry=true) at util/aio-posix.c:731
#4  0x000056154575be00 in iothread_run (opaque=0x5615484e3ec0) at iothread.c:75
#5  0x000056154596a436 in qemu_thread_start (args=0x5615484e4620) at util/qemu-thread-posix.c:521
#6  0x00007faff6a60ea5 in start_thread () at /lib64/libpthread.so.0
#7  0x00007faff6789b0d in epoll_pwait () at /lib64/libc.so.6
---Type <return> to continue, or q <return> to quit---
#8  0x0000000000000000 in  ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment