[Pyrex] Pyrex 0.9: Compiled code produces segmentation fault

Greg Ewing greg at cosc.canterbury.ac.nz
Wed Jan 28 00:16:08 CET 2004


Matthias Baas <baas at ira.uka.de>:

> I have an extension type "vec3" that represents vectors with 3 float 
> components and an accompanying iterator class "vec3iter" to iterate over 
> the components. But using the iterator can lead to a segmentation
> fault. 
> 
> Personally, I have no clue what the problem might be, is this a bug in 
> Pyrex, Python or my code?

I can't see anything wrong with your code, so it looks like
it may be a Pyrex bug.

There was a problem reported recently concerning trouble that
can arise if a garbage collection occurs during a __new__
method -- this might be a manifestation of that.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+




More information about the Pyrex mailing list