https://bugs.llvm.org/show_bug.cgi?id=44095
Bug ID: 44095
Summary: ShadowCallStack crashing with exception handling
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: AArch64
Assignee: unassignedb...@nondot.org
Reporter: leonardc...@google.com
CC: arnaud.degrandmai...@arm.com,
llvm-bugs@lists.llvm.org, peter.sm...@linaro.org,
ties.st...@arm.com
Shadow call stack seems to be conflicting with exception handling:
```
#include <iostream>
int main () {
try {
throw 20;
} catch (int e) {
std::cout << "An exception occurred. Exception Nr. " << e << '\n';
}
return 0;
}
```
In this case, compiling with
```
$ prebuilt/third_party/clang/linux-x64/bin/clang++ -std=c++17 ~/misc/test.cpp
-fno-sanitize=safe-stack -target aarch64-unknown-linux-gnu -ffixed-x18
--sysroot=prebuilt/third_party/sysroot/linux/ -g
```
then running prints 20 normally, but appending `-fsanitize=shadow-call-stack`
to the end causes a segfault.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs