Using Arch Linux everytime I try to use Python interactive mode no matter what I type I get
Segmentation fault (core dumped) and the Python interpreter exits.
I do not have any problem running Python scripts or doing something like:
$ echo "print(1+1)" | python
But when I enter interactive mode, whether it is with
python2, as soon as I type any command and press enter, the interpreter halts and then if I press enter again (or any other key) I get the message
Segmentation fault (core dumped) and the interpreter exits.
I test installing bpython and I have no problem or errors with this interface for the python interpreter.
gdb and when I type
run at the
gdb prompt I had to press enter twice (when hit enter once it just halted) and then got:
Starting program: /usr/bin/python Segmentation fault (core dumped)
Maybe this information is useful:
$ which python /usr/bin/python $ which python2 /usr/bin/python2 $ python --version Python 3.6.1 $ python2 --version Python 2.7.13 $ uname -a Linux archimiro 4.11.6-3-ARCH #1 SMP PREEMPT Thu Jun 22 12:21:46 CEST 2017 x86_64 GNU/Linux