-
-
Notifications
You must be signed in to change notification settings - Fork 796
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
free(): invalid next size (fast), Segmentation Faults (SIGSEGV) and other native Node.js crashes #1762
Comments
@aardvarkk My team is having this problem too, the flag --useInProcess solved the problem, but I don't know what side effects we may have using this flag. |
What node version are you using? |
@DorianMazur Both v18 and v20 |
@DorianMazur 20, LTS |
Likewise; node |
@DorianMazur do you have any suggestions to allow hot reload while using --useInProcess flag? The flag disable the hot reload. |
Bug Report
Current Behavior
Serverless offline sporadically crashes with various memory-related errors. The crash is within Node's native code.
Expected behavior/code
Serverless offline should not crash.
Environment
Both myself (Linux) and my colleague on (Mac M1) have experienced several native crashes in the Node process. We're using the latest version of serverless-offline (13.3.3).
Possible Solution
Neither of us have experienced a crash yet running serverless-offline with the
--useInProcess
flag.Additional context/Screenshots
I spent a couple of days trying to figure out if this was some bug in Node.js memory handling or something, because the backtraces from the core dumps just pointed to code within Node. Eventually I tried out this flag on serverless-offline and stability seems to have greatly improved.
I'm creating this bug report for two reasons:
--useInProcess
. It seems to have greatly helped the stability of the project. At first I thought maybe there was something wrong with our Node.js version. We tried upgrading to v20 from v18 (which didn't fix anything), and spent a lot of time searching around for other people having segfaults or memory issues with Node, which was not helpful.I'm not sure if I expect anything to change within serverless-offline, but it would have been really helpful to have an issue like this to look into to help figure out why our servers were crashing.
The text was updated successfully, but these errors were encountered: