[libvirt] [PATCH 0/8] Various KVM PCI device assignment improvements

Charles Duffy Charles_Duffy at messageone.com
Fri Aug 14 22:54:47 UTC 2009


Mirko Raasch wrote:
> How can i use valgrind or some other debugging options with 
> "/etc/init.d/libvirt-bin"?

This won't work for valgrind, but the gdb "attach" command will let you 
connect to (and thus get a stack trace from) a running process.

If your libvirtd has PID 12054, for instance:

$ gdb /usr/sbin/libvirtd
(gdb) attach 12054
...let it attach, and then cause the crash...
(gdb) bt
^^ and post the output.

The stack trace will be most informative if your build was done with 
debug symbols enabled and not stripped on installation.




More information about the libvir-list mailing list