Hi,
  It isn't a problem on fedora because it uses RPATH and it checks for
all the loaders in the list whereas in RUNPATH it only check for the
current loader which libasan whose runpath doesn't have the
executables runpath.
The fix is to get the main_map i.e loader of the original binary which
is present in the list of loaders.  It fixes my issue . I posted a
patch on libc-dev  but got no response.

I can post the patch here if needed.

I've posted the patch at
https://sourceware.org/pipermail/libc-help/2021-February/005684.html

This issue is reported here as well.
https://bugs.llvm.org/show_bug.cgi?id=27790
https://bugzilla.redhat.com/show_bug.cgi?id=1449604

Reply via email to