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

    <tr>
        <th>Summary</th>
        <td>
            Clang test Analysis/live-stmts.cpp randomly fails on MacOS
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

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

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

<pre>
    I have 2 build bots setup to build/test LLVM running on MacOS and I have noticed that the test `clang/test/Analysis/live-stmts.cpp` randomly seems to fail on the bot. I have two identically configured workers running the job, and it has failed on both so it doesn't seem specific to one machine configuration.

Here is a sample of the failing test output:
```
******************** TEST 'Clang :: Analysis/live-stmts.cpp' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 1: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Users/buildbot/buildbot-root/aarch64-darwin/build/lib/clang/21/include -nostdsysteminc -analyze -analyzer-constraints=range -setup-static-analyzer -w -analyzer-checker=debug.DumpLiveExprs /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Analysis/live-stmts.cpp 2>&1   | /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Analysis/live-stmts.cpp
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Users/buildbot/buildbot-root/aarch64-darwin/build/lib/clang/21/include -nostdsysteminc -analyze -analyzer-constraints=range -setup-static-analyzer -w -analyzer-checker=debug.DumpLiveExprs /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Analysis/live-stmts.cpp
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Analysis/live-stmts.cpp
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Analysis/live-stmts.cpp:239:16: error: CHECK-EMPTY: is not on the line after the previous match
// CHECK-EMPTY:
               ^
<stdin>:180:1: note: 'next' match was here
^
<stdin>:177:1: note: previous match ended here
^
<stdin>:178:1: note: non-matching line after previous match is here
ImplicitCastExpr 0x151009d78 '_Bool' <LValueToRValue>
^

<many lines skipped>

172: [ B3 (live expressions at block exit) ] 
         173:  
         174: IntegerLiteral 0x15082f800 'int' 0 
check:235 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         175:  
empty:236     ^
 176: IntegerLiteral 0x15082f820 'int' 1 
check:237 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         177:  
empty:238     ^
 178: ImplicitCastExpr 0x151009d78 '_Bool' <LValueToRValue> 
         179: `-DeclRefExpr 0x151009d38 '_Bool' lvalue ParmVar 0x151009bb8 'b' '_Bool' 
 180:  
empty:239     ! error: match on wrong line
```
Here are some recent runs of the build bot where the test failure occurred:
- https://lab.llvm.org/buildbot/#/builders/190/builds/14468
- https://lab.llvm.org/buildbot/#/builders/190/builds/14413
- https://lab.llvm.org/buildbot/#/builders/190/builds/14384
- https://lab.llvm.org/buildbot/#/builders/190/builds/14383
- https://lab.llvm.org/buildbot/#/builders/190/builds/14380
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzsV0Fv2zoS_jX0ZSCDomxJPvjgODYabLot2rTAnhYUObbYUKRAUkm8h_3tD6Rjx3ZfW6AN-t7hGUIkMuT3fTMczpDce7U1iHMyvSLT6xEfQmvdXO4Gsx01Vu7mN9DyBwQGzaC0hMYGDx7D0EOw-z7C1gF9gNvbz2_BDcYoswVr4C0X7z4CNxKeMYwNSqCE0PIAoUVI00hJheZm-wxD2HphuN555Qlba_WAmQ9d8GPR96Sk4LiRttM78IidjyI2XOnIFxEbG8YHuvBoQUk0QQmu9Q6ENRu1HRxKeLTuHp0_qo1Tv9iGsGXSqwK03CdglBG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