-
Notifications
You must be signed in to change notification settings - Fork 290
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
Nodejs start fails with std::bad_alloc #4156
Comments
can you try it without the --max_old_space_size argument and see |
Same result If I run Ubuntu 22.04 in a container and install nodejs, it works. As Ubuntu has it's own binaries, it must be some compile option or patch, which makes it work. |
Is it possible that you can try the above code on your setup |
$ ./mem_alloc_test
I changed the test program int[] to char[] and "int i" to "long i" and got
Changing /proc/sys/vm/overcommit_memory did not make any difference. I got the same results with ubuntu container.
|
Seems that v8.10.0 broke it
|
This seem to have resolved by itself. |
Details
node start fails always with
std::bad_alloc
.This is a emulated virtual machine, so the problem probably lies there, but maybe you could help somehow.
I have a macOS on M1 Arm silicon and I am running emulated x86_64 Debian Linux guest on Qemu. There is 4GB memory on VM and the node process does not allocate much. I tried with node versions 10-18.
Node.js version
Example code
No response
Operating system
Scope
runtime
Module and version
Not applicable.
The text was updated successfully, but these errors were encountered: