Skip to content

Commit 587aa5d

Browse files
Merge pull request #8844 from apple/lldb/ci/ubuntu-asan-shell-test-fix-to-next
[lldb][Shell] Turn detect_container_overflow back off for Shell tests
2 parents 2032c4d + 113c042 commit 587aa5d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lldb/test/Shell/lit.cfg.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@
3838
# test_exec_root: The root path where tests should be run.
3939
config.test_exec_root = os.path.join(config.lldb_obj_root, "test", "Shell")
4040

41-
# Begin Swift mod.
42-
# Swift's libReflection builds without ASAN, which causes a known
43-
# false positive in std::vector. If sanitizers are off, this is just
44-
# a no-op
45-
config.environment['ASAN_OPTIONS'] = 'detect_container_overflow=0'
46-
# End Swift mod.
47-
4841
# Propagate environment vars.
4942
llvm_config.with_system_environment(
5043
[
@@ -58,7 +51,14 @@
5851

5952
# Enable sanitizer runtime flags.
6053
if "Address" in config.llvm_use_sanitizer:
61-
config.environment["ASAN_OPTIONS"] = "detect_stack_use_after_return=1"
54+
# Begin Swift mod.
55+
# Swift's libReflection builds without ASAN, which causes a known
56+
# false positive in std::vector. We also want to support testing a sanitized
57+
# lldb using unsanitized llvm, clang, and swift libraries.
58+
config.environment[
59+
"ASAN_OPTIONS"
60+
] = "detect_container_overflow=0:detect_stack_use_after_return=1"
61+
# End Swift mod.
6262
if platform.system() == "Darwin":
6363
config.environment["MallocNanoZone"] = "0"
6464

0 commit comments

Comments
 (0)