[llvm-bugs] [Bug 51271] New: Sanitizer -shared-libsan is unusable on Ubuntu 20.04/18.04 and clang-12/10
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jul 29 09:01:08 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=51271
Bug ID: 51271
Summary: Sanitizer -shared-libsan is unusable on Ubuntu
20.04/18.04 and clang-12/10
Product: clang
Version: 12.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: serge.rogatch at gmail.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at metafoo.co.uk
If I compile a simple program (sample.cpp):
#include <cstdio>
int main() {
printf("Hello, World");
return 0;
}
with a shared sanitizer library, i.e.
clang++-12 -fsanitize=address -shared-libsan sample.cpp -o sample
I am getting the following error when running ./sample:
./sample: error while loading shared libraries: libclang_rt.asan-x86_64.so:
cannot open shared object file: No such file or directory
I am getting this error for the sample code on my local machine (Ubuntu 20.04
and clang-12), as well as for the production code on our build runner (Ubuntu
18.04 and clang-10).
--
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/20210729/86c874dd/attachment.html>
More information about the llvm-bugs
mailing list