pombreda / llvm-py

Automatically exported from code.google.com/p/llvm-py
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

segfault when issueing tab-complete on llvm.core.Function object #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
hi,

not sure this is really a llvm-py issue per-se, but as I am so accustomed
to python's runtime introspection capabilities...

basically, when I do "f.<TAB>" in the usual python interpreter, where f is
a llvm.core.Function object, I get a segfault.

attached is a simple python script with embedded instructions.

cheers,
sebastien.

PS: I am using the just released llvm-2.5 and llvm-py-svn-r74.

Original issue reported on code.google.com by hep.seba...@gmail.com on 3 Mar 2009 at 6:53

Attachments:

GoogleCodeExporter commented 9 years ago
I should add that this only happens when the string-name of the TAB-attempt is 
empty.
ie:
 >>> f.<TAB>     => segfaults

but:
 >>> f.g<TAB>    => does not and prints:
 f.gep(                    f.get(                    f.get_entry_basic_block(
 f.get_or_insert(
 >>> f.ge

cheers,
sebastien.

Original comment by hep.seba...@gmail.com on 3 Mar 2009 at 7:06

GoogleCodeExporter commented 9 years ago
Well, my python does not do tab-completion even with 'import user'. I've seen 
only
ipython doing this, and these steps seem to work fine with that.

If there are any specific changes that can be done to llvm-py to solve this, 
I'll
gladly make them; do let me know.

Original comment by mdevan.f...@gmail.com on 5 Mar 2009 at 2:04

GoogleCodeExporter commented 9 years ago
yeah... my ~/.pythonrc.py contains a few things...

but one can get the same crash by replacing 'import user' with:

import rlcompleter, readline
readline.parse_and_bind('tab: complete')
readline.parse_and_bind( 'set show-all-if-ambiguous On' )

that said, I do observe too that ipython's completion does not crash.

Original comment by hep.seba...@gmail.com on 5 Mar 2009 at 2:35