This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/80027] ASAN breaks DT_RPATH $ORIGIN in dlopen()
- From: "m.ostapenko at samsung dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 13 Mar 2017 14:20:56 +0000
- Subject: [Bug sanitizer/80027] ASAN breaks DT_RPATH $ORIGIN in dlopen()
- Auto-submitted: auto-generated
- References: <bug-80027-4@http.gcc.gnu.org/bugzilla/>
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.