<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/67586>67586</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Investigate leaks of data allocated in `_Unwind_Find_FDE` in `ClangReplInterpreterExceptionTests`.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          lhames
      </td>
    </tr>
</table>

<pre>
    Raised in discussion on https://reviews.llvm.org/D159167.
Example failed build: https://lab.llvm.org/buildbot/#/builders/5/builds/36614

The change in behavior was caused by ca8d2533c79ccfbcb2de4090f0d48914a60b0a3d, which added `export_executable_symbols` to `ClangReplInterpreterExceptionTests`, but this just caused the test to start running instead of being skipped -- it is not the root cause.

Config for build:
```
cmake -DLLVM_APPEND_VC_REV=OFF -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_CCACHE_BUILD=ON -DLLVM_USE_LINKER=lld -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF -DCMAKE_C_COMPILER=/b/sanitizer-x86_64-linux-fast/build/llvm_build0/bin/clang -DCMAKE_CXX_COMPILER=/b/sanitizer-x86_64-linux-fast/build/llvm_build0/bin/clang++ '-DLLVM_ENABLE_PROJECTS='\''clang;lld;clang-tools-extra;mlir'\''' '-DLLVM_USE_SANITIZER=Address;Undefined' -DLLVM_ENABLE_LIBCXX=ON '-DCMAKE_C_FLAGS=-nostdinc++ -isystem /b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/include -isystem /b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/include/c++/v1 -fsanitize=address,undefined -Wl,--rpath=/b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/lib -L/b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/lib -w' '-DCMAKE_CXX_FLAGS=-nostdinc++ -isystem /b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/include -isystem /b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/include/c++/v1 -fsanitize=address,undefined -Wl,--rpath=/b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/lib -L/b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/lib -w' '-DCMAKE_EXE_LINKER_FLAGS=-Wl,--rpath=/b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/lib -L/b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/lib' /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm
```

Log output from failed test:

```
FAIL: Clang-Unit :: Interpreter/ExceptionTests/./ClangReplInterpreterExceptionTests/0/1 (53743 of 77523)
******************** TEST 'Clang-Unit :: Interpreter/ExceptionTests/./ClangReplInterpreterExceptionTests/0/1' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/tools/clang/unittests/Interpreter/ExceptionTests/./ClangReplInterpreterExceptionTests-Clang-Unit-3345656-0-1.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=1 GTEST_SHARD_INDEX=0 /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/tools/clang/unittests/Interpreter/ExceptionTests/./ClangReplInterpreterExceptionTests
--
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from InterpreterTest
[ RUN      ] InterpreterTest.CatchException
[       OK ] InterpreterTest.CatchException (183 ms)
[----------] 1 test from InterpreterTest (183 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (184 ms total)
[  PASSED  ] 1 test.
LLVMSymbolizer: error reading file: No such file or directory
=================================================================
==302471==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 48 byte(s) in 1 object(s) allocated from:
    #0 0x5594a52ef23e in malloc /b/sanitizer-x86_64-linux-fast/build/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:69:3
 #1 0x7f841b469459 in _Unwind_Find_FDE (/lib/x86_64-linux-gnu/libgcc_s.so.1+0x1d459) (BuildId: 81899e6e627233f39aeb6104df0ab2e435622084)
    #2 0x7fff4b3fa2ef ([stack]+0x1e2ef)
    #3 0x7f841b43bfff  (<unknown module>)
SUMMARY: AddressSanitizer: 48 byte(s) leaked in 1 allocation(s).
--
exit: 1
--
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsWFtv4rr2_zTmxQpK7FwfeACSdPgPpVWA-Xefl8hJHPA02Mh2Wno-_ZGTAG3PdGu69-yHkU4UBXxZy7918VrLJkqxHad0ArwZ8OIRafVeyEmzJweqRoWoXiYZYYpWkHFYMVW2SjHBoeBwr_VRATwFKAUolfSJ0Wc1bpqnw1jIHUBp7HiR4wdjYMfAniYncjg2FNaENbSCRcuaCuDpOzYNKV6z6GYVQneD-NxBpQIo9c5N08C-77j9Qv13s6ew3BO-owZ5QffkiQkJn4mCJWmNQMULLElYIQ_jMojKsi7KAlXUtSO7tis3jByX-HZhE1wBNIfPe1buIakqWkHg2_R0FFLn9ETLVpOiobl6ORSiUcC3oRZmyrwhfJfRY7PgmsqjpJrK5FTSo2aCb6jSZq5hXbQa6j1T8Hur9Bme3lOoqdKGmdJEaihbzhnfQcaVpqSCooYFNR3qkR2PtIKWBZmGTEEudEcvhRj4jV_rZi54zXawFvJihmHYt4e3a5YH8kihFS-X327z6f19sorzb_M8S74BHN-lKbRuVox_J9CK57fTr0k-2y6Wcb754z4BOM5oQ4m60M_n0_mXYYohX50HtuskXy5WX5MM4LhpqnN_sprOlkk-Xa-TbLO4W63fUA2j90mWb6bZTbLJs-1qs7hN8niRneENsOb5_O72frHsVjBeA1CqCGea_ZtK6xT6ue9aDePtyaqJ0me_Mu7YPB3yrmGbXsYBSktj1ivvh4dfzx2gGUAzCFDwTtrs7v-S-Wbd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