SERVER-122339: Suppress LSAN on __res_context_query (#50135)

GitOrigin-RevId: 7c415a1e5306f8726b3b16be63411fa01810a804
This commit is contained in:
Mike Nugent 2026-03-23 07:53:40 -04:00 committed by MongoDB Bot
parent d4e340325c
commit 357c937cb4

View File

@ -24,9 +24,11 @@ leak:mongo::transport::AsioReactor::run()
leak:mongo::transport::AsioReactor::drain()
leak:UnitTest_SuiteNameTaskExecutorCursorFixtureTestNamePinnedExecutorDestroyedOnUnderlying
# Allocations from this function in libresolv are stored in thread-locals.
# Allocations from these functions 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.
# to do the root-set, resulting in false-positive leak reports. LSAN may report different functions
# leaking depending on the version of libresolv.
# TODO SERVER-65936: Re-evaluate if this is needed with a clean shutdown that joins all threads.
leak:__res_context_send
leak:__res_context_query