Skip to content

[Bug] Crash (Illegal instruction) on older Intel CPUs starting from v1.10.0 #165

@THEzombiePL

Description

@THEzombiePL

Search before asking

  • I searched in the issues and found nothing similar.

Image version

1.10.0 (and later versions)

System version

Tested on Linux, Docker / LXC

Node.js version

20.x, 22, 23

Minimal reproduce step

  1. Install @napi-rs/image@1.10.0 or later
  2. Run a Node.js script importing @napi-rs/image
  3. Node crashes with: Illegal instruction (core dumped)

What did you expect to see?

The library works correctly on older Intel Xeon CPUs as it did in version 1.9.2

What did you see instead?

Node.js crashes immediately with: Illegal instruction (core dumped)

Anything else?

Tested CPUs:

  • Intel® Xeon® E5-2690 v4
  • Intel® Xeon® E5-2630 v2

The issue likely comes from usage of CPU instructions (e.g., AVX2) not supported on older Xeon CPUs.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions