Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: nodejs plugin segfault with node 11.1.0 #368

Open
RSeidelsohn opened this issue Sep 14, 2023 · 4 comments
Open

bug: nodejs plugin segfault with node 11.1.0 #368

RSeidelsohn opened this issue Sep 14, 2023 · 4 comments
Labels

Comments

@RSeidelsohn
Copy link

RSeidelsohn commented Sep 14, 2023

Describe the Bug

When installing nodejs 11.1.0 with asdf, npm always results in a segmentation fault - no matter what 11-ish version of nodejs I try.

Unfortunately, nodejs 11.1.0 is the latest version I can use for that project, as it depends on old tools that fail with later versions. Since nodejs is only used locally, it's not a security issue.

Steps to Reproduce

  1. run asdf install nodejs 11.1.0
  2. run asdf local nodejs 11.1.0
  3. run npm
  4. get a segmentation fault (core dumped) npm

Expected Behaviour

npm should run and output it's usage information. nvm for example installs npm 6.4.1 alongside with nodejs 11.1.0 and that runs fine. I would expect the same behaviour with asdf.

Actual Behaviour

segmentation fault (core dumped) npm

Environment (old)

OS:
Linux PF43TMKF 6.2.0-32-generic asdf-vm/asdf#32~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 18 10:40:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

SHELL:
zsh 5.8.1 (x86_64-ubuntu-linux-gnu)

ASDF VERSION:
v0.8.1-a1ef92a

ASDF ENVIRONMENT VARIABLES:
ASDF_DIR=/home/roman/.asdf

ASDF INSTALLED PLUGINS:
java                         https://github.com/halcyon/asdf-java.git
nodejs                       https://github.com/asdf-vm/asdf-nodejs.git

Environment (after I updated asdf)

OS:
Linux PF43TMKF 6.2.0-32-generic asdf-vm/asdf#32~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 18 10:40:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

SHELL:
zsh 5.8.1 (x86_64-ubuntu-linux-gnu)

BASH VERSION:
5.1.16(1)-release

ASDF VERSION:
v0.13.1-0586b37

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/home/roman/.asdf
ASDF_DIR=/home/roman/.asdf
ASDF_CONFIG_FILE=/home/roman/.asdfrc

ASDF INSTALLED PLUGINS:
java                         https://github.com/halcyon/asdf-java.git master 13019d3
nodejs                       https://github.com/asdf-vm/asdf-nodejs.git master 9275f49

asdf plugins affected (if relevant)

nodejs

@hyperupcall
Copy link

I notice the ASDF_VERSION is v0.8.1-a1ef92a. Does this issue still persist when you upgrade to the latest current version, v0.13.1?

@RSeidelsohn
Copy link
Author

I notice the ASDF_VERSION is v0.8.1-a1ef92a. Does this issue still persist when you upgrade to the latest current version, v0.13.1?

Unfortunately, yes. I updated to v0.13.1, removed the nodejs plugin, reinstalled it, installed the latest node version in my homedir, set it as global and local default and then went to the old project's directory, installed nodejs 11.1.0 and still when I try to run npm with or without any option switch, I always get that segmentation fault.

@jthegedus
Copy link
Contributor

jthegedus commented Sep 14, 2023

@RSeidelsohn with such an old version of Node.js, I wouldn't be surprised if this was an issue with the plugin itself and how it handles installing such an old version. I suggest raising the issue in the plugin repo and seeing what help you can get there as this is not clear it is an issue in the core tool.

Edit: I'm unsure if the author is able to "transfer issues" to other Repos, but I can perform this action if you would like to keep the context and participants?

@jthegedus jthegedus changed the title bug: bug: nodejs plugin segfault with node 11.1.0 Sep 14, 2023
@RSeidelsohn
Copy link
Author

RSeidelsohn commented Sep 15, 2023

Edit: I'm unsure if the author is able to "transfer issues" to other Repos, but I can perform this action if you would like to keep the context and participants?

That would be great, thank you! I can not do this or at least do not find any option to do so.

@jthegedus jthegedus transferred this issue from asdf-vm/asdf Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants