avn icon indicating copy to clipboard operation
avn copied to clipboard

avn fork bombs system when changing directories

Open pinko-fowle opened this issue 4 years ago • 1 comments

Trying to change to a directory or run __avn_debug causes an infinite loop of processes to keep getting spawned. I am using zsh. chpwd_functions=( __avn_Chpwd ). I can think of nothing I can do to make this any simpler. I have tried various .nvmrc configurations. I have tried repeating the install setups while nvm use'ing different nvms. I continue to get never ending fork bombs. I have not found any way to begin to get debugging information about what is causing this.

Details

  • avn avn --version: 0.2.4
  • node node --version: v13.10.1
  • nvm nvm --version: v0.35.3
  • n n --version: none (i also tried homebrew install n, which was version 6.4.0, & got the same result)
  • zsh zsh --version: 5.8
  • bash bash --version: 3.2.57

The output of __avn_debug in the directory with a .node-version file is:

this fork bombs (endlessly spawns new proceses) my system with no output to the screen.

avn is loaded in my ~/.zshenv file with:

[[ -s "$HOME/.avn/bin/avn.sh" ]] && source "$HOME/.avn/bin/avn.sh"

nvm specific

  • [X] As an nvm user I am confirming that I did not install with Homebrew

pinko-fowle avatar Mar 11 '20 16:03 pinko-fowle

Probably start debugging by editing $HOME/.avn/bin/avn.sh and commenting out parts of the script until it doesn't fork bomb any more. Could be specific to your config, but also could be a bug in the library. Let me know what you find.

wbyoung avatar Mar 11 '20 20:03 wbyoung