[llvm-branch-commits] [LSan] skip leaks from dlerror (PR #142876)

Thurston Dang via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jun 4 16:56:09 PDT 2025


thurstond wrote:

There's a flag:
```
LSAN_FLAG(bool, use_ld_allocations, true,
          "Root set: mark as reachable all allocations made from dynamic "
          "linker. This was the old way to handle dynamic TLS, and will "
          "be removed soon. Do not use this flag.")
```

Obviously we shouldn't use this flag, but I wonder if something like that would be better than specifically suppressing `*dlerror*` (are other `dl*` functions going to break at some point?).



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


More information about the llvm-branch-commits mailing list