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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to