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

mikefc tracker at bugs.pypy.org
Fri Jun 14 08:27:48 CEST 2013


mikefc <coolbutuseless at gmail.com> added the comment:

I can make the test pass by changing /pypy/module/micronumpy/arrayimpl/sort.py

Just allocate twice as much memory for the indexes i.e.
-            indexes = dtype.itemtype.malloc(size*dtype.get_size())                                                              
+            indexes = dtype.itemtype.malloc(2 * size * dtype.get_size())

This is not a fix, obviously. But at least it narrows the hunt...

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


More information about the pypy-issue mailing list