[llvm-branch-commits] [LSan] skip leaks from dlerror (PR #142876)
Florian Mayer via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Jun 4 16:58:14 PDT 2025
fmayer 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?).
Yeah, it would be better to fix the root cause. But until then, this exclusion makes sense IMO. WDYT?
https://github.com/llvm/llvm-project/pull/142876
More information about the llvm-branch-commits
mailing list