Skip to content

Compile MSAN/TSAN failing test with -O1 #73555

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

Merged
merged 3 commits into from
Nov 29, 2023
Merged

Compile MSAN/TSAN failing test with -O1 #73555

merged 3 commits into from
Nov 29, 2023

Conversation

EricWF
Copy link
Member

@EricWF EricWF commented Nov 27, 2023

This attempts to fix flakes on the bots where the modified test times out while running under sanitizers.

Turning on the optimizer for just this test appears to mostly fix the issue.

@EricWF EricWF requested a review from a team as a code owner November 27, 2023 18:53
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Nov 27, 2023
@llvmbot
Copy link
Member

llvmbot commented Nov 27, 2023

@llvm/pr-subscribers-libcxx

Author: Eric (EricWF)

Changes

This attempts to fix flakes on the bots where the modified test times out while running under sanitizers.

Turning on the optimizer for just this test appears to mostly fix the issue.


Full diff: https://github.com/llvm/llvm-project/pull/73555.diff

1 Files Affected:

  • (modified) libcxx/test/std/containers/sequences/deque/deque.modifiers/insert_iter_iter.pass.cpp (+3)
diff --git a/libcxx/test/std/containers/sequences/deque/deque.modifiers/insert_iter_iter.pass.cpp b/libcxx/test/std/containers/sequences/deque/deque.modifiers/insert_iter_iter.pass.cpp
index 946c2cfabf02b63..d3d731bbb1029ca 100644
--- a/libcxx/test/std/containers/sequences/deque/deque.modifiers/insert_iter_iter.pass.cpp
+++ b/libcxx/test/std/containers/sequences/deque/deque.modifiers/insert_iter_iter.pass.cpp
@@ -9,6 +9,9 @@
 // REQUIRES: long_tests
 // UNSUPPORTED: GCC-ALWAYS_INLINE-FIXME
 
+// This test chokes on the sanitizers during CI runs. It appears we can address most of this by simply enabling optimizations.
+// ADDITIONAL_COMPILE_FLAGS: -DFOO
+
 // <deque>
 
 // template <class InputIterator>

This attempts to fix flakes on the bots where the modified test
times out while running under sanitizers.

Turning on the optimizer for just this test appears to mostly fix
the issue.
@EricWF EricWF merged commit 61aef97 into llvm:main Nov 29, 2023
ldionne added a commit that referenced this pull request Dec 1, 2023
This reverts commit 61aef97, which
broke the CI on GCC.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants