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


Groups > comp.lang.python > #10971

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.053
X-Spam-Evidence '*H*': 0.89; '*S*': 0.00; 'library': 0.15; 'a.py': 0.16; 'exit()': 0.16; 'exit.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.16; 'header:In- Reply-To:1': 0.22; 'pm,': 0.24; 'aug': 0.24; 'code.': 0.26; 'sat,': 0.28; 'import': 0.28; 'message-id:@mail.gmail.com': 0.29; 'thanks': 0.30; 'error': 0.32; 'to:addr:python-list': 0.33; 'however,': 0.34; 'occurs': 0.34; 'reference': 0.35; 'file': 0.36; 'created': 0.36; 'something': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'to:addr:python.org': 0.39; 'your': 0.61; 'anything,': 0.73; '12:16': 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=s5i3xS6rOpNX6vTKsM3n/Q6L2WW18X8821UwnmXlAzE=; b=gjf62/JDRMtFwF8vMyJoQ6PFD4NnmTPhQLHqdTneCqQkTuPaNhXpqe/JiVld+lsMjZ ZqBzD9NnbgNgTnV+aH0FT6KQQ0+/Wp0NiSqhB5uLIye+K/V/2tThTSWZYtLysRNPJsDw Lr1vbczOY+MWyRsRJ6zfXAael1IcoFTXQFS9c=
MIME-Version 1.0
In-Reply-To <CANMJH-vS-rg=FV90Eti9bdETfPDj=Sfa2NOwVXOC4aXWJ_piGQ@mail.gmail.com>
References <CANMJH-t13ntKy1cVmOZ6kmON3_aQoO2BZ=4trO5bz7haHyJDHQ@mail.gmail.com> <CAPTjJmrpYzEAzjyFODzkYBGw2fMiWZr_8y3Wd5VtpZ2iwcTSGQ@mail.gmail.com> <CANMJH-vS-rg=FV90Eti9bdETfPDj=Sfa2NOwVXOC4aXWJ_piGQ@mail.gmail.com>
Date Sat, 6 Aug 2011 12:23:33 +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.1974.1312629816.1164.python-list@python.org> (permalink)
Lines 14
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1312629816 news.xs4all.nl 23889 [2001:888:2000:d::a6]:45789
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:10971

Show key headers only | View raw


On Sat, Aug 6, 2011 at 12:16 PM, Vipul Raheja <vipul.iiith@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

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:23 +0100

csiph-web