Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #10970

Re: Segmentation Fault on exit

References <CANMJH-t13ntKy1cVmOZ6kmON3_aQoO2BZ=4trO5bz7haHyJDHQ@mail.gmail.com>
Date 2011-08-06 12:02 +0100
Subject Re: Segmentation Fault on exit
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1972.1312628527.1164.python-list@python.org> (permalink)

Show all headers | View raw


On Sat, Aug 6, 2011 at 11:35 AM, Vipul Raheja <vipul.iiith@gmail.com> wrote:
> Hi,
>
> I have wrapped a library from C++ to Python using SWIG. But when I
> import it in Python, I am able to work fine with it, but it gives a
> segmentation fault while exiting. Following is the log:

The most likely cause of this is that you DECREF'd an object when you
shouldn't have, or failed to INCREF one when you should have. Check
over your object usage; if you can narrow down the "Do some stuff" bit
to the one function call that causes the crash, it'll help you figure
out where the error is.

Hope that helps!

Chris Angelico

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Segmentation Fault on exit Chris Angelico <rosuav@gmail.com> - 2011-08-06 12:02 +0100

csiph-web