Segmentation Fault on exit

Chris Angelico rosuav at gmail.com
Sat Aug 6 13:23:33 CEST 2011


On Sat, Aug 6, 2011 at 12:16 PM, Vipul Raheja <vipul.iiith at gmail.com> wrote:
> Hi Chris,
> Thanks for the reply.
> However, the error occurs even if I don't do anything, that is, even if I
> simply import the library and exit() after that.
> I created a file a.py whose contents were the following:
> import pyossim
> exit()

In that case, it may be in your initialization/cleanup code. Check to
see if you return Py_None without increffing it, or keep a reference
to something you don't own and decref it on exit.

ChrisA



More information about the Python-list mailing list