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

NodeJS 20 runs an illegal instruction on pre-x86_64-v3 hardware #52371

Closed
Link1J opened this issue Apr 4, 2024 · 2 comments
Closed

NodeJS 20 runs an illegal instruction on pre-x86_64-v3 hardware #52371

Link1J opened this issue Apr 4, 2024 · 2 comments

Comments

@Link1J
Copy link

Link1J commented Apr 4, 2024

Version

20.11.1 (Fedora package version)

Platform

Linux hisoka-morow 5.14.0-362.24.2.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Mar 30 14:11:54 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux

Subsystem

No response

What steps will reproduce the bug?

Install Fedora 40.
Install NodeJS from Fedora repos.
Run node.

How often does it reproduce? Is there a required condition?

All the time, as long as the CPU does not support x86-64-v3 Microarchitecture (AKA AVX instructions)

What is the expected behavior? Why is that the expected behavior?

Node runs

What do you see instead?

Illegal Instruction (core dumped)

Additional information

I believe the issue was caused by this pull request #50772, because it works fine on Fedora 39, which uses NodeJS 20.10.
There is also this Fedora report, https://retrace.fedoraproject.org/faf/reports/913065/, which matches what I see.

I was running Fedora 40 in a container, which is why the kernel version is not one of Fedora.

@mhdawson
Copy link
Member

mhdawson commented Apr 4, 2024

I assume you you are saying it will fail with node --version versus having to run any specific code right?

@Link1J if you download the community binaries for 20.11.1 from https://nodejs.org/dist/v20.11.1/node-v20.11.1-linux-x64.tar.xz, decompress and untar and then run the same test does it run?

This will show that it is a community issues, versus possibly related to how Fedora is building Node.js

@Link1J
Copy link
Author

Link1J commented Apr 4, 2024

I assume you you are saying it will fail with node --version versus having to run any specific code right?

Yep. node --version doesn't work. And even trying to open the cli with node doesn't work.

If you download the community binaries for 20.11.1 from https://nodejs.org/dist/v20.11.1/node-v20.11.1-linux-x64.tar.xz, decompress and untar and then run the same test does it run?

It worked. As such, I am going to close this issue, as the problem is clearly not here.

Sorry for the issue.

@Link1J Link1J closed this as completed Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants