<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/177064>177064</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[lldb] Unit tests fail on mac if compiler-rt runtime is enabled
</td>
</tr>
<tr>
<th>Labels</th>
<td>
lldb
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ashgti
</td>
</tr>
</table>
<pre>
I am building lldb with:
```
-DLLVM_ENABLE_PROJECTS='clang;lld;lldb;clang-tools-extra;cross-project-tests'
-DLLVM_ENABLE_RUNTIMES='libcxx;libcxxabi;compiler-rt;libunwind'
```
As a result, when I run some tests, like https://github.com/llvm/llvm-project/blob/main/lldb/test/API/functionalities/ubsan/basic/TestUbsanBasic.py the test fails because the stack trace includes debug symbols for the compiler-rt.
Specifically, https://github.com/llvm/llvm-project/blob/05f5ce5c6943744aecfa977ddf95790ba277bd5e/lldb/test/API/functionalities/ubsan/basic/TestUbsanBasic.py#L55 is incorrect, its not simply that the platform is Darwin, but that we have debug symbols for `libclang_rt.ubsan_osx_dynamic.dylib`.
I noticed this after fixing `skipUnlessUndefinedBehaviorSanitizer` in #176463 but I'm not exactly sure how to determine if we have debug symbols for libclang_rt or not.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJysVNtu4zYQ_Rr6ZWCBpm72gx7sJAZcZLeLTdLXgJeRNQ1FGiQV2_36gnIWDdCiQIsFCF2G5OGcwzMjY6SjQ-xYvWP1_UJOafChk3E4Jloob67dAeQIaiJryB3BWqPgTGlg5ZbxeTT8Y_Dt8v7x8bcvrw9ft7vHh9dv33_95eHu-YmV90y02kp3ZOXOWnN7Klbu5uAyeW_jEi8pyBwLPsblKfjfUadlwpgiE-3f0L-_fH0-fHn4QLek9OWSgecPqSgj-fFEFsMypNvM5M7kzA3tc96Mb7cRJASMk01M3MF5QAcHCJOD6EeEjzTuwNIbwpDSKWYFxJ6J_ZHSMKlC-5GJvbXvP14_ODCxV9YrJvajJDdPmvyXMZnYb78dmNj3k9OJvJOWEmFkYj-pKPNqJSNpJvbPGNNLju1yoDhdIQ23xKCXZCMo1HKKOIdjkvoNUpAagZy2k8EIBtV0hHgdlbcReh_mpZ9UKuAmxtMJNfWkpbXXTPr_8uV1X2usdbOpyraqJOpebtrWmH5TtxuupGhbZWr8eZowUT7WNVDMrH0Iczp3QCmC8wkijSebhZNp5n6yMvU-jHnDvQznfD13oKZ0W3JGGOQ7_oNwrOHZadm-ryEVc16vPl5ezdXJkXRhrpYUa3hxU_SQjyeNBtJAEWSfMEBPl1xTrOHxjU4vzmKML85gTw7NDgf5Tj48SUeJ_sDAGg7kgIly1TZVU85pHphox5kaXqRO9gpxCgiDP0PyYDBhGMkhUP8vZD4xAR8yWrEwXWk25UYusFu1zXpTV1zUi6HDft2Wa13JlrdqLXrZSLVWpjb1uu5Fv15QJ7ho-EqsOOctr4uV4VyhalabEk3VSlZxHCXZInum8OG4oBinfEzLm2phpUIb54YkxM0VIrem0M0eU9Mxsopbiin-hZAo2bmJzRvqe3hxlG5FOxcHeAej1FmGT3bP5Z1oxHz76KSyaBZTsN1_tvtMIPvzg8N7J_4MAAD__-Noxmg">