-
Notifications
You must be signed in to change notification settings - Fork 182
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
check_struct_sizes and test_string_index test fails on 32 bit architectures #851
Comments
Thanks for catching these... I don't get to test on 32-bit machines a lot so it would be difficult for me to catch these things. |
For Also, can you test with the current drop in this repo? There are changes to some of the source files, making line numbers not useful in identifying the source of the error. |
sure :)
|
Please see if the new release resolves these... |
I bumped the versions and reran the tests in Debian (on x86-64) and got this result:
I guess (and haven't verified yet) that this is because that the versions of dependencies in Debian isn't the latest ones published on crates.io. What do these unit test failues represent? Is there a risk that this causes security problems? Edit: Note that it's not trivially reproducible by running the test-suite from git |
I won't be too concerned. I have seen this before. As the Rust compiler evolves, they don't guarantee any particular binary layout of struct object or their sizes. Sometimes a compiler update (beta or even stable) will generate a particular struct layout that is sized differently (most of the time smaller). Sometimes it changes then change back in the next beta release etc. Back on 29/12/2013, I have this code: assert_eq!(
size_of::<LexError>(),
if cfg!(feature = "unstable") { 48 } else { 56 }
) So it was checking for an So I believe you may be using an earlier Rust compiler version? |
Running tests on an i386 version of Debian yields:
And:
The text was updated successfully, but these errors were encountered: