https://bugs.llvm.org/show_bug.cgi?id=52196
Bug ID: 52196
Summary: Using -fsanitize=undefined with -static segfault the
binary
Product: compiler-rt
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: ubsan
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
With
-- foo.cpp --
int main() {
return 0;
}
$ clang-14 -static -fsanitize=undefined foo.cpp -lstdc++ && ./a.out
segmentation fault ./a.out
With gcc
$ gcc-10 -static -fsanitize=undefined foo.cpp -lstdc++ && ./a.out && echo $?
0
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs