Skip to content

Commit a5263d7

Browse files
Merge pull request swiftlang#9413 from adrian-prantl/user-poison
User poison
2 parents 99f90e2 + 9785749 commit a5263d7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

lldb/test/API/lit.cfg.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ def delete_module_cache(path):
135135
config.environment[
136136
"ASAN_OPTIONS"
137137
] = "detect_container_overflow=0:detect_stack_use_after_return=1"
138+
# FIXME: This is the wrong place to disable this. This is working
139+
# around the fact that the ci.swift.org scripts build only LLDB with
140+
# asan and this creates an ODR violation in Allocator.h that breaks
141+
# poisoning.
142+
config.environment['ASAN_OPTIONS'] += ':' + 'allow_user_poisoning=0'
138143
# End Swift mod.
139144
if "Darwin" in config.host_os:
140145
config.environment["DYLD_INSERT_LIBRARIES"] = find_sanitizer_runtime(

lldb/test/Shell/lit.cfg.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@
5858
config.environment[
5959
"ASAN_OPTIONS"
6060
] = "detect_container_overflow=0:detect_stack_use_after_return=1"
61+
# FIXME: This is the wrong place to disable this. This is working
62+
# around the fact that the ci.swift.org scripts build only LLDB with
63+
# asan and this creates an ODR violation in Allocator.h that breaks
64+
# poisoning.
65+
config.environment['ASAN_OPTIONS'] += ':' + 'allow_user_poisoning=0'
6166
# End Swift mod.
6267
if platform.system() == "Darwin":
6368
config.environment["MallocNanoZone"] = "0"

0 commit comments

Comments
 (0)