GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — IPC between Node <= 10.5.0 and Node 10.6.0 crashes · Issue #21671 · nodejs/node

IPC between Node <= 10.5.0 and Node 10.6.0 crashes #21671

New issue
Copy link
New issue
Copy link
Closed
Closed
IPC between Node <= 10.5.0 and Node 10.6.0 crashes#21671
Copy link

Description

@ventsislav-georgiev
ventsislav-georgiev
opened on Jul 5, 2018
Issue body actions
  • Version: 10.6.0
  • Platform: Windows x64

Running Node 10.5.0 to spawn a process with Node 10.6.0 and send IPC messages from the child crashes the parent.

Related issue in the Electron repo: electron/electron#13565

Code to reproduce
parent.js (run with node_v10.5.0)

const path = require('path');
const spawn = require('child_process').spawn;

const node10_6 = "C:/nvm/v10.6.0/node.exe";
const childPath = path.resolve('./child.js');

const child = spawn(node10_6, [childPath], {
  stdio: [ 'ignore', 'ignore', 'ignore', 'ipc' ]
});

child.on('message', message => {
  console.log(JSON.stringify(message));
  if (message.exit) process.exit(0);
});

child.send({ msg: "parent->child" });

child.js

process.send({ msg: "child->parent" });
process.on('message', message => {
    process.send({ msg: `from-parent: ${JSON.stringify(message)}` });
    process.send({ exit: true });
});

Result
The parent process crashes with:
Assertion failed: handle->pipe.conn.remaining_ipc_rawdata_bytes >= bytes, file src\win\pipe.c, line 1666

Reacted by Tsvetelina Ivanova, Rosen Vladimirov and Holger Benl

Activity

  1. cjihrig commented on Jul 5, 2018

    @cjihrig
    cjihrig
    on Jul 5, 2018
    Contributor
    More actions

    From a quick glance, based on the assertion location, I'm going to guess the failed assertion comes from libuv/libuv@4e53af9 in the libuv 1.21.0 update.

  2. bzoz commented on Jul 9, 2018

    @bzoz
    bzoz
    on Jul 9, 2018
    Contributor
    More actions

    Yep, it is caused by libuv/libuv#1843. It also does not matter if parent is 10.5.0 or 10.6.0.

  3. piscisaureus
    added a commit that references this issue on Jul 21, 2018

    win,pipe: restore compatibility with the old IPC framing protocol

    27ba662
  4. hbenl
    added 2 commits that reference this issue on Aug 2, 2018

    add workaround for nodejs/node#21671 to the documentation

    c2e2f91

    add workaround for nodejs/node#21671 to the documentation

    1cbdca2
  5. joaocgreis commented on Aug 16, 2018

    @joaocgreis
    joaocgreis
    on Aug 16, 2018
    Member
    More actions

    @nodejs/lts this should block updating libuv in LTS releases. This is already fixed in libuv (libuv/libuv#1923), but a new version still needs to be released and node updated.

    libuv issue: libuv/libuv#1922

  6. cjihrig
    added a commit that references this issue on Aug 20, 2018

    deps: upgrade to libuv 1.23.0

    4e7d829
  7. cjihrig
    closed this as completedin #22365on Aug 20, 2018
  8. targos
    added a commit that references this issue on Aug 21, 2018

    deps: upgrade to libuv 1.23.0

    a515104
  9. targos
    added a commit that references this issue on Sep 3, 2018

    deps: upgrade to libuv 1.23.0

    90e99da
  10. maaizelahi commented on Apr 25, 2021

    @maaizelahi
    maaizelahi
    on Apr 25, 2021
    More actions

    This seems to be breaking for node version 10.14.1 and VsCode version 1.55.2 on Mac
    However adding "mochaExplorer.nodePath": null to my configuration fixed this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.