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

    <tr>
        <th>Summary</th>
        <td>
            Interpreter/const.cpp is very flaky with Asan
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            orcjit
      </td>
    </tr>

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

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

<pre>
    ```
FAIL: Clang :: Interpreter/const.cpp (12377 of 84977)
******************** TEST 'Clang :: Interpreter/const.cpp' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 5: cat /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-repl | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp
+ cat /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp
+ /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp
+ /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-repl
RUN: at line 6: cat /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-repl -Xcc -O2 | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp
+ cat /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp
+ /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-repl -Xcc -O2
+ /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp
JIT session error: In graph incr_module_23-jitted-objectbuffer, section .text.startup: relocation target "_ZGVL1a" at address 0x78e3cc019008 is out of range of Delta32 fixup at 0x74e3ca10f012 (<anonymous block> @ 0x74e3ca10f010 + 0x2)
error: Failed to materialize symbols: { (main, { __orc_init_func.incr_module_23, $.incr_module_23.__inits.0 }) }
error: Failed to materialize symbols: { (main, { __orc_init_func.incr_module_23 }) }
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp:23:16: error: CHECK-NEXT: expected string not found in input
// CHECK-NEXT: f: this = [[THIS]], val = 1
               ^
<stdin>:2:94: note: scanning from here
clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> f: this = 0x78e3cc019000, val = 1
 ^
<stdin>:2:94: note: with "THIS" equal to "0x78e3cc019000"
clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> f: this = 0x78e3cc019000, val = 1
 ^
<stdin>:4:16: note: possible intended match here
~A, this = 0x78e3cc019000, val = 1
               ^
Input file: <stdin>
Check file: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp
-dump-input=help explains the following input dump.
Input was:
<<<<<<
           1: clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> A(1), this = 0x78e3cc019000 
 2: clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> f: this = 0x78e3cc019000, val = 1 
next:23'0 X error: no match found
next:23'1 with "THIS" equal to "0x78e3cc019000"
           3: clang-repl> clang-repl> clang-repl> clang-repl> clang-repl>  
next:23'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 4: ~A, this = 0x78e3cc019000, val = 1 
next:23'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:23'2                    ? possible intended match
>>>>>>
--
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsWE9v27gT_TT0ZSCDIuVIOvjgyvav-W3RAtvsotiLQUkjiw1FakkqdXroZ19Qdtz8BbJpinS7KxBxKHE4b4ZvHikJ5-RWI87J7BWZLSdi8K2x8wvphbosh3MxKU19OScn9NDoktDFenH6hvAFFEroLRC-CJ1T7dH2Fj1awtaV0c5Pq74HwrKY8TQF00CW5GlKWL6fhrCnNzhbvT8DwtLHYCAshYB5tYRv8blHvdpJD4WpMTiM9_cK03VC1_Bu8P3gQ8jO12htCJUf7KJo__vrb2-DpfCgpEaYhU4lgtG6NR0Sti4JWzuhpZef0Ua77GRzkkRK6mEXlcZ4563oI-GEDmMHqWrC1kpddFFvzUesfAg9ZIWwtUcXug-uTVo8g9_N2NlcPZH6CkBksVff0claKixarM5fInlXHH71Uqv3FcBPnd3vzc97q_Lkp6_K6ENVQfSO_Vee_3gGH9fyX6AI_z89A4fOSaMBrTV2v-3D1oq-Bakru-lMPSjcMB59lN5jHZkyOCqHpgkzFuCw8sF-6nHnp84L64c-zGNRmUqMz7ywWwy8YZs__vf7m1gQxoI6iLq26BzQXZohryoa55RmIB2YwYcjjhV6i-GfJSovOING7oY-mNJdmiCvREwbGrNwSCC8ENroy84MDkplqnPCV0ASenMshbCkdMeOJ6dj5GshFdbgDXTCo5VCyc8I7rIrjXJhAEkDGbJOhAUsxu5mY2y1kVr6TTPoanozaeMolty6O92MBm5KgaRLwvLx53tjuePrJWjHF4wTvojHLeEYbPF6VfwSvV19OBtv73qsPNbgvJV6C9p4aMyga5AapO4Hf8RP2PqWcRP--FY6IHwJ40H81d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