-
Notifications
You must be signed in to change notification settings - Fork 130
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
zeroize: tests::zeroize_c_string
fails on i386
#774
Comments
It's possible this is a legitimate bug in the implementation. The functionality was recently added (#650) so it's relatively new. Is it sporadic or reproducible? I would suggest adding some more assertions to the tests (e.g. is the original pointer changing?) to try to isolate the cause. |
cc @robinhundt who authored #650 |
From what I see the failure is reproducible - I just triggered a re-test, so we will know soon. As those builds are only done on Debian package upload it's not easily possible to debug it directly on this infrastructure ... but I think I could try the build/tests locally in a i386 qemu chroot if neede. |
Yes, it's reproducible, see https://ci.debian.net/packages/r/rust-zeroize/testing/i386/ |
That's good news. I'd suggest adding some more instrumentation (and possibly some |
Yes, I think adding Another possibility is that the test case might contain UB and could be compiled to something unexpected for this target. I also noticed that the tests are apparently run on a i386 CPU, but are compiled for the |
I'll try - although, I'm not very fluent in Rust ... In Debian "i386" is the name of the x86 architecture, it now requires a i686 processor - so everything fine on this end. |
Running the test in a i386 chroot gave me this:
Adding |
Hm, most obvious difference is, I'm testing with You can reproduce my chroot by this:
|
@tarcieri Did you had any chance to reproduce the test failure? |
Not as yet, unfortunately Perhaps for now we can mark the test with |
This test relies on UB and is flaking out in certain cases: #774 It's unclear if the test failure indicates a genuine bug in the implementation, or is the result of a test with UB. However, in the meantime it shouldn't block users who would just like the test suite to run reliably.
This test relies on UB and is flaking out in certain cases: #774 It's unclear if the test failure indicates a genuine bug in the implementation, or is the result of a test with UB. However, in the meantime it shouldn't block users who would just like the test suite to run reliably.
I've released However, I'm going to leave this issue open to track the test failure and whatever potential issues it may or may not be revealing |
tests::zeroize_c_string
fails on i386
Mid to end of July, I'll have time to look at this at this issue as well, if it's not resolved until then. |
Hi,
while testing zeroize on Debian infrastructure one test fails (it does not fail on other architectures).
Please find the full log at https://ci.debian.net/data/autopkgtest/testing/i386/r/rust-zeroize/22485575/log.gz
Any hints how to debug this?
The text was updated successfully, but these errors were encountered: