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


Groups > comp.lang.python > #10970

Re: Segmentation Fault on exit

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'python,': 0.01; 'log:': 0.04; 'python': 0.08; 'am,': 0.12; 'c++': 0.12; 'library': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'helps!': 0.16; 'narrow': 0.16; 'have,': 0.16; 'wrote:': 0.16; 'figure': 0.21; 'header:In-Reply-To:1': 0.22; "shouldn't": 0.23; 'aug': 0.24; 'fine': 0.26; 'function': 0.27; 'sat,': 0.28; 'bit': 0.28; 'import': 0.28; 'message-id:@mail.gmail.com': 0.29; 'error': 0.32; 'chris': 0.32; 'hi,': 0.32; 'to:addr:python-list': 0.33; 'fault': 0.34; 'object': 0.35; 'using': 0.37; 'but': 0.37; 'some': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'should': 0.38; 'subject:: ': 0.39; 'help': 0.39; 'to:addr:python.org': 0.39; 'where': 0.40; 'your': 0.61; 'hope': 0.61; 'cause': 0.67; '"do': 0.67; 'have.': 0.77; 'usage;': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=0VcX++pztUDKoIqi7Hzgm45Tox0BQ1tM0iPipvgfRp0=; b=nbvlZrmq/lhrqE3N2VNHV2aEussAuDC0n433XEjjIl2jNDa0/mNt4+EG/bdGqyjE75 Lnggjr6MhUPEB0rxRVPfKK2E4GiVmSlggW7dh074Yzruv3SlwXS7CfujMbqai7HbPs0q LvEiyUU4NgZY8TthE2iWeig9UwrGrLSGBhfv0=
MIME-Version 1.0
In-Reply-To <CANMJH-t13ntKy1cVmOZ6kmON3_aQoO2BZ=4trO5bz7haHyJDHQ@mail.gmail.com>
References <CANMJH-t13ntKy1cVmOZ6kmON3_aQoO2BZ=4trO5bz7haHyJDHQ@mail.gmail.com>
Date Sat, 6 Aug 2011 12:02:03 +0100
Subject Re: Segmentation Fault on exit
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1972.1312628527.1164.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1312628527 news.xs4all.nl 23971 [2001:888:2000:d::a6]:45112
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:10970

Show key headers only | 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