New submission from mikefc <[email protected]>: 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 <[email protected]> <https://bugs.pypy.org/issue1510> ________________________________________ _______________________________________________ pypy-issue mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-issue
