Re: [libvirt] PATCH 0/5: connection cloning support (WIP)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 17, 2008 at 07:44:15AM -0500, David Lively wrote:
> Hi Daniel -
>   When I apply these patches, I'm seeing segfaults on event delivery
> when just running the existing synchronous
> examples/domain-events/events-c/event-test.c (using the remote driver).
>   I've added a little debug.  Apparently event->name is being NULLed out
> sometime after the event is put on the queue:
> 
> DEBUG: remote_internal.c: remoteDomainEventFired (Event fired 0 3 1 1)
> DEBUG: remote_internal.c: processCallRecv (Do 4 0)
> DEBUG: remote_internal.c: processCallRecvLen (Got length, now need 64 total (60 more))
> DEBUG: remote_internal.c: processCallRecv (Do 64 4)
> DEBUG: remote_internal.c: processCallAsyncEvent (Encountered an event while waiting for a response)
> DEBUG: remote_internal.c: get_nonnull_domain (domain.name: dsl)
> DEBUG: datatypes.c: virGetDomain (New hash entry 0x804c728)
> DEBUG: domain_event.c: virDomainEventNew (event: 0x804c770  ->name: dsl)
> DEBUG: libvirt.c: virDomainFree (domain=0x804c728)
> DEBUG: datatypes.c: virUnrefDomain (unref domain 0x804c728 dsl 1)
> DEBUG: datatypes.c: virReleaseDomain (release domain 0x804c728 dsl)
> DEBUG: datatypes.c: virReleaseDomain (unref connection 0x804b040 4)
> DEBUG: domain_event.c: virDomainEventQueuePush (event: 0x804c770   ->name: dsl)
> DEBUG: remote_internal.c: processCallRecv (Do 0 0)
> DEBUG: remote_internal.c: remoteDomainEventQueueFlush ()
> DEBUG: domain_event.c: virDomainEventDispatchDefaultFunc (event: 0x804c770  ->name: (null))
> virGetDomain: name is NULL
> Segmentation fault
> 
> I'll continue looking into it.  But please let me know if you're
> familiar with the problem ...

I've not come across that specific problem, but there are a definitely
some locking bugs & refcounting bugs inthe patches I've posted so far.
I'll post an updated series of patches which may address this.

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]