argsort segfault

Issue #19 resolved
mike fc created an issue

Under benchmarking conditions, I can get argsort to segfault.

  • Recent pypy nightly and numpy
  • OSX Yosemite
pypy(46789,0x7fff7825b300) malloc: *** error for object 0x106702208: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
import timeit
import numpy as np

setup = "import numpy as np; a = np.random.rand(%i)"
stmt = "a.argsort()"

# this line will segfault ~50% of the time
timeit.timeit(stmt=stmt, setup=setup % 256, number = 1000)

Comments (2)

  1. Log in to comment