v8-riscv / node

Node.js on RISC-V! See the link below to learn more and try it out.
https://github.com/v8-riscv/node/wiki
Other
29 stars 4 forks source link

npm segmentfault on build #22

Closed hilaolu closed 2 years ago

hilaolu commented 2 years ago

Version

v18.9.0 npm 8.19.1

Platform

5.19.7-arch1-1 on qemu-riscv64 version 7.0.0

Subsystem

No response

What steps will reproduce the bug?

On a fresh install ArchLinux RISC-V on qemu

sudo pacman -Syyu
sudo pacman -S setconf asp fakeroot binutils
asp checkout dark-reader
cd dark-reader/trunk
setconf PKGBUILD arch '(riscv64 x86_64)'
makepkg -si

And the npm will segment fault at npm test. See build log

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

Absolutely every time you build the package. ~~We observe that strip-nondeterminism -t zip build/release/*.xpi in PKGBUILD plays a critical role in reproducing of this BUG. The subsequent npm test will end up with segment fault at the very beginning at npm test without this command. The test goes with a single strip-nondeterminism -t zip build/release/*.xpi but segment fault stills, and npm will pass with adding this command once again(see https://github.com/felixonmars/archriscv-packages/pull/1701/files).~~

What is the expected behavior?

npm should not segmentfault

What do you see instead?

npm segmentfault

Additional information

No response

hilaolu commented 2 years ago

npm no longer segment fault after update binfmt-qemu-static (20210119-1 -> 20220907-1) and qemu-user-static (7.0.0-2 -> 7.1.0-5), closing this issue