WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] Fix memory leaks in libxc python bindings

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] [PATCH] Fix memory leaks in libxc python bindings
From: Jiri Denemark <jdenemar@xxxxxxxxxx>
Date: Tue, 29 Sep 2009 21:18:45 +0200
Delivery-date: Tue, 29 Sep 2009 12:20:32 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20090929170057.GA20978@xxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Mail-followup-to: xen-devel@xxxxxxxxxxxxxxxxxxx
References: <20090929165409.GA27604@xxxxxxxxxx> <20090929170057.GA20978@xxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
> > Reference counters are not correctly decreased for python object in several
> 
> I am curious how did you find this? Is there a python 'valgrind' that
> can help track this? Or is there a python flag to be report such 
> abnormalities?

None that I know of. I just used the source code. I found it because long
running xend managed by libvirt was consuming increasing amount of memory.
From the only repeatedly executed command virsh list I got to xm info and
xc_physinfo(). And then I just looked for all other calls to PyDict_* and
PyList_Append and fixed them.

Jirka

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>