[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH/RFC] Fix refcount on some Python callbacks

From: Jelmer Vernooij <jelmer_at_samba.org>
Date: Sun, 13 Apr 2008 03:59:11 +0200

On Sat, 2008-04-12 at 18:44 -0700, Eric Gillespie wrote:
> Jelmer Vernooij <jelmer_at_samba.org> writes:
> > callback_typemap. At the moment the reference counter of the Python
> > function is not increased when passing it as a baton. This means
> that if
> > Subversion is the only one still referencing the function it will be
> > garbage collected, causing Subversion to segfault when it tries to
> call
> > the Python callback.
> I work around this bug in gvn by holding onto extra copies of the
> callback functions myself.
Can you give an example of how you do this? I tried adding them to a
list but that didn't seem to work.



Jelmer Vernooij <jelmer@samba.org> - http://samba.org/~jelmer/
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-04-13 03:59:34 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.