[NumPy-Tickets] [NumPy] #466: Segmentation fault when reversing an array enough times

NumPy Trac numpy-tickets@scipy....
Tue Jul 19 14:17:34 CDT 2011

#466: Segmentation fault when reversing an array enough times
  Reporter:  faltet      |       Owner:  cookedm     
      Type:  defect      |      Status:  needs_review
  Priority:  normal      |   Milestone:  Unscheduled 
 Component:  numpy.core  |     Version:  devel       
Resolution:              |    Keywords:              
Changes (by mwiebe):

  * status:  new => needs_review


 I've made a new function PyArray_SetBase(arr, obj), which encapsulates
 setting the base. This is what I meant by a clean API mechanism. I've
 changed the many places this was being done to use PyArray_SetBase.

 The NPY_ARRAY_UPDATEIFCOPY flag needed special handling, and the memmap
 ndarray subclass had bad assumptions about how views worked, and hopefully
 the way I've dealt with those is good. Anything that's not should be
 caught with a long testing period just like during the 1.6 release.

 The changes are here:


Ticket URL: <http://projects.scipy.org/numpy/ticket/466#comment:14>
NumPy <http://projects.scipy.org/numpy>
My example project

More information about the NumPy-Tickets mailing list