Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


malloc error during tab completion of numpy array member functions starting with 'c' #140

peterbat opened this Issue · 1 comment

2 participants


I'm getting this error:

python(7199,0x7fff70023c20) malloc: *** error for object 0x102a005b0: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Abort trap

I can create this error by creating any numpy array "a" and then typing "a.c" and pressing tab to autocomplete member function names starting with the letter "c". I'm on an x86_64 macbook pro, and can only reproduce the error when running with the 64-bit build of python (setting export VERSIONER_PYTHON_PREFER_32_BIT=yes before running ipython doesn't create the error).



Unfortunately this is a bug either in numpy or in python itself, ipython just happens to trigger it. We don't have any pure C code, so this is coming either from the readline code inside python itself (most likely) or perhaps from numpy.

Closing here, as it's not an ipython issue.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.