[PATCH] D39275: [LSan] Detect dynamic loader by its base address.

Aleksey Shlyapnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 24 18:43:20 PDT 2017


alekseyshl created this revision.
Herald added a subscriber: kubamracek.

Relanding https://reviews.llvm.org/D38600, which was reverted due to various PPC bot failures.

If it breaks something again, please provide some pointers to broken
bots, not just revert it, otherwise it's very hard to reason what's
wrong with this commit.

Whenever possible (Linux + glibc 2.16+), detect dynamic loader module by
its base address, not by the module name matching. The current name
matching approach fails on some configurations.


https://reviews.llvm.org/D39275

Files:
  lib/lsan/lsan_common.cc
  lib/lsan/lsan_common_linux.cc
  lib/sanitizer_common/sanitizer_getauxval.h
  lib/sanitizer_common/sanitizer_linux.cc
  lib/sanitizer_common/sanitizer_platform.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39275.120176.patch
Type: text/x-patch
Size: 5057 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171025/338e55ea/attachment.bin>


More information about the llvm-commits mailing list