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


Groups > comp.lang.python > #10970 > unrolled thread

Re: Segmentation Fault on exit

Started byChris Angelico <rosuav@gmail.com>
First post2011-08-06 12:02 +0100
Last post2011-08-06 12:02 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#10970 — Re: Segmentation Fault on exit

FromChris Angelico <rosuav@gmail.com>
Date2011-08-06 12:02 +0100
SubjectRe: Segmentation Fault on exit
Message-ID<mailman.1972.1312628527.1164.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web