Skip to content
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

child_process: guard against race condition #5153

Closed
wants to merge 1 commit into from

Conversation

mscdex
Copy link
Contributor

@mscdex mscdex commented Feb 9, 2016

It is possible that the internal hnadleMessage() might try to send to a channel that has been closed. The result can be an AssertionError. Guard against this.

This is a backport of 57a51a0 to v0.12 with a tweaked version of the test in order to trigger the same assertion on v0.12.

It is possible that the internal hnadleMessage() might try to send to
a channel that has been closed. The result can be an AssertionError.
Guard against this.

Fixes: nodejs#4205
PR-URL: nodejs#4418
Reviewed-By: Brian White <[email protected]>
Reviewed-By: Johan Bergström <[email protected]>
@mscdex mscdex added child_process Issues and PRs related to the child_process subsystem. v0.12 labels Feb 9, 2016
@jasnell
Copy link
Member

jasnell commented Feb 10, 2016

LGTM
@nodejs/lts

@bnoordhuis
Copy link
Member

LGTM

mscdex pushed a commit that referenced this pull request Feb 11, 2016
It is possible that the internal handleMessage() might try to send to
a channel that has been closed. The result can be an AssertionError.
Guard against this.

Fixes: #4205
PR-URL: #5153
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
@mscdex
Copy link
Contributor Author

mscdex commented Feb 11, 2016

Landed in c7a7253.

@mscdex mscdex closed this Feb 11, 2016
@mscdex mscdex deleted the v0.12-backport-4418 branch February 11, 2016 18:08
MylesBorins pushed a commit that referenced this pull request Feb 11, 2016
It is possible that the internal handleMessage() might try to send to
a channel that has been closed. The result can be an AssertionError.
Guard against this.

Fixes: #4205
PR-URL: #5153
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
jBarz pushed a commit to ibmruntimes/node that referenced this pull request Nov 4, 2016
It is possible that the internal handleMessage() might try to send to
a channel that has been closed. The result can be an AssertionError.
Guard against this.

Fixes: nodejs/node#4205
PR-URL: nodejs/node#5153
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
child_process Issues and PRs related to the child_process subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants