[llvm-bugs] [Bug 44095] New: ShadowCallStack crashing with exception handling
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Nov 20 15:23:18 PST 2019
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: unassignedbugs at nondot.org
Reporter: leonardchan at google.com
CC: arnaud.degrandmaison at arm.com,
llvm-bugs at lists.llvm.org, peter.smith at linaro.org,
Ties.Stuij at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191120/e3c6ead0/attachment.html>
More information about the llvm-bugs
mailing list