-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Hang in utp-0.6.3 test suite in Rust 1.15 #38720
Comments
I can confirm it hangs on beta:
And that it does not hang on stable:
Curiously enough, it does not hang on the latest nightly either:
|
I managed to track down the issue to a missing unsafe { &*(self as *const PacketHeader as *const [u8; HEADER_SIZE]) } After adding it, the hanging issues went away and all tests passed. Needless to say, I got what I deserved for using unsafe code. :) My guess is that something about how structs are laid out changed in the beta and was reverted later on (the nightly doesn't hang and passes all tests), but I'm just shooting in the dark. Is there anything else I can do to help? |
Ah yes that'd do it! Right now beta contains #37429 which exercises the compiler's right to reorder struct fields which aren't tagged with Let's leave this open to verify the test suite passes with the new beta, but my guess is that it will! |
Confirmed working on most recent beta, so closing. |
https://github.com/meqif/rust-utp at e9bf831c41714f545762f482a1d464f188faa1a9
Happens consistently on beta, not on stable.
cc @meqif
The text was updated successfully, but these errors were encountered: