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

mikefc tracker at bugs.pypy.org
Fri Jun 7 13:06:10 CEST 2013


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

fijal, 
In pypy/pypy/module/micronumpy/arrayimpl/sort.py::Repr.setitem(), should the last line of that 
function:
raw_storage_setitem(self.indexes, idx * self.index_stride_size + self.index_start, item[1])

be changed to:
raw_storage_setitem(self.indexes, idx * self.index_stride_size + self.index_start, INT_SIZE)


As it is, it seems that raw_storage_setitem is trying to set the size the index rawstorage to 
item[1], which I think is the size of the *values* being sorted not the size of the indices.  

I'm probably still way off base, but that's all I've got so far.

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


More information about the pypy-issue mailing list