-
Notifications
You must be signed in to change notification settings - Fork 30k
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
std::bad_alloc starting from 20.12.0 #52436
Comments
Not sure if this is the place, but I am seeing an error related to node-gyp from 20.12.0 as well. Basically
while installing a package that was working before without any changes. Falling back to Node 20.11 fixes this problem. I can provide more details if needed, but the package in question is https://github.com/mdyd-dev/pos-cli and switching Node versions is everything one needs to reproduce it. Fails only on Linux (and possibly OSX), I am using To reproduce on Node 20.12.1:
UPDATE: I tried updating all of the dependencies to see if that changes anything but it doesn't. |
To update this issue as I did some further investigating. It seems that the issue is not strictly corresponding to Node, but to @bolt-juri-gavshin - would you be able to confirm? |
Downgrading to NPM 10.3.0 helps in "my real-world usage scenario", even if NodeJS 20.12.2 is used (on linux/x86_64 and linux/arm64). |
Also, |
Ok, so in my case the problematic package seems to be |
Update: It looks like NodeJS in 20.14.0 (NPM 10.7.0) the problem is fixed. This Dockerfile works now:
|
For me nothing changed in terms of my package, but I have found a fix.
Fixes the problem for some reason, thus I think there is something wrong in newest |
Version
20.12.0
Platform
x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
Build the following Dockerfile
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
Same as in 20.11.1:
What do you see instead?
Additional information
Not sure, whether the bug is in NodeJS or
rocksdb
ornode-gyp-build
, but this code worked fine in NodeJS 16, 18 and 20.11.The text was updated successfully, but these errors were encountered: