[libvirt] Run libvirtd from git: virsh hangs

Mathieu Tarral mathieu.tarral at gmail.com
Thu Apr 5 16:01:11 UTC 2018


> strace isn't very helpful for debugging hangs - better to connect to
> libvirtd with GDB and get a stack trace of all threads, using
>
>   (gdb)  thread apply all bt

This is what i have with GDB

(gdb) thread apply all bt

Thread 1 (Thread 0x7f8b18e7c700 (LWP 4196)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f8b207eb6e6 in virCondWait (c=c at entry=0x55d3353c7c68,
m=m at entry=0x55d3353c7ba0) at util/virthread.c:154
#2  0x00007f8b207ec1f4 in virThreadPoolWorker
(opaque=opaque at entry=0x55d3353d3a40) at util/virthreadpool.c:124
#3  0x00007f8b207eb488 in virThreadHelper (data=<optimized out>) at
util/virthread.c:206
#4  0x00007f8b1f89c494 in start_thread (arg=0x7f8b18e7c700) at
pthread_create.c:333
#5  0x00007f8b1f5deacf in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Just one thread, waiting.

Thanks.

-- 
Mathieu Tarral




More information about the libvir-list mailing list