[libvirt] virsh hangs

Daniel Veillard veillard at redhat.com
Wed Jun 24 06:17:18 UTC 2009


On Tue, Jun 23, 2009 at 03:28:40PM -0700, Garry Dolley wrote:
> On Tue, Jun 23, 2009 at 09:39:25PM +0100, Daniel P. Berrange wrote:
> > Install the -debug packages for libvirt, and get a trace
> > of all its threads under GDB, eg
> > 
> >   (gdb) thread apply all backtrace
> > 
> > 
> > Also, capture traces of the client & server, by setting LIBVIRT_DEBUG=1
> > before running each.
> 
> I solved the problem, but thanks for this info.  I'll use it next
> time.
> 
> How do I attach gdb to a running process? (I'm a gdb noob)

  gdb path_to_the_binary

  (gdb) attach pid_of_the_process

this will attach to the process, load the debugging informations, stop
the process and get back to the gdb prompt for commands.

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the libvir-list mailing list