-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
child_process: empty options.env results in ENOMEM error #29008
Copy link
Copy link
Closed
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.libuvIssues and PRs related to the libuv dependency or the uv binding.Issues and PRs related to the libuv dependency or the uv binding.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Metadata
Metadata
Assignees
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.libuvIssues and PRs related to the libuv dependency or the uv binding.Issues and PRs related to the libuv dependency or the uv binding.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
When calling another process, the
execandexecSynccommands fail with a ENOMEM error when using an empty object for theoptions.envvariable. Using any non-undefinedvalue at all in theenvobject makes the call work again.The error trace:
This did not happen in v10.15.*, and seems to affect v10.16.0 as well.