Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on tab completion #189

Closed
danielmero opened this issue Oct 27, 2010 · 4 comments
Closed

Crash on tab completion #189

danielmero opened this issue Oct 27, 2010 · 4 comments
Milestone

Comments

@danielmero
Copy link

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)

@fperez
Copy link
Member

fperez commented Oct 28, 2010

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...

@fperez
Copy link
Member

fperez commented Mar 13, 2011

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

@evilrob666
Copy link

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 :-)

@jtriley
Copy link
Contributor

jtriley commented Jul 1, 2011

@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

ellisonbg added a commit to minrk/ipython that referenced this issue Jul 1, 2013
Added standard IPy header to globalconfig
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants