https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80027
Maxim Ostapenko <m.ostapenko at samsung dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.ostapenko at samsung dot com --- Comment #1 from Maxim Ostapenko <m.ostapenko at samsung dot com> --- It seems that the bug is the same as https://bugs.llvm.org//show_bug.cgi?id=27790 so it should be fixed in compiler-rt first. The problem exists only if use shared libasan.so because it clobbers RPATH, static libasan should be fine. I don't know whether there is a general recipe how to deal with this issue, but for now you can try to link ASan runtime statically (via -static-libasan option) or use LD_LIBRARY_PATH.