| Issue |
77011
|
| Summary |
LLVM test suite 'siod' test failure with `-fsanitize=safe-stack` flag
|
| Labels |
|
| Assignees |
|
| Reporter |
nmosier
|
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
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs