-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
build: add memory/address sanitizer builder #50394
Comments
Do you want to build the toolchain (the compiler, linker, assembler) in msan/asan mode, or the standard library? They are two separate things. It's unclear from your message what you want. For the former (the toolchain), there may not be much value for it. Those sanitizers are mostly for catching errors for mixed C/Go programs. And the toolchains are pure-Go programs. For the latter, there may be some value. Not for catching bugs in the standard library, but to make sure the instrumentation is consistent and won't fail when user importing those packages. |
The goal here is to run the tests with For example, it's a good point that
It fails because it thinks that the memory accessed by the compiler-constructed method |
I mean the latter one. Thanks for clearing things up. :) |
Change https://golang.org/cl/375254 mentions this issue: |
Change https://golang.org/cl/374496 mentions this issue: |
I didn't realize this issue existed, but I'm doing this work for #70054. We'll see what issues I run into once the builders are up. |
We have builders that runs compiler and testes in race mode.
#19962
But not any sanitizer modes (i.e. address/memory)
After I enable msan/asan mode in dist like CL374974 do. There are some std libraries (runtime, reflect, runtime/pprof, constraints etc,.) failed both the sanitizers.
I think we need builder that runs msan/asan and clear all failures in msan/asan mode.
CC @rsc @ianlancetaylor @aclements @cherrymui
The text was updated successfully, but these errors were encountered: