summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Wangensteen <george.wangensteen@mongodb.com>2024-06-27 13:10:23 -0400
committerMongoDB Bot <mongo-bot@mongodb.com>2024-06-27 17:22:14 +0000
commit91833f1f0747698bf7930bf6e0fbc5d0223888e7 (patch)
treeb06d2c4359c5b5d7eb14df7fe12f56cece21707f
parentd38b3824a4cc83ab55652ebd98e49a956f48877d (diff)
SERVER-90100 Suppress false-positive leak from libresolv (#23882)r5.0.28-rc0r5.0.28
GitOrigin-RevId: a8f8b8e1e271f236e761d0138e2418d0a114c941
-rw-r--r--etc/lsan.suppressions7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/lsan.suppressions b/etc/lsan.suppressions
index 43e72a8ee44..6eb6406e5db 100644
--- a/etc/lsan.suppressions
+++ b/etc/lsan.suppressions
@@ -18,3 +18,10 @@ leak:__cxa_thread_atexit_impl
leak:mongo::ThreadPool::Impl::_startWorkerThread_inlock()
leak:glob64
+
+# 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