[compiler-rt] [compiler-rt] [sanitizer_common] Fix SIGSEGV in ForEachMappedRegion for DSOs with custom image base (PR #206299)

Mike Kruskal via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 8 17:50:31 PDT 2026


================
@@ -1404,6 +1404,10 @@ void ForEachMappedRegion(link_map *map, void (*cb)(const void *, uptr)) {
   typedef ElfW(Ehdr) Elf_Ehdr;
 #    endif  // !SANITIZER_FREEBSD
   char *base = (char *)map->l_addr;
+  Dl_info info;
+  if (dladdr((void *)map->l_ld, &info) && info.dli_fbase) {
----------------
mkruskal-google wrote:

Ah yea, added

https://github.com/llvm/llvm-project/pull/206299


More information about the llvm-commits mailing list