[libvirt] Segfault in event-test.c example

pspreadborough at comcast.net pspreadborough at comcast.net
Sun Jan 10 18:51:49 UTC 2010


I have been trying to use the domain event C code example but 
unfortunately it segfaults (signal 11) every time I run it: 

[root at Spring events-c]# ./event-test 
myEventAddHandleFunc:221: Add handle 5 1 0xf081a0 0x8f727f8 
myEventAddHandleFunc:221: Add handle 7 1 0xf09990 0x8f727f8 
myEventAddHandleFunc:221: Add handle 8 1 0xed7940 0x8f727f8 
myEventAddTimeoutFunc:251: Adding Timeout -1 0xedefa0 0x8f727f8 
myEventAddHandleFunc:221: Add handle 11 1 0xed7940 0x8f727f8 
myEventAddTimeoutFunc:251: Adding Timeout -1 0xedefa0 0x8f727f8 
main:322 :: Registering domain event cbs 
Segmentation fault (core dumped) 

Core was generated by `/root/libvirt-0.7.5/examples/domain-events/events-c/.libs/lt-event-test'. 
Program terminated with signal 11, Segmentation fault. 
[New process 21806] 
[New process 21822] 
#0 remoteDomainEventQueueFlush (timer=-1, opaque=0x8f727f8) at remote/remote_driver.c:8720 
8720 tempQueue.count = priv->domainEvents->count; 
(gdb) bt 
#0 remoteDomainEventQueueFlush (timer=-1, opaque=0x8f727f8) at remote/remote_driver.c:8720 
#1 0x080490d3 in main (argc=Cannot access memory at address 0x1 
) at event-test.c:347 

The stack looks corrupted so I'm doubtful that this trace if of much value. I have built 
and installed libvirt-0.7.5 and it and it's tools seem to be operating correctly. 

My setup is: 

Intel(R) Pentium(R) 4 CPU 3.00GHz 
Linux 2.6.18-164.10.1.el5xen #1 SMP Thu Jan 7 21:14:48 EST 2010 i686 i686 i386 GNU/Linux 
virsh # version 
Compiled against library: libvir 0.7.5 
Using library: libvir 0.7.5 
Using API: Xen 3.0.1 
Running hypervisor: Xen 3.4.0 

I have a project that requires Domain events so I'd very much like to use this code so 
any help would be appreciated. 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100110/ba6a7f68/attachment-0001.htm>

More information about the libvir-list mailing list