[libvirt] Call to virDomainIsActive hangs forever

Daniel P. Berrangé berrange at redhat.com
Thu Jun 14 13:52:09 UTC 2018


On Thu, Jun 14, 2018 at 04:31:57PM +0300, Mathieu Tarral wrote:
> Hi Daniel,
> 
> Thanks for your help, i was able to run the libvirt daemon from master,
> and after add some debug messages, i understood that the call
> to virDomainIsActive was actually hanging from the client.
> 
> It never reached the daemon.
> 
> Looking back at the call again:
> https://gist.github.com/Wenzel/624cb8c0746c05bd824d2b3c04b6b9f9
> 
> The call is waiting for pthread_sigmask to return.
>
> Looking into the libvirt source code (3.0.0) at the location of the call:
> https://github.com/libvirt/libvirt/blob/v3.0.0/src/rpc/virnetclient.c?utf8=%E2%9C%93#L1659
> 
> Is this supposed to be an instant call, or does it wait for specific
> conditions/event to return ?

Yeah this is very bad - pthread_sigmask should be instantaneous, and I
can't imagine what would make it hang besides severe memory corruption
somewhere :-(


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list