Skip to content


Crash on tab completion #189

danielmero opened this Issue · 4 comments

4 participants


The following makes ipython crash on my computer:

In [1]: import numpy

In [2]: numpy.s <press TAB>

right next to the last text ("numpy.s") I get:

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

I'm running ipython v0.10.1 with python v2.6.1 on a MacBook with OS X .6.4 (Snow Leopard)

IPython member

This is not an ipython bug, but likely a bug in the readline/libedit library in your system. IPython has no C code at all in it, so it can't really cause directly this kind of C-level error. But we've seen in the past bugs in readline, especially with respect to threads, that causes these.

Unfortunately you'll have to track it down with Python/readline directly, I'm afraid...

IPython member

Closing this, as it's not an issue we can address from the IPython side.


while it might not be an issue that can be fixed in python code, it is an issue that ipython sometimes ends up linking itself to libraries that crash...

I just did a pip install ipython on a new machine, and it worked fine until I tried to tab complete - then it explodes every time.

perhaps someone could give me a little guidance on how to identify the offending readline (actually "Leopard libedit detected.") library, and perhaps how to induce ipython into linking itself against something that works, would be stellar...

thanks :-)


@evilrob666 have you tried "pip install readline"? That usually removes the "Leopard libedit detected" message for me on Mac. You may also need to "pip install pyreadline" but I can't remember exactly. Try the first one and then the second if it's still not working...HTH

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.