Open mgaudet opened 3 months ago
@lemire @anonrig
The base64 library is no longer a Node.js dependency after https://github.com/nodejs/node/pull/52714
But PR 52714 and following are not yet part of a release.
Looks like @mgaudet has proposed a patch to base64.
Version
v22.0.0-pre and above
Platform
Linux ZenTower 6.8.0-35-generic #35-Ubuntu SMP PREEMPT_DYNAMIC Mon May 20 15:51:52 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
base64
What steps will reproduce the bug?
On a linux machine which supports the AVX-512 extension, disable it, then run
./out/Release/cctest
I have reproduced this on an AMD Ryzen Threadripper PRO 7975WX. For compatibility with https://pernos.co/, I've explicitly disabled AVX-512 by adding
clearcpuid=304
toGRUB_CMDLINE_LINUX_DEFAULT
in/etc/default/grub
As you can see, AVX512 isn't listed in the /proc/cpuinfo:
So this CPU feature is not being correctly tested
How often does it reproduce? Is there a required condition?
As soon as something uses base64 encode, 100%.
What is the expected behavior? Why is that the expected behavior?
Runs correctly
What do you see instead?
SIGILL:
Additional information
Originally reported as https://github.com/microsoft/vscode/issues/214630, but I have bisected node down to this (f45bb801b69c7105756b971ab076c415d85a9e10) commit: