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

mikefc tracker at bugs.pypy.org
Tue Jun 4 14:04:44 CEST 2013


New submission from mikefc <coolbutuseless at gmail.com>:

ndarray.argsort() has a malloc error/segmentation fault for arrays of some sizes

#-------------------------
# Code: argsort.py
#-------------------------
from random import random
import numpypy as np

rows = 510 # 400, 600 work fine.  Values around 500 segfault
cols = 2

a = np.array([random() for _ in xrange(rows*cols)])
a = a.reshape((rows, cols))
a.argsort()


#-------------------------
# Result using latest nightly on OSX
#-------------------------

>> pypy argsort.py   # using rows = 510

pypy(35947) malloc: *** error for object 0x102a2b7e0: incorrect checksum for freed 
object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6


>> pypy argsort.py   # using rows = 520

Segmentation fault: 11

----------
messages: 5824
nosy: mikefc, pypy-issue
priority: bug
status: unread
title: numpypy argsort segmentation fault

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


More information about the pypy-issue mailing list