<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Thanks for the fix. I've applied the patch in trunk!<br>
Best regards, Willem<br>
<br>
Op 05-05-11 11:04, Bedrich Kosata schreef:
<blockquote cite="mid:4DC26830.6020702@nic.cz" type="cite">Hi,
<br>
<br>
as I wrote some time ago, there is still a problem with the ldns
Python wrapper, because an RR shares its data with the included
RDF and if the RDF is stored in a variable and the RR is garbage
collected, the RDF data is no longer available.
<br>
I attach two scripts that demonstrate this problem (one gives
empty RDF instead of the actual data and one segfaults).
<br>
I also attach a patch which clones all RDFs when retreived from an
RR and also when RDF is set to an RR. This should decouple the RDF
and RR data completely in the Python wrapper, thus making it
possible for the objects to be garbage collected in any order at
any time.
<br>
<br>
Best regards
<br>
<br>
Beda
<br>
<br>
p.s.- as with the patch in the previous email, the patch is
against the current svn version.
<br>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
ldns-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ldns-users@open.nlnetlabs.nl">ldns-users@open.nlnetlabs.nl</a>
<a class="moz-txt-link-freetext" href="http://open.nlnetlabs.nl/mailman/listinfo/ldns-users">http://open.nlnetlabs.nl/mailman/listinfo/ldns-users</a>
</pre>
</blockquote>
<br>
</body>
</html>