-
Notifications
You must be signed in to change notification settings - Fork 18.1k
cmd/cgo/internal/testsanitizers: fix msan test failing with clang >= 16 #64691
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
Conversation
Clang 16 introduced a more aggressive behavior regarding uninitilized memory in the memory sanitizer. The new option -fsanitize-memory-param-retval is enabled by default and makes the test msan8 fail, since it uses an uninitilialized variable. I restored the old behavior for this particular test with -fno-sanitize-memory-param-retval. Older versions of clang are still happy with the flag. Fixes [reserved]
This PR (HEAD: 7c43d91) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/549297. Important tips:
|
Message from Mauri de Souza Meneguzzo: Patch Set 1: Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Gopher Robot: Patch Set 1: TryBot-Result-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
400efce
to
c1a93a2
Compare
c1a93a2
to
d8a96a6
Compare
This PR (HEAD: d8a96a6) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/549297. Important tips:
|
Message from Mauri de Souza Meneguzzo: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Mauri de Souza Meneguzzo: Patch Set 2: Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Gopher Robot: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Gopher Robot: Patch Set 3: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Gopher Robot: Patch Set 3: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Bryan Mills: Patch Set 3: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Change-Id: Iedb85372e6e562754441bf5c5a9df407167a6199
Message from Mauri de Souza Meneguzzo: Patch Set 3: Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
This PR (HEAD: 9a04a2d) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/549297. Important tips:
|
Message from Mauri de Souza Meneguzzo: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Mauri de Souza Meneguzzo: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Change-Id: Ifa256f8ba008fe351d19f454196c42eec2a0e65e
This PR (HEAD: 6b2a14a) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/549297. Important tips:
|
Change-Id: I235ec5a9587218a6d77a5df72c48c568a48901f2
Message from Bryan Mills: Patch Set 4: Code-Review+2 Commit-Queue+1 Run-TryBot+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Go LUCI: Patch Set 4: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2023-12-13T19:44:22Z","revision":"a9068aac7fe8e05320c33d7d8f69e2c8439888c9"} Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Bryan Mills: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Bryan Mills: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Gopher Robot: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Go LUCI: Patch Set 4: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
This PR (HEAD: 60bd64a) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/549297. Important tips:
|
Message from Mauri de Souza Meneguzzo: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Mauri de Souza Meneguzzo: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Mauri de Souza Meneguzzo: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Bryan Mills: Patch Set 6: Code-Review+2 Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Go LUCI: Patch Set 6: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2023-12-15T21:35:23Z","revision":"4ff73482c5921f49ace31e4c4192f439e82d825f"} Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Bryan Mills: Patch Set 6: Auto-Submit+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Bryan Mills: Patch Set 6: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Go LUCI: Patch Set 6: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Message from Go LUCI: Patch Set 6: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/549297. |
Clang 16 introduced a more aggressive behavior regarding uninitialized memory in the memory sanitizer. The new option -fsanitize-memory-param-retval is enabled by default and makes the test msan8 fail, since it uses an uninitialized variable on purpose. Disable this behavior if we are running with clang 16+. Fixes #64616 Change-Id: If366f978bef984ea73f6ae958f24c8fce99b59fe GitHub-Last-Rev: 60bd64a GitHub-Pull-Request: #64691 Reviewed-on: https://go-review.googlesource.com/c/go/+/549297 Auto-Submit: Bryan Mills <[email protected]> Reviewed-by: Bryan Mills <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Than McIntosh <[email protected]>
This PR is being closed because golang.org/cl/549297 has been merged. |
Clang 16 introduced a more aggressive behavior regarding uninitialized memory in the memory sanitizer. The new option -fsanitize-memory-param-retval is enabled by default and makes the test msan8 fail, since it uses an uninitialized variable on purpose. Disable this behavior if we are running with clang 16+. Fixes golang#64616 Change-Id: If366f978bef984ea73f6ae958f24c8fce99b59fe GitHub-Last-Rev: 60bd64a GitHub-Pull-Request: golang#64691 Reviewed-on: https://go-review.googlesource.com/c/go/+/549297 Auto-Submit: Bryan Mills <[email protected]> Reviewed-by: Bryan Mills <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Than McIntosh <[email protected]>
Clang 16 introduced a more aggressive behavior regarding uninitialized
memory in the memory sanitizer.
The new option -fsanitize-memory-param-retval is enabled by default
and makes the test msan8 fail, since it uses an
uninitialized variable on purpose.
Disable this behavior if we are running with clang 16+.
Fixes #64616