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


Groups > comp.lang.python > #73331 > unrolled thread

Re: module_traverse segfault

Started byTerry Reedy <tjreedy@udel.edu>
First post2014-06-16 21:43 -0400
Last post2014-06-16 21:43 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#73331 — Re: module_traverse segfault

FromTerry Reedy <tjreedy@udel.edu>
Date2014-06-16 21:43 -0400
SubjectRe: module_traverse segfault
Message-ID<mailman.11099.1402969412.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web