-
-
Notifications
You must be signed in to change notification settings - Fork 18k
tests.cc-wrapper: skip known-broken sanitizer cases #41284
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about introducing libcxx similar to libc we have now? I think we want to add that in the future anyway to get rid of the default_cxx_stdlib_compile hack.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there documentation anywhere of what exactly the libc we have now is?
|
Hmm so this doesn't affect the libstdc++ ones? That's very very odd, as the sanitizer runtimes don't come from either. |
|
Whoops, looks like that's an issue too. Is there any way to run all the affected tests, so I don't have to keep making slightly inaccurate guesses about what to try? |
ed28098 to
f24f6d7
Compare
|
Sadly I don't know of an easy way to replicate what hydra does, as conceptually simple as it is. |
|
Anyways looks good now. The condition makes sense in theory to me. Thanks for fixing. |
|
@Ralith Do you know what's going on with this latest error: https://hydra.nixos.org/build/75406498/nixlog/1 |
|
Looks like the test is doing its job and identifying that asan is broken under that configuration, perhaps (but not necessarily) due to changes introduced by #41065. In particular, runtime libraries that at least on linux are provided by compiler-rt aren't being found, though it appears to be looking in at least approximately the right place. The output of |
|
I have verified that sanitizers did not work on Darwin neither when #39743 was merged in 713d580 [1], nor directly before that in ae99562 [2]. Therefore it is reasonable to disable sanitizer tests on Darwin for now. [1] With With [2] The error is: |
|
Disabled sanitizer tests on Darwin in 07ebb8b. |
They are not supported yet. #41284 (comment)
|
Thanks for handling that! I wonder why the asan stuff is missing. Maybe some option we need to pass to the compiler-rt build, or perhaps one of our darwin-specific patches or options is disabling it. |
Motivation for this change
Fixes overly-broad testing due to #41065. Let me know if there's a better way to test for libc++ being in use.
CC @Ericson2314 @LnL7
Things done
build-use-sandboxinnix.confon non-NixOS)nix-shell -p nox --run "nox-review wip"./result/bin/)