-
Notifications
You must be signed in to change notification settings - Fork 704
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
Access violation in release builds of agreement_tests under MSVC 2017 #1031
Comments
I can't repro this with 2019 -- what precise version are you using of 2017? From the release notes there are codegen bugs fixed in later versions. Ultimately the code being compiled is extremely simple:
|
This was in Visual Studio 15.2 (26430.6). Is that the right info? I'm not much of a VS guy. I can't see how the code could possibly be going wrong either. |
Can you reproduce it with a release build of ring from crates.io? Which Rust toolchain are you using (which channel, which version, which build date)?
I have noticed that LTO seems to cause problems on Windows in release builds. For example, currently the AppVeyor builds fail in -nightly and now -beta channels of the rust toolchain. All the tests pass up until the doctests are built, and then the doctests fail to link. Could you try reproducing with |
I forgot to add: removing "lto = true" from the Cargo.toml fixes this doctest linking issue. |
I couldn't find any git tags, so I guessed that 1e97137 was a suitable git commit to try. The test crashes with |
Updating to the most recent version of the 2017 build tools appears to have resolved the error, so maybe this should be closed as a fixed miscompile. |
I'm doing some work that should help determine if this is possibly ring's fault. I've also filed issue #1136 to break the build on some ancient versions of Visual Studio. If you have needs for compatibility with ancient versions of Visual Studio, please comment in that issue. |
@Geobert wrote in #1136 (comment), wrote:
|
I am indeed going to close this now, based on your suggestion, and based on the fact that nobody seems to be experiencing this. |
Built from master. Does not occur in unoptimized builds, only those at optimization level 1 or 2. Discovered via a similar crash in routine use of rustls, but reproduces consistently in the unit test. Backtrace from Visual Studio:
Exception details:
The text was updated successfully, but these errors were encountered: