-
Notifications
You must be signed in to change notification settings - Fork 13.4k
io::net::tcp::test::write_close_ip4 failing on OS X 10.10 #18900
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
Comments
@erickt says he has reduced it here: https://gist.github.com/erickt/ac1f35e20834aa5d1972 |
It also fails sometimes on |
I've extracted that test case here: https://gist.github.com/erickt/ac1f35e20834aa5d1972. To reproduce it, I can run |
I am also on OSX 10.10. |
I have a feeling the test in this case is just probably wrong, it's somewhat sketchy already with a loop around the call to |
This test was somewhat sketchy already with a `loop` around `write`, so this just adds some explicit synchronization to only call `write` once and guarantee that the error happens. Closes rust-lang#18900
I think there's actually a bug here that we must be tripping over. I've reduced this bug down to the nearly c-ish https://gist.github.com/erickt/fea1b81ac3b5cf8056ac, which seems reasonable at first glance, and may end up in some users code. You're right that we (or the OSX 10.10 kernel?) are probably missing a lock somewhere, but it'd be nice to figure out exactly what's going on. |
I've done some archeological work, and the underlying syscall is https://github.com/opensource-apple/xnu/blob/bb7368935f659ada117c0889612e379c97eb83b3/bsd/netinet/tcp_usrreq.c#L927-L951 If I'm interpret this code correctly, it appears that Apple may have allowed some network operations to be interruptible. So if a |
I believe these tests have since been removed, so closing. |
fix: Do not compute `prettify_macro_expansion()` unless the "Inline macro" assist has actually been invoked
These tests seem to be failing for me on OS X 10.10. I have heard on IRC that others are having this issue too. I don't know if it is a Yosemite issue - I didn't have it on 10.9. It looks like:
The text was updated successfully, but these errors were encountered: