Skip to content

Temporarily disable tests/ui/sanitizier/asan_odr_windows.rs #140190

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

Closed
wants to merge 1 commit into from

Conversation

jieyouxu
Copy link
Member

@jieyouxu jieyouxu commented Apr 23, 2025

This fails on native Windows MSVC checkout with no modifications, using a default bootstrap build config.

= note: LINK : fatal error LNK1104: cannot open file 'clang_rt.asan_dynamic_runtime_thunk-x86_64.lib'␍

This test being disabled is tracked by #140189.

Maybe related to #131363 (and another instance where this test failed slightly differently for me in #135013), but AFAICT I was not using lld-link, and does not require lld to repro, default build config w/ link.exe also fails.

cc Sanitizers tracking issue: #39699 (that tracking issue is very confusing)
cc Sanitizers stabilization tracking issue: #123615

r? compiler

This fails on native windows-msvc checkout with no modifications, using
a default bootstrap build config.

```text
= note: LINK : fatal error LNK1104: cannot open file 'clang_rt.asan_dynamic_runtime_thunk-x86_64.lib'␍
```
@rustbot rustbot added PG-exploit-mitigations Project group: Exploit mitigations S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 23, 2025
@rustbot
Copy link
Collaborator

rustbot commented Apr 23, 2025

Some changes occurred in tests/ui/sanitizer

cc @rcvalle

@jieyouxu
Copy link
Member Author

Actually, let me double check sth.
@rustbot author

@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 23, 2025
@rustbot
Copy link
Collaborator

rustbot commented Apr 23, 2025

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@rustbot rustbot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Apr 23, 2025
@jieyouxu jieyouxu added A-testsuite Area: The testsuite used to check the correctness of rustc A-sanitizers Area: Sanitizers for correctness and code quality S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 23, 2025
@jieyouxu
Copy link
Member Author

Nah, build.sanitiziers = true doesn't save this test either.

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 23, 2025
@jieyouxu
Copy link
Member Author

Wait that can't be right. How does this even pass in CI?
@rustbot author

@jieyouxu jieyouxu added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 23, 2025
@jieyouxu
Copy link
Member Author

Nvm, PEBKAC, cf. #140189

@jieyouxu jieyouxu closed this Apr 23, 2025
@jieyouxu jieyouxu deleted the disable-asan-odr-windows branch April 23, 2025 07:36
@jieyouxu
Copy link
Member Author

jieyouxu commented Apr 23, 2025

Wait that can't be right. How does this even pass in CI?

FTR, on MSVC and when LLD isn't used, we pass /INFERASANLIBS to link.exe which... infers ASAN libraries that come bundled with MSVC toolchains. If your PATH has stale entries pointing to old MSVC toolchains, it will mess up this infer logic AFAICT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-sanitizers Area: Sanitizers for correctness and code quality A-testsuite Area: The testsuite used to check the correctness of rustc PG-exploit-mitigations Project group: Exploit mitigations S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants