Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'cpython': 0.05; 'pep': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'jan': 0.12; '(issue': 0.16; 'args,': 0.16; 'finalization': 0.16; 'globals': 0.16; 'integer.': 0.16; 'new:': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'responses.': 0.16; 'subject:skip:m 10': 0.16; 'wrote:': 0.18; 'discussion': 0.18; 'module': 0.19; 'later': 0.20; 'example': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'switch': 0.26; 'post': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'leveraging': 0.30; 'null;': 0.31; 'yourself.': 0.31; 'know.': 0.32; 'supposed': 0.32; 'cases': 0.33; 'case,': 0.35; 'really': 0.36; 'to:addr:python-list': 0.38; 'issue': 0.38; 'pm,': 0.38; 'received:71': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'improved': 0.60; 'most': 0.60; 'soon': 0.63; 'happen': 0.63; 'safe': 0.72; '3.4': 0.84; 'compiling': 0.84; 'received:fios.verizon.net': 0.84; 'involved.': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: module_traverse segfault Date: Mon, 16 Jun 2014 21:43:16 -0400 References: <539F2603.2020904@rptd.ch> <539F5090.3010008@rptd.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Gmane-NNTP-Posting-Host: pool-71-175-90-87.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <539F5090.3010008@rptd.ch> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 35 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1402969412 news.xs4all.nl 2881 [2001:888:2000:d::a6]:41014 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:73331 On 6/16/2014 4:16 PM, Roland Pl=C3=BCss wrote: >> Was the program supposed to be shutting down when this occurred? Or >> did this happen during 'normal' execution? > Shutting down. It happens though also if I trigger an error for example= > using > if( ! PyArg_ParseTuple( args, "iiii", &x1, &y1, &x2, &y2 ) ){ > return NULL; > } > and proving for example floats instead of integer. > > So it happens as soon as the GC is involved. Then I really recommend you upgrade to 3.4. From What's New: CPython implementation improvements: Safe object finalization (PEP 442). Leveraging PEP 442, in most cases module globals are no longer set=20 to None during finalization (issue 18214). You might find the issue discussion interesting. >> In any case, switch to 3.4.1 or later for improved gc and finalization= =2E >> > Not in GenToo yet as far as I know. Compile Python yourself. If you have trouble, post "Need help compiling=20 3.4 on Gentoo" and I am sure you will get responses. --=20 Terry Jan Reedy