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

    <tr>
        <th>Summary</th>
        <td>
            LLVM test suite 'siod' test failure with `-fsanitize=safe-stack` flag
        </td>
    </tr>

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

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

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

<pre>
    When compiling+running the LLVM test suite with SafeStack via the `-fsanitize=safe-stack` compiler+linker flag, I found that one test fails: `MultiSource/Applications/siod/siod.test`.
The failure can be reproduced as follows:
```
cd ~/llvm-project
cmake -S llvm -B build -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_RUNTIMES=compiler-rt -DLLVM_ENABLE_PROJECTS=clang
ninja -C build
cd ~/llvm-test-suite
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=$HOME/llvm-project/build/bin/clang -DCMAKE_C_FLAGS='-fsanitize=safe-stack' -DCMAKE_CXX_FLAGS='-fsanitize=safe-stack' -DCMAKE_EXE_LINKER_FLAGS='-fsanitize=safe-stack'
ninja -C build
~/llvm-project/build/bin/llvm-lit build/MultiSource/Applications/siod -vv
```
The failure output is the following:
```sh
Content-type: text/plain

10
9
8
7
6
5
4
3
2
1
-42 is negative
0 is zero
42 is positive
the value of (get 'answer 'value) is 42
the value of (get 'answer 'value) is xyzzy
the 33rd Fibonacci number is ERROR: wta(1st) to plus (see errobj)
exit 2
Content-type: text/plain

10
9
8
7
6
5
4
3
2
1
-42 is negative
0 is zero
42 is positive
the value of (get 'answer 'value) is 42
the value of (get 'answer 'value) is xyzzy
the 33rd Fibonacci number is 3.52458e+06
exit 0
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsVUtv4zYQ_jX0hZBBUbJlH3TwQ2rdtZPAzrbpyaCkkcSEJg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