[libvirt] Race/broken mutex when closing a connection

2013-03-12 Thread Viktor Mihajlovski
I received a report of a virsh coredump that happened on a heavy loaded system. Debugging the corefile I saw that under certain circumstances the mutex for a connection can be destroyed while another thread is waiting for the lock on that connection. Specifically this seems to happen when vshDein

Re: [libvirt] Race/broken mutex when closing a connection

2013-03-13 Thread Viktor Mihajlovski
On 03/12/2013 06:15 PM, Viktor Mihajlovski wrote: At the same time the event loop will call remoteClientCloseFunc which waits for the mutex while the connection is unrefed. It will obtain the (now invalid but non-error checking) mutex, copy the closeCallback pointer (shorty before the connection