Skip to content

Commit

Permalink
Disable ASan/MSan symbolization of reports in tests.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
eugenis committed Mar 27, 2013
1 parent 26998ee commit f647052
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
7 changes: 0 additions & 7 deletions test/Unit/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,3 @@ if config.enable_shared:
shlibpath = os.pathsep + shlibpath
shlibpath = config.shlibdir + shlibpath
config.environment[config.shlibpath_var] = shlibpath

# Setup paths to llvm-symbolizer for Sanitizer tools.
llvm_tools_dir = getattr(config, 'llvm_tools_dir', None)
if llvm_tools_dir:
llvm_symbolizer_path = os.path.join(llvm_tools_dir, 'llvm-symbolizer')
config.environment['ASAN_SYMBOLIZER_PATH'] = llvm_symbolizer_path
config.environment['MSAN_SYMBOLIZER_PATH'] = llvm_symbolizer_path
4 changes: 0 additions & 4 deletions test/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ if llvm_obj_root is not None:
lit.fatal('No LLVM tools dir set!')
path = os.path.pathsep.join((llvm_tools_dir, config.environment['PATH']))
config.environment['PATH'] = path
# Setup paths to llvm-symbolizer for Sanitizer tools.
llvm_symbolizer_path = os.path.join(llvm_tools_dir, 'llvm-symbolizer')
config.environment['ASAN_SYMBOLIZER_PATH'] = llvm_symbolizer_path
config.environment['MSAN_SYMBOLIZER_PATH'] = llvm_symbolizer_path

# Propagate 'HOME' through the environment.
if 'HOME' in os.environ:
Expand Down

0 comments on commit f647052

Please sign in to comment.