Skip to content

[lldb][Shell] Turn detect_container_overflow back off for Shell tests #8843

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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions lldb/test/Shell/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@
# test_exec_root: The root path where tests should be run.
config.test_exec_root = os.path.join(config.lldb_obj_root, "test", "Shell")

# Begin Swift mod.
# Swift's libReflection builds without ASAN, which causes a known
# false positive in std::vector. If sanitizers are off, this is just
# a no-op
config.environment['ASAN_OPTIONS'] = 'detect_container_overflow=0'
# End Swift mod.

# Propagate environment vars.
llvm_config.with_system_environment(
[
Expand All @@ -58,7 +51,14 @@

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

Expand Down