[pypy-issue] [issue1510] numpypy argsort segmentation fault

mattip tracker at bugs.pypy.org
Fri Jun 14 15:10:43 CEST 2013


mattip <matti.picus at gmail.com> added the comment:

I prefer this change, the index array was allocated properly but we used an 
improper stride on it

-            Repr.__init__(self, index_stride_size, stride_size,
-                          size, values, indexes, start, start)
+            Repr.__init__(self, dtype.get_size(), stride_size,
+                           size, values, indexes, start, start)
 



We only hit this code when doing piece wise sorting on multidimensional arrays, 
which we did not test until now.

I pushed this into changeset 938d68eb8a73, thanks mikefc!

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1510>
________________________________________


More information about the pypy-issue mailing list