[Python-Dev] PyGEGL instant crash (Python regression?)

David Gowers 00ai99 at gmail.com
Fri Jul 20 10:32:12 CEST 2007


On 7/20/07, Josiah Carlson <jcarlson at uci.edu> wrote:
>
> "David Gowers" <00ai99 at gmail.com> wrote:
> > Has anyone tried PyGEGL, the Python interface to gegl (www.gegl.org),
> > with SVN Python?
> > When I 'import gegl', that causes an immediate crash with the
> > following backtrace.
>
> I would wager a beer or two that the issue is in the wrapping of gegl.
> Having recently started wrapping modules by hand and with Swig, I have
> come to notice that making a mistake with refcounts can lead to
> segfaults like you are seeing.  If you are getting that immediately upon
> import, you may want to check to make sure that the function that is
> initializing your module (typically something like init_gegl) is doing
> the right things (I can't really offer any suggestions on what to check
> for, I literally only started wrapping stuff by hand yesterday;
> previously I used Pyrex, which can handle all refcounts for you if
> desired).
>
Well, okay; but how does that account for the fact that Kevin reports
it works under 2.4, but it doesn't work under 2.6?


More information about the Python-Dev mailing list