Uh oh!
There was an error while loading. Please reload this page.
Add support for sanitizer recover and tracking origins of uninitialized memory - #66522
Conversation
rust-highfive
commented
Nov 18, 2019
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @cramertj (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
rust-highfive
commented
Nov 18, 2019
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
cramertj
commented
Nov 18, 2019
| } | ||
| } | ||
| if let Some(sanitizer) = &config.sanitizer { |
There was a problem hiding this comment.
Can we move this to it's own function?
There was a problem hiding this comment.
Moved to a separate function.
alexcrichton
commented
Nov 19, 2019
@bors: r+ |
bors
commented
Nov 19, 2019
📌 Commit 5024d14 has been approved by |
rust-highfive
commented
Nov 19, 2019
Your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
tmiasko
commented
Nov 20, 2019
Spurious CI failure. |
alexcrichton
commented
Nov 20, 2019
@bors: retry |
alexcrichton
commented
Nov 22, 2019
@bors: r+ |
bors
commented
Nov 22, 2019
📌 Commit 3b45626 has been approved by |
bors
commented
Nov 22, 2019
Add support for sanitizer recover and tracking origins of uninitialized memory * Add support for sanitizer recovery `-Zsanitizer-recover=...` (equivalent to `-fsanitize-recover` in clang). * Add support for tracking origins of uninitialized memory in MemorySanitizer `-Zsanitizer-memory-track-origins` (equivalent to `-fsanitize-memory-track-origins` in clang).
bors
commented
Nov 22, 2019
💔 Test failed - checks-azure |
rust-highfive
commented
Nov 22, 2019
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
tmiasko
commented
Nov 22, 2019
Rebased and amended the tests to run them only on linux x86_64, since memory sanitizer is not currently supported anywhere else. |
alexcrichton
commented
Nov 25, 2019
@bors: r+ |
bors
commented
Nov 25, 2019
📌 Commit bf121a3 has been approved by |
bors
commented
Nov 26, 2019
Add support for sanitizer recover and tracking origins of uninitialized memory * Add support for sanitizer recovery `-Zsanitizer-recover=...` (equivalent to `-fsanitize-recover` in clang). * Add support for tracking origins of uninitialized memory in MemorySanitizer `-Zsanitizer-memory-track-origins` (equivalent to `-fsanitize-memory-track-origins` in clang).
bors
commented
Nov 26, 2019
☀️ Test successful - checks-azure |
LLVM 7 is over a year old, which should be plenty for compatibility. The last LLVM 6 holdout was llvm-emscripten, which went away in rust-lang#65501. I've also included a fix for LLVM 8 lacking `MemorySanitizerOptions`, which was broken by rust-lang#66522.
Update the minimum external LLVM to 7 LLVM 7 is over a year old, which should be plenty for compatibility. The last LLVM 6 holdout was llvm-emscripten, which went away in rust-lang#65501. I've also included a fix for LLVM 8 lacking `MemorySanitizerOptions`, which was broken by rust-lang#66522.
Update the minimum external LLVM to 7 LLVM 7 is over a year old, which should be plenty for compatibility. The last LLVM 6 holdout was llvm-emscripten, which went away in rust-lang#65501. I've also included a fix for LLVM 8 lacking `MemorySanitizerOptions`, which was broken by rust-lang#66522.
-Zsanitizer-recover=...(equivalent to-fsanitize-recoverin clang).-Zsanitizer-memory-track-origins(equivalent to-fsanitize-memory-track-originsin clang).