[libvirt] [PATCH] fix libvirtd crash in qemu driver

David Lively dlively at virtualiron.com
Thu Nov 20 21:48:46 UTC 2008

I noticed that the following sequence of events would crash libvirtd
when using the qemu driver:
  (1) establish a connection that successfully registers for domain  
      events (either of the event-test programs will do, though the
      python one is currently broken -- another patch on the way for 
  (2) close this connection
  (3) open another connection
  (4) do something (like start a domain) that issues a domain event

The problem is that qemudClose() isn't removing registered domain event
callbacks when the connection closes.  This patch does that, and fixes
the crash.


 domain_event.c |   38 ++++++++++++++++++++++++++++++++++++++
 domain_event.h |    3 +++
 qemu_driver.c  |    5 ++++-
 3 files changed, 45 insertions(+), 1 deletion(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: qemu-driver-close-fix.patch
Type: text/x-patch
Size: 3076 bytes
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20081120/5dbb51cb/attachment-0001.bin>

More information about the libvir-list mailing list