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: 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: References: Date: Sat, 6 Aug 2011 12:23:33 +0100 Subject: Re: Segmentation Fault on exit From: Chris Angelico 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Sat, Aug 6, 2011 at 12:16 PM, Vipul Raheja 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