-
Notifications
You must be signed in to change notification settings - Fork 842
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
unix socket features: rust ipc-channel tests failing #1910
Comments
I mentioned back in August #897 (message) the Repro is:
I have also seen some evidence (but can't prove) that the problem with VSCode (Electron) is with the IPC messages between Node and Blink not making it. That mechanism is |
@vvuk - Thanks for running the tests on WSL and reporting the issue. I agree that there are some issues here that still needs to be fixed. I will mark the ticket with the bug tag and we will try to get these issues addressed. |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
The Rust/Servo projects use a fairly core library called ipc-channel that implements an IPC version of Rust built-inchannels. It has a pretty extensive test suite which exercises many aspects of sockets on Linux. A number of these tests fail currently using LXSS from Creators' Update (15063).
Actual results (with terminal output if applicable)
Your Windows build number
Steps / All commands required to reproduce the error from a brand new installation
Lots of failures show up. For debugging, a single test can be run by giving its name, e.g.
cargo test platform::test::concurrent_senders
.An example of a failure is the
concurrent_senders
test -- this creates one channel, then writes to it from multiple threads N times, and receives N times back on the main thread. I'm using that example here (I've pulled out the test function into its own standalone .rs file to remove the testing wrapper -- if that's useful to do, makeipc-channel/examples/foo.rs
, copy code intofn main() { }
in there, and run withcargo run --example foo
. Feel free to poke me here or via twitter at @vvuk for more live help :)For concurrent-senders (in cs.rs), the issue manifests as a read() that returns 0 when a) the read is blocking to begin with; b) we know there is more data to read. If, in
examples/cs.rs
, thenum_senders
is increased to, say, 5, then the test hangs in recv(). It feels like there's some kind of internal kernel-ish buffer that's being blown silently or similar.The text was updated successfully, but these errors were encountered: