Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRust 1.20 regression, rstored #42843
Comments
brson
added
the
regression-from-stable-to-nightly
label
Jun 22, 2017
This comment has been minimized.
This comment has been minimized.
|
As best as I can tell, this is broken code. I don't really know what caused it to fail, but it appears to be transmuting a non-repr(C) enum and expecting a given result. In fact, I believe it's thread-unsafe -- it's mutating the static mut's here https://github.com/artur-augustyniak/rstored/blob/master/src/logging/logger.rs#L97 without synchronization. I'm not really following the exact details of it's test though so hard to say for certain. |
This comment has been minimized.
This comment has been minimized.
artur-augustyniak
commented
Jun 23, 2017
•
|
Hi, first of all this test is a real mess. While learning Rust it was an attempt to simulate C derived testing technique, where you replace some non testable code using preprocessor include directive.
|
This comment has been minimized.
This comment has been minimized.
artur-augustyniak
commented
Jun 23, 2017
|
I think that this issue is caused only by broken code like @Mark-Simulacrum wrote.
Despite of rust channel, unsafe function panics from time to time, safe one did not even once. |
This comment has been minimized.
This comment has been minimized.
|
Thanks for investigating @artur-augustyniak ! Closing per your comments. |
brson commentedJun 22, 2017
https://github.com/artur-augustyniak/rstored
cc @artur-augustyniak