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


Groups > comp.lang.python > #73331

Re: module_traverse segfault

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 <python-python-list@m.gmane.org>
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 <tjreedy@udel.edu>
Subject Re: module_traverse segfault
Date Mon, 16 Jun 2014 21:43:16 -0400
References <539F2603.2020904@rptd.ch> <lnneut$7gd$1@ger.gmane.org> <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 <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.11099.1402969412.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On 6/16/2014 4:16 PM, Roland Plüss 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 
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.
>>
> Not in GenToo yet as far as I know.

Compile Python yourself. If you have trouble, post "Need help compiling 
3.4 on Gentoo" and I am sure you will get responses.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: module_traverse segfault Terry Reedy <tjreedy@udel.edu> - 2014-06-16 21:43 -0400

csiph-web