<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 12pt; color: #000000'><br>Hello,<br><br>I have been trying to use the domain event C code example but <br>unfortunately it segfaults (signal 11) every time I run it:<br><br>[root@Spring events-c]# ./event-test <br>myEventAddHandleFunc:221: Add handle 5 1 0xf081a0 0x8f727f8<br>myEventAddHandleFunc:221: Add handle 7 1 0xf09990 0x8f727f8<br>myEventAddHandleFunc:221: Add handle 8 1 0xed7940 0x8f727f8<br>myEventAddTimeoutFunc:251: Adding Timeout -1 0xedefa0 0x8f727f8<br>myEventAddHandleFunc:221: Add handle 11 1 0xed7940 0x8f727f8<br>myEventAddTimeoutFunc:251: Adding Timeout -1 0xedefa0 0x8f727f8<br>main:322 :: Registering domain event cbs<br>Segmentation fault (core dumped)<br><br> Core was generated by `/root/libvirt-0.7.5/examples/domain-events/events-c/.libs/lt-event-test'.<br>Program terminated with signal 11, Segmentation fault.<br>[New process 21806]<br>[New process 21822]<br>#0  remoteDomainEventQueueFlush (timer=-1, opaque=0x8f727f8) at remote/remote_driver.c:8720<br>8720        tempQueue.count = priv->domainEvents->count;<br>(gdb) bt<br>#0  remoteDomainEventQueueFlush (timer=-1, opaque=0x8f727f8) at remote/remote_driver.c:8720<br>#1  0x080490d3 in main (argc=Cannot access memory at address 0x1<br>) at event-test.c:347<br><br>The stack looks corrupted so I'm doubtful that this trace if of much value. I have built<br>and installed libvirt-0.7.5 and it and it's tools seem to be operating correctly. <br><br>My setup is:<br><br>Intel(R) Pentium(R) 4 CPU 3.00GHz<br>Linux  2.6.18-164.10.1.el5xen #1 SMP Thu Jan 7 21:14:48 EST 2010 i686 i686 i386 GNU/Linux<br>virsh # version<br>Compiled against library: libvir 0.7.5<br>Using library: libvir 0.7.5<br>Using API: Xen 3.0.1<br>Running hypervisor: Xen 3.4.0<br><br>I have a project that requires Domain events so I'd very much like to use this code so<br>any help would be appreciated.<br><br> <br>Regards,<br><br>Pete<br><br><br><br></div></body></html>