-
Notifications
You must be signed in to change notification settings - Fork 134
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
Sudden issue with NodeJs Application (AWS) : terminate called after throwing an instance of 'std::bad_alloc' #1483
Comments
ok, so looks like there are 2 issues here:
|
I will try but just to be clear it's the AMI that's failing, load works as expected. |
ok |
i also noticed that stdout seems to stop working in this case, is serial console off by default with the latest? |
https://github.com/nanovms/ops/pull/1484/files fixes the first issue I noted - it was unconditionally overriding the nightly var the nightly flag you were using in your config wasn't actually being toggled correctly - that pr fixes that as for serial output, no it's not off by default, although we did discuss doing that when syslog is enabled on aws it depends on the instance type - on nitro systems like your c6a's you actually have to be connected to the console to see the output - that is if you send a bunch of output and then connect you won't see it; for this particular target/instance type it's best to ship to a syslog or something like that |
@eyberg is it possibility to set the specific nanos version in the ops config? Nailing down both versions i think would prevent this from happening again. |
Setting the nanos version in the ops configuration file is currently not supported, but you can set it in the ops command line, wih the |
that works, thanks! |
Hello, we have a recent issue where a NodeJS application that was previously working fine is now throwing the error:
terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc signal 6 (no core generated: limit 0
I have ruled out the following.
Ops version. This seems to be happening across versions including the code on master branch, I am currently testing with
Ops version: 0.1.37 Nanos version: 0.1.45
The application. I am getting identical behaviour with this test application which was also previously working fine.
Memory resources, the test app is lightweight and i have tried increasing memory allocation on the actual app, the error remains.
Running the image locally with
ops pkg load -c config.ops eyberg/node:v18.12.1
works as expected.I am generating the AMI with
ops image create -t aws -c config.ops --package eyberg/node:v18.12.1
It fails with
NightlyBuild
astrue
andfalse
Any assistance to help isolate this issue would be greatly appreciated
The text was updated successfully, but these errors were encountered: