[Libvir] [PATCH] deep copy dom structure

guido at honk.sigxcpu.org guido at honk.sigxcpu.org
Mon Mar 31 17:13:37 UTC 2008


> 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




More information about the libvir-list mailing list