diff options
author | timurrrr <timurrrr@chromium.org> | 2015-02-12 07:46:32 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-12 15:46:59 +0000 |
commit | 064f952aca68f4bf057c84cefbd3726a16c7d34c (patch) | |
tree | 0240c9b208d76221ea3c5235c02a8b82c57fa23b /testing/test_env.py | |
parent | 75a22c9c89847f125dc7d70e85da1936bf608c03 (diff) | |
download | chromium_src-064f952aca68f4bf057c84cefbd3726a16c7d34c.zip chromium_src-064f952aca68f4bf057c84cefbd3726a16c7d34c.tar.gz chromium_src-064f952aca68f4bf057c84cefbd3726a16c7d34c.tar.bz2 |
Don't use LLVM_SYMBOLIZER_PATH and ASAN_OPTIONS=symbolize=0 on Windows
BUG=457820
Review URL: https://codereview.chromium.org/920833002
Cr-Commit-Position: refs/heads/master@{#315985}
Diffstat (limited to 'testing/test_env.py')
-rwxr-xr-x | testing/test_env.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/testing/test_env.py b/testing/test_env.py index 66a3721..3564048 100755 --- a/testing/test_env.py +++ b/testing/test_env.py @@ -73,8 +73,8 @@ def get_sanitizer_env(cmd, asan, lsan, msan, tsan): # fact, it needs symbolization to be able to apply suppressions. symbolization_options = ['symbolize=1', 'external_symbolizer_path=%s' % symbolizer_path] - elif asan or msan: - # ASan uses a script for offline symbolization. + elif (asan or msan) and sys.platform not in ['win32', 'cygwin']: + # ASan uses a script for offline symbolization, except on Windows. # Important note: when running ASan with leak detection enabled, we must use # the LSan symbolization options above. symbolization_options = ['symbolize=0'] @@ -183,7 +183,13 @@ def run_executable(cmd, env): lsan = '--lsan=1' in cmd msan = '--msan=1' in cmd tsan = '--tsan=1' in cmd - use_symbolization_script = (asan or msan) and not lsan + if sys.platform in ['win32', 'cygwin']: + # Symbolization works in-process on Windows even when sandboxed. + use_symbolization_script = False + else: + # LSan doesn't support sandboxing yet, so we use the in-process symbolizer. + # Note that ASan and MSan can work together with LSan. + use_symbolization_script = (asan or msan) and not lsan if asan or lsan or msan or tsan: extra_env.update(get_sanitizer_env(cmd, asan, lsan, msan, tsan)) |