-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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 when calling uv_os_getenv from a native addon #47416
Comments
My guess is you have a non-zero number of native add-ons installed. What does |
However, as the error seem to be caused by the native add-on, I wonder how they are involved with the error. |
Well, there seems to be an open and related issue after all. I'll try what's suggested there and come back here with the results. |
We don't accept bug reports that involve native add-ons because 9 out of 10 times (mild understatement) the bug is inside the add-on and not node. I'll go ahead and close this but let me know if it still happens without those add-ons. |
Version
v18.15.0
Platform
5.19.0-38-generic #39-Ubuntu SMP PREEMPT_DYNAMIC x86_64 x86_64 x86_64 GNU/Linux
Subsystem
getenv (?)
What steps will reproduce the bug?
Please let me know if this is the right place to report this issue.
I'm facing an intermittent segmentation fault (SIGSEGV) when my NestJS application tries to retrieve environment variables (I suspect: see below).
The error appears when the NestJS triggers an incremental compilation due to changes in the code.
So far, this is the only scenario that can be easily fixed by stopping and restarting the local environment.
I could not see the issue in production.
To try to get some more information about the error, I've installed
segfault-handler
as suggested here and got the following:With this package running, the SEGFAULT happens at every start of the app.
However, once I commented out the call to
SegfaultHandler.registerHandler('crash.log');
, the SEGFAULT resumed being intermittent.A bit of googling seems to bring more or less this:
I'm not 100% sure if the culprit is
getenv
or if this is a core module, but I suspect it is.How often does it reproduce? Is there a required condition?
So far, it appears only after a not-known number of incremental compilations from NestJS (
npm run start:dev
).What is the expected behavior? Why is that the expected behavior?
No response
What do you see instead?
segmentation fault (core dumped)
Additional information
No response
The text was updated successfully, but these errors were encountered: