[libvirt] [PATCH] Fix crash in QEMU auto-destroy with transient guests

2013-02-28 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com When the auto-destroy callback runs it is supposed to return NULL if the virDomainObjPtr is no longer valid. It was not doing this for transient guests, so we tried to virObjectUnlock a mutex which had been freed. This often led to a crash.

Re: [libvirt] [PATCH] Fix crash in QEMU auto-destroy with transient guests

2013-02-28 Thread Eric Blake
On 02/28/2013 05:19 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com When the auto-destroy callback runs it is supposed to return NULL if the virDomainObjPtr is no longer valid. It was not doing this for transient guests, so we tried to virObjectUnlock a mutex

Re: [libvirt] [PATCH] Fix crash in QEMU auto-destroy with transient guests

2013-02-28 Thread Laine Stump
On 02/28/2013 07:19 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com When the auto-destroy callback runs it is supposed to return NULL if the virDomainObjPtr is no longer valid. It was not doing this for transient guests, so we tried to virObjectUnlock a mutex which