[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [Libvir] [PATCH] deep copy dom structure
- From: guido honk sigxcpu org
- To: "Richard W.M. Jones" <rjones redhat com>
- Cc: libvir-list redhat com
- Subject: Re: [Libvir] [PATCH] deep copy dom structure
- Date: Mon, 31 Mar 2008 19:13:37 +0200 (CEST)
> The 'conn', 'dom' and 'net' fields in a virterror can't be accessed
> safely, particularly from a garbage-collected language. The only safe
> thing one could do with them is a physical equality test on the
> pointer against an existing conn/dom/net pointer.
The problem is that we're freeing the dom/net objects before serializing
the result so we're accessing already freed memory (which only works by
accident at the momemt). I'll have a look at moving around virDomainFree()
and friends when back from vactions.
-- Guido
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]