nvbn / thefuck

Magnificent app which corrects your previous console command.
MIT License
85.36k stars 3.43k forks source link

Memory leak and bash block on Ubuntu #402

Open JaffParker opened 9 years ago

JaffParker commented 9 years ago

Ubuntu 15.10, installed with the script. However, after reboot, bash wouldn't load (terminal was blank) and thefuck process was cloning itself causing memory leaks (would eat up all 8gb of RAM, cause machine to freeze).

nvbn commented 9 years ago

Can you post your .bashrc?

JaffParker commented 9 years ago

Attached below (renamed to added extension to upload). .bashrc.txt

nvbn commented 9 years ago

It's strange, can you post output of thefuck --alias?

JaffParker commented 8 years ago

It's unavailable. Outputs nothing and then loads up my system within seconds :(

dekuenstle commented 8 years ago

Same problem here, also Ubuntu 15.10 Actually eval $(thefuck --alias) produces a endless recursion of process spawning in order thefuck --alias, sh /bin/zsh -ic alias, zsh -ic thefuck --alias

scorphus commented 8 years ago

I couldn't reproduce it. This is what I got: wily-bash-thefuck

@JaffParker: what's your bash version?

@dekuenstle: you seem to be using ZSH instead. Correct?

JaffParker commented 8 years ago

@scorphus my bash version is version 4.3.42(1)-release (x86_64-pc-linux-gnu)

scorphus commented 8 years ago

@JaffParker: The screenshot above is from a just-installed Ubuntu 15.10 (aka Wily Werewolf). TheFuck was installed using install script, the same procedure you used. So there seems to be something a lot different in your setup. Let's try and find out what that is. Please post the output for each of the following:

$ which thefuck
$ which python
$ pip freeze
$ python -c 'import sys; print(sys.version)'
$ python -c 'import psutil; print(psutil); print(psutil.__version__);'
$ python -c 'import six; print(six); print(six.__version__); print(six.PY2)'
$ ls -lha $(dirname $(dirname $(which python)))/lib/py*/site-packages/

Thanks!