Skip to content

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

@Link1J

Description

@Link1J

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions