-
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
Spawning child processes in bash on Windows can crash the parent process #9534
Comments
I have the same issue with exec of child_process.
|
I have this problem while executing webpack-dev-server as child process from within a node app. |
I think your best bet is to report it to Microsoft. They've fixed similar issues in the recent past. I'm going to close this out because it's not under our direct control but feel free to ask follow-up questions. |
Not sure this is a MS issue. To clarify, this is standard stuff, that works fine in 7.0.0 and broken in 7.1.0. This is both on Win10. My particular use-case was basically: child_process.spawn('webpack-dev-server.cmd ...') |
I've had a similar issue with multiple versions of node on WSL. Thought it was originally due to networking, but some of those syscalls have now been implemented. I'm going to go ahead and report it in the WSL issue tracker as well, but may need some help with figuring out what's going on. My issues are deep in the guts of ember-cli, bubbling out to net.js. The strangest thing about this issue is it's not actually crashing on the error itself, it seems like it's crashing while trying to look up the error inside the uv library with |
Created an issue on libuv: And on windows bash: |
Update: uv on node 8.0.0 provides more information on what happened. I recommend installing the 8.0.0 nightly to see what syscall is failing and what the error code it returned is. |
I wrote a short piece of code to spawn a child process:
That resulted in this error:
I tested the same piece of code on a FreeBSD 11.0 system using the same versions of bash, node, and go, which resulted in no crash, so I'm fairly sure the issue's in bash on Windows. Would there be a way to possibly mitigate this?
The text was updated successfully, but these errors were encountered: