<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Gábor,<div class=""><br class=""></div><div class="">That symbol appears to be defined in compiler-rt/lib/asan/<a href="http://asan_rtl.cc" class="">asan_rtl.cc</a>, so it should be provided by the asan runtime. Are you sure that the runtime expected by the host compiler is being dynamically loaded here? You can check this using 'ldd' (IIRC) on Linux or 'otool -l' on Darwin. Also, did you take the extra step needed to preload the runtime (LD_PRELOAD/DYLD_INSERT_LIBRARIES)?</div><div class=""><br class=""></div><div class="">best,</div><div class="">vedant</div><div class=""><br class=""></div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 2, 2018, at 12:24 PM, Gábor Márton via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" class="">lldb-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi,<br class=""><br class="">I'd like to run the tests, when LLVM, Clang and LLDB are all built with ASAN.<br class="">I am using release_60 version of LLDB.<br class="">The unittests just run fine, but with `dotest.py`, there is an error.<br class="">Maybe the LLDB build does not respect the global -DLLVM_USE_SANITIZER<br class="">flag of cmake ?<br class=""><br class="">Any help would be appreciated,<br class="">Thanks,<br class="">Gabor<br class=""><br class=""><br class="">```<br class="">/var/jenkins_home/workspace/ctu_pipeline/llvm/tools/lldb/test/dotest.py<br class="">--executable /var/jenkins_home/workspace/ctu_pipeline/build/bin/lldb<br class="">/var/jenkins_home/workspace/ctu_pipeline/llvm/tools/lldb/packages/Python/lldbsuite/test/<br class="">-v --excluded ./lldb_test_exclude<br class="">lldb version 6.0.0 (<a href="https://github.com/llvm-mirror/lldb.git" class="">https://github.com/llvm-mirror/lldb.git</a> revision<br class="">b6df24ff1b258b18041161b8f32ac316a3b5d8d9)<br class=""> clang revision 64eed461cdd3705e7bc1ccc95df9858f7fe216a8<br class=""> llvm revision 089d4c0c490687db6c75f1d074e99c4d42936a50<br class="">['/var/jenkins_home/workspace/ctu_pipeline/llvm/tools/lldb/test/dotest.py',<br class="">'--executable',<br class="">'/var/jenkins_home/workspace/ctu_pipeline/build/bin/lldb',<br class="">'/var/jenkins_home/workspace/ctu_pipeline/llvm/tools/lldb/packages/Python/lldbsuite/test/',<br class="">'-v', '--excluded', './lldb_test_exclude']<br class="">LLDB library dir: /var/jenkins_home/workspace/ctu_pipeline/build/bin<br class="">LLDB import library dir: /var/jenkins_home/workspace/ctu_pipeline/build/bin<br class="">The 'lldb-mi' executable cannot be located. The lldb-mi tests can not<br class="">be run as a result.<br class="">Traceback (most recent call last):<br class=""> File "/var/jenkins_home/workspace/ctu_pipeline/llvm/tools/lldb/test/dotest.py",<br class="">line 7, in <module><br class=""> lldbsuite.test.run_suite()<br class=""> File "/var/jenkins_home/workspace/ctu_pipeline/llvm/tools/lldb/packages/Python/lldbsuite/test/dotest.py",<br class="">line 1129, in run_suite<br class=""> import lldb<br class=""> File "/var/jenkins_home/workspace/ctu_pipeline/build/lib/python2.7/site-packages/lldb/__init__.py",<br class="">line 53, in <module><br class=""> _lldb = swig_import_helper()<br class=""> File "/var/jenkins_home/workspace/ctu_pipeline/build/lib/python2.7/site-packages/lldb/__init__.py",<br class="">line 49, in swig_import_helper<br class=""> _mod = imp.load_module('_lldb', fp, pathname, description)<br class="">ImportError: /var/jenkins_home/workspace/ctu_pipeline/build/lib/libLLVMDemangle.so.6:<br class="">undefined symbol: __asan_option_detect_stack_use_after_return<br class=""><br class="">```<br class="">_______________________________________________<br class="">lldb-dev mailing list<br class=""><a href="mailto:lldb-dev@lists.llvm.org" class="">lldb-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev<br class=""></div></div></blockquote></div><br class=""></div></body></html>