llvm.org GIT mirror llvm / f647052
Disable ASan/MSan symbolization of reports in tests. It was using an instrumented symbolizer binary, which is a potential fork bomb. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178139 91177308-0d34-0410-b5e6-96231b3b80d8 Evgeniy Stepanov 6 years ago
2 changed file(s) with 0 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
8080 shlibpath = os.pathsep + shlibpath
8181 shlibpath = config.shlibdir + shlibpath
8282 config.environment[config.shlibpath_var] = shlibpath
83
84 # Setup paths to llvm-symbolizer for Sanitizer tools.
85 llvm_tools_dir = getattr(config, 'llvm_tools_dir', None)
86 if llvm_tools_dir:
87 llvm_symbolizer_path = os.path.join(llvm_tools_dir, 'llvm-symbolizer')
88 config.environment['ASAN_SYMBOLIZER_PATH'] = llvm_symbolizer_path
89 config.environment['MSAN_SYMBOLIZER_PATH'] = llvm_symbolizer_path
6262 lit.fatal('No LLVM tools dir set!')
6363 path = os.path.pathsep.join((llvm_tools_dir, config.environment['PATH']))
6464 config.environment['PATH'] = path
65 # Setup paths to llvm-symbolizer for Sanitizer tools.
66 llvm_symbolizer_path = os.path.join(llvm_tools_dir, 'llvm-symbolizer')
67 config.environment['ASAN_SYMBOLIZER_PATH'] = llvm_symbolizer_path
68 config.environment['MSAN_SYMBOLIZER_PATH'] = llvm_symbolizer_path
6965
7066 # Propagate 'HOME' through the environment.
7167 if 'HOME' in os.environ: