Skip to content

child_process results in ENOMEM error with empty options.env  #84540

Closed

Description

@jaycetyle

It seens like that there's a known issue in the Nodejs that caused my VSCode extension fail. Please refer to this link.

It can be reproduced in the extension just like the steps described by the issue.

const { execSync } = require('child_process');
execSync('node', {env: {}}) // Fails with ENOMEM error
execSync('node', {env: {x: 0}}) // Works
  • VSCode Version: 1.40.0
  • OS Version: Windows_NT x64 10.0.18362

Activity

  1. deepak1556 commented on Nov 14, 2019

    @deepak1556
    Collaborator

    Benjamin Pasero (@bpasero) should we consider backporting this libuv patch libuv/libuv#2408 for recovery ? This is fixed in electron 7, as it contains the necessary node version.

  2. added
    nodejs
    upstream-issue-fixed
    on Nov 14, 2019
  3. bpasero commented on Nov 14, 2019

    @bpasero
    Contributor

    Sure why not, together with the other fix for Windows frameless window maybe.

  4. added
    candidate
    on Nov 14, 2019
  5. deepak1556 commented on Nov 15, 2019

    @deepak1556
    Collaborator
  6. deepak1556 commented on Nov 21, 2019

    @deepak1556
    Collaborator

    Fixed with #85266

  7. added
    verified
    on Nov 21, 2019
  8. locked and limited conversation to collaborators on Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

candidatenodejsupstream-issue-fixedverified

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions