-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault on Node 20 macos arm64 #424
Comments
Got same issue with Node 18.18.2. |
you need to pass --no-node-snapshot. Also don't use the Snapshot feature for anything other than defining functions. |
We use Unfortunately, an imported npm library cannot dictate node arguments (as far as I know). Is there anything that can be done at the level of |
nodejs uses a shared v8 snapshot heap so that worker threads can share memory despite being separate isolates. This is a per-process option and cannot be changed after the process has started. Fixing this is a weeks-long project in order to provide separate process support as first class feature in isolated-vm. It's something I want to do anyway in a post spectre/meltdown world but I can't find the time. If your customers can't handle the cognitive load of a command line argument then you could spawn a new nodejs process for them using |
Gotcha, thanks for the added context. |
A consequence of using --no-node-snapshot I have noticed is that the VSCode debugger will not pause on breakpoints when this option is set. |
OS: Darwin
Platform: arm64
Node: 20.9.0
I tried it on multiple platforms:
Windows x64 (prebuilt for Node20): OK
Linux x64 (prebuilt for Node20): OK
MacOS x64 (prebuilt for Node20): OK
MacOS arm64 (compiled against Node20): NOT OK
MacOS arm64 (compiled against Node18): OK
Stack trace:
The text was updated successfully, but these errors were encountered: