Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

avn fork bombs system when changing directories #98

Open
1 task done
pinko-fowle opened this issue Mar 11, 2020 · 1 comment
Open
1 task done

avn fork bombs system when changing directories #98

pinko-fowle opened this issue Mar 11, 2020 · 1 comment

Comments

@pinko-fowle
Copy link

pinko-fowle commented Mar 11, 2020

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

  • As an nvm user I am confirming that I did not install with Homebrew
@wbyoung
Copy link
Owner

wbyoung commented Mar 11, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants