-
Notifications
You must be signed in to change notification settings - Fork 823
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
Node Pipe cannot connect #1354
Comments
Not sure how easy it would be to do with node, but if you run So it would be something like |
Strace always helps. If anyone over on the node/libuv side can bisect (or just wild guess) what changed in 7.1 that would help even more. |
Good call @fpqc found the call that threw the error (with gettime and futex calls removed):
Could be related to #1343 which already has a fix inbound. That's good. @therealkenc this issue is not limited to 7.1. I think a few more people started hitting it with 7.1, but it existed for me in all versions I tried. |
#1343 is about os.networkInterfaces(), aka PF_NETLINK/SOCK_RAW, aka the interminable #468. The trace you posted is getting a sockopt on a PF_LOCAL (aka AF_UNIX) socket.
A test case that evokes the same libuv fail would help narrow. Spawning 'go' (if I'm reading that correctly), is problematic because golang has its own 'issues' at the moment. |
Theoretically, you could spawn anything, according to nodejs/node#9534, as the issue is occurring on spawn_process, not specifically on what it's spawning. The EINVAL happens directly before the error is thrown. It might not be from that call, but I don't see anything else it could be from: https://gist.github.com/kayakyakr/dee18f36f5fb4d91aeade8f06c82bc90 |
@kayakyakr Eh, don't sweat it right now. The MS guys are doing weekend R&R and will probably ask for more info tomorrow if the strace wasn't enough. I wonder if this is a case for getsockopt that got missed when it was fixed earlier (since fewer socket options could be set in the first place, they might not have tested getsockopt on some of the newer ones, and perhaps when the original fix was put in, it made assumptions about the sockopts that no longer hold.) Anyway, the ideal for these kinds of bug reports is to try to come up with a simpler activity that will hit the same problems. That may not be necessary, since the devs might just come in tomorrow and say "Yeah, we know. Fixinbound", but think today maybe how you could write a simpler example in case they need your help tomorrow. |
Node 8.0.0 (master) gives more information:
I'm trying to get the ember-cli guys to help isolate this. It might be an issue with the sock or an issue with watchman itself. |
strace:
|
Thanks @therealkenc for detailed info. As you already found out, the support for |
Any update on this issue? |
This is a bug in our plate that we haven't gotten to yet. Should soon though. |
Thanks. Sorry to pester, it's a hard block for my use case. |
No problem. Will try to prioritize. thanks for the feedback and trying WSL! |
No problem. Actually enjoying it. Once all the blockers are out of the way, was planning on getting a surface to use as my mobile dev setup. Was hoping that it'd be usable before ~Feb (and I lied a bit: #1357 is the hard block. this is a blocker, but with a workaround) |
Just an update that Unix sockets now support the |
Wow! That was ~~~6 hours~~ ~4 days from ping to fix (edit: still impressive). Does squeaking really work in this forum? Because it's starting to look like it does. If so, finishing |
@therealkenc I don't even see the ping. |
I got the dates wrong. The ping was on the 8th. Had better shock value when I thought Sunil fixed it in an afternoon. Still, I was surprised when it worked for #610 and I didn't say anything at the time. |
@therealkenc Enjoy that laugh emoji. 🙃 |
I am working on the |
Just to be clear, both |
Just giving you a hard time Sunil. 😀 Awesome stuff. And of course you've only made matters worse by fixing multiple |
Thanks. Really appreciate all the support we have from this forum. And, credit goes to @benhillis for |
Support for |
With the newest build (14965), I was hopeful that my issues with using node on WSL would have been cleared up. In this case, the error is being throw deep in the ember-cli build process, but it happens elsewhere as well.
I believe the issue to be twofold: one issue in the error lookup from libuv, the other with the pipe connector itself.
The error that is thrown:
My case is a full ember-cli-rails project that takes a bit of setup, but this seems to be throwing the same error: nodejs/node#9534
I suspect that the crash is coming from an issue with libuv error lookup as the message
err >= 0
is not very helpful. I am not certain what the original exception is because it doesn't get that far. The pipe code, so far as I can tell is here:https://github.com/nodejs/node/blob/master/src/pipe_wrap.cc
The text was updated successfully, but these errors were encountered: