[llvm] r178139 - Disable ASan/MSan symbolization of reports in tests.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Wed Mar 27 06:11:12 PDT 2013
Author: eugenis
Date: Wed Mar 27 08:11:12 2013
New Revision: 178139
URL: http://llvm.org/viewvc/llvm-project?rev=178139&view=rev
Log:
Disable ASan/MSan symbolization of reports in tests.
It was using an instrumented symbolizer binary, which is a potential fork bomb.
Modified:
llvm/trunk/test/Unit/lit.cfg
llvm/trunk/test/lit.cfg
Modified: llvm/trunk/test/Unit/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Unit/lit.cfg?rev=178139&r1=178138&r2=178139&view=diff
==============================================================================
--- llvm/trunk/test/Unit/lit.cfg (original)
+++ llvm/trunk/test/Unit/lit.cfg Wed Mar 27 08:11:12 2013
@@ -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
Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=178139&r1=178138&r2=178139&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Wed Mar 27 08:11:12 2013
@@ -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:
More information about the llvm-commits
mailing list