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

    <tr>
        <th>Summary</th>
        <td>
            DFSAN  release_shadow_space.c is flaky
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          joker-eph
      </td>
    </tr>
</table>

<pre>
    For a few days, I see this test being flaky on the bot, here is an example run: https://lab.llvm.org/buildbot/#/builders/272/builds/15892

```
******************** TEST 'DataFlowSanitizer-x86_64 :: release_shadow_space.c' FAILED ********************
Exit Code: 134
Command Output (stderr):
--
RUN: at line 1: /build/buildbot/premerge-monolithic-linux/build/./bin/clang -fsanitize=dataflow  -m64 /build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/test/dfsan/release_shadow_space.c -o /build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/compiler-rt/test/dfsan/X86_64Config/Output/release_shadow_space.c.tmp && /build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/compiler-rt/test/dfsan/X86_64Config/Output/release_shadow_space.c.tmp
+ /build/buildbot/premerge-monolithic-linux/build/./bin/clang -fsanitize=dataflow -m64 /build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/test/dfsan/release_shadow_space.c -o /build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/compiler-rt/test/dfsan/X86_64Config/Output/release_shadow_space.c.tmp
+ /build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/compiler-rt/test/dfsan/X86_64Config/Output/release_shadow_space.c.tmp
RSS at start: 7982000249035, after mmap: 7982000351439, after mmap+set label: 7982000453843, after fixed map: 7982000249043, after another mmap+set label: 7982000453843, after munmap: 7982000249043
RUN: at line 2: /build/buildbot/premerge-monolithic-linux/build/./bin/clang -fsanitize=dataflow  -m64 /build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/test/dfsan/release_shadow_space.c -o /build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/compiler-rt/test/dfsan/X86_64Config/Output/release_shadow_space.c.tmp && /build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/compiler-rt/test/dfsan/X86_64Config/Output/release_shadow_space.c.tmp
+ /build/buildbot/premerge-monolithic-linux/build/./bin/clang -fsanitize=dataflow -m64 /build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/test/dfsan/release_shadow_space.c -o /build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/compiler-rt/test/dfsan/X86_64Config/Output/release_shadow_space.c.tmp
+ /build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/compiler-rt/test/dfsan/X86_64Config/Output/release_shadow_space.c.tmp
RSS at start: 7982000249335, after mmap: 7982000351803, after mmap+set label: 7982000454207, after fixed map: 7982000249407, after another mmap+set label: 7982000454207, after munmap: 7982000249407
RUN: at line 3: /build/buildbot/premerge-monolithic-linux/build/./bin/clang -fsanitize=dataflow  -m64 /build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/test/dfsan/release_shadow_space.c -DORIGIN_TRACKING -mllvm -dfsan-track-origins=1 -o /build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/compiler-rt/test/dfsan/X86_64Config/Output/release_shadow_space.c.tmp && /build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/compiler-rt/test/dfsan/X86_64Config/Output/release_shadow_space.c.tmp
+ /build/buildbot/premerge-monolithic-linux/build/./bin/clang -fsanitize=dataflow -m64 /build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/test/dfsan/release_shadow_space.c -DORIGIN_TRACKING -mllvm -dfsan-track-origins=1 -o /build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/compiler-rt/test/dfsan/X86_64Config/Output/release_shadow_space.c.tmp
+ /build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/compiler-rt/test/dfsan/X86_64Config/Output/release_shadow_space.c.tmp
RSS at start: 10468000370887, after mmap: 10468000473297, after mmap+set label: 10468000678159, after fixed map: 10468000370959, after another mmap+set label: 10468000678159, after munmap: 10468000370966
RUN: at line 4: /build/buildbot/premerge-monolithic-linux/build/./bin/clang -fsanitize=dataflow  -m64 /build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/test/dfsan/release_shadow_space.c -DORIGIN_TRACKING -mllvm -dfsan-track-origins=1 -o /build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/compiler-rt/test/dfsan/X86_64Config/Output/release_shadow_space.c.tmp && /build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/compiler-rt/test/dfsan/X86_64Config/Output/release_shadow_space.c.tmp
+ /build/buildbot/premerge-monolithic-linux/build/./bin/clang -fsanitize=dataflow -m64 /build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/test/dfsan/release_shadow_space.c -DORIGIN_TRACKING -mllvm -dfsan-track-origins=1 -o /build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/compiler-rt/test/dfsan/X86_64Config/Output/release_shadow_space.c.tmp
+ /build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/compiler-rt/test/dfsan/X86_64Config/Output/release_shadow_space.c.tmp
RSS at start: 10468002893479, after mmap: 10468004446521, after mmap+set label: 11255317174414, after fixed map: 11255316867214, after another mmap+set label: 11255317174414, after munmap: 11255316945944
release_shadow_space.c.tmp: /build/buildbot/premerge-monolithic-linux/llvm-project/compiler-rt/test/dfsan/release_shadow_space.c:100: int main(int, char **): Assertion `after_fixed_mmap <= before + delta + mmap_origin_chain_kb' failed.
/build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/compiler-rt/test/dfsan/X86_64Config/Output/release_shadow_space.c.script: line 4: 3921607 Aborted /build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/compiler-rt/test/dfsan/X86_64Config/Output/release_shadow_space.c.tmp
--
********************
```


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsmdtu2zgTx5-GvhnIEA86XfjCtasi-D6kQNIF9s6gpJHFRhINktqk-_QLynbjpHZ6CLZIsgYMWxT_Hg6HMz8BGmmtWveIMxK9I9FyIgfXaDP7rG_QBLhpJoWuvsxybUBCjbdQyS-WsAVcgEUE1ygLDq2DAlW_hrqVN19A9-AahEI7r2zQICgLsge8k92mRTBDT_gcGuc2lvA5YTlheSuLadv-1U21WROWF4Nqq9FEThjf30BjCctZwvY3_JBGacZIuCThfPcdh7vPdsh-_QOf3l9_AsKSpXQyb_XtteyVU3-jCe7SeBUL8BvgczDYorS4so2s9O3KbmSJ05KwBPL5xf_fL-E5Xmz38f5OOVjoCv16lIvt3YXuOtlX8HFwm8EBYal1FRpDWOZdGzVBsP29-uPS_1c6aFWPQP1gH8mHMd8Y7NCsMeh0r1vlGlUGreqHuwP51F-rnrC8bGW_hqC2u-AQvqykk3WrbwGCzkfpp1fxuRBsjP6MpZeWutuoFk1g_MjnHGF55VckLD8efAj0M3Znht6pDu3BZVCo3n7Plz_HtFjovlY-j7fHctLHqes2QFhMWPwqfN1X1Lt_PW_OafMbjuJ3e3t1fe3pY500zsMnyVIWhiETWcgj_7SQtUMDXSc3B9M8ooJnj6bZO4sOWllgeyAVEU8Fv5fW6g4reGjOr3aokb12zc-Z7Yb-qM1jlGVnyr6EBDxT9kzZ_zxl-dOUTUP-g5QVLEy-S1lxqPkhyj40e4yy3uYxyvK3Ttnlx6uLDxeXq09X88X_Li4_QNB5sxCMfwyckeVNoI1a-8TiS_paCuzM5RfG5beaaG-B5DQUcepZnYRpmnyL8v28SDjLHs8_gu5eGycpjbITMD9YMDsUPUXzU4bvcX5oNY6P8lycef46y-zM8zPPX83hvRCeszTjInn8huN-XggRR4x-h-eURRGnCU2EoOIUz7eiOI0Tdih6kucnDB_wfGc1E1Emdu-lnwjFL5H9-aVA-JyGoV9d9Q466Ys2Vf3YpSgbab6-os-8Zm4tGqd0DyQOxw2vxkiufIiA8AXhSyiw1gbBJ2GFrZPjlRestgW1Khup-tVNQVgCtVQtVtN93r7wnLWlUZsxSe-fxzxjNA4TmBfaOKxeUeHtOyDP78I8bi6N35NqxquMZ3KCM5rQKBQRi7NJM4tjWmNdRyWmdVaFFMu0ojQu6qyQNS3FRM1YyEQYhUlIWSKyKauKJBM1p1FUV1EhiQixk6r92hybKGsHnGWUpclkLFI7du8Y6_EWxknCGImWEzMbi6YY1paIsFXW2XsrTrkWZ8v8en4JJ7pXoOy2pTcZTDt72K5bK9cMxbTU3a42vy3R0RV_oqOr_wQAAP__3edjXg">