From 9b7f722246bf4c47bef575270fb9cb02f72564cf Mon Sep 17 00:00:00 2001 From: George Wangensteen Date: Thu, 2 May 2024 19:22:37 -0400 Subject: [PATCH] =?UTF-8?q?SERVER-90100=20Add=20a=20suppression=20for=20li?= =?UTF-8?q?bresolv=20thread-local=20false-posit=E2=80=A6=20(#21779)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GitOrigin-RevId: 8966eec6c6426577246a75d4d7bc5d64eef4c238 --- etc/lsan.suppressions | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/etc/lsan.suppressions b/etc/lsan.suppressions index c10e9829c0b..710bfa56bb1 100644 --- a/etc/lsan.suppressions +++ b/etc/lsan.suppressions @@ -23,3 +23,10 @@ leak:glob64 leak:mongo::transport::AsioReactor::run() leak:mongo::transport::AsioReactor::drain() leak:UnitTest_SuiteNameTaskExecutorCursorFixtureTestNamePinnedExecutorDestroyedOnUnderlying + +# Allocations from this function in libresolv are stored in thread-locals. +# Threads that are not joined by the time the leak-detector runs (like those spawned by ASIO) may +# still have pointers to these allocated objects but LSAN isn't able to identify them and add them +# to do the root-set, resulting in false-positive leak reports. +# TODO SERVER-65936: Re-evaluate if this is needed with a clean shutdown that joins all threads. +leak:__res_context_send