nodejs / help

:sparkles: Need help with Node.js? File an Issue here. :rocket:
1.44k stars 276 forks source link

Segmentation fault (core dumped) when run executable file #4417

Open sudospaes opened 3 weeks ago

sudospaes commented 3 weeks ago

Node.js Version

v22.2.0

NPM Version

v10.8.1

Operating System

Arch linux - kernel v6.9.3

Subsystem

v8

Description

I followed the node documentation to create an executable file. All the steps went well, but when I run the binary file, I get this output.

my code (just for test) :

console.log("Hello");
./hello
output : Segmentation fault (core dumped)

Minimal Reproduction

No response

Output

No response

Before You Submit

sudospaes commented 3 weeks ago

I tested it on windows and it can run without problem but i can't run it on linux => Segmentation fault (core dumped)

benjamingr commented 3 weeks ago

Any chance you can create a minimal executable example? Is this just following the tutorial?

Segmentation fault (core dumped)

Did you look inside? Or try something like require('segfault-handler'); to see where it's from?