From 5d6b191c65d2e92c62df266c88dffa4115e97328 Mon Sep 17 00:00:00 2001 From: NiJingzhe <1448976235@qq.com> Date: Fri, 30 Oct 2026 01:03:48 +0800 Subject: [PATCH] ci: LSan skips OCCT's process-lifetime singletons The first run with the alignment check suppressed left only 112 bytes in 4 allocations (TPrsStd_DriverTable::Get and TCollection_AsciiString allocated in static initialisation), with every doctest case of the io area passing. Co-Authored-By: Claude Sonnet 5.5 --- src/cpp/tools/lsan.supp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/cpp/tools/lsan.supp b/src/cpp/tools/lsan.supp index 74fdfb42..a381520a 100644 --- a/src/cpp/tools/lsan.supp +++ b/src/cpp/tools/lsan.supp @@ -1,3 +1,11 @@ # LeakSanitizer suppressions. The diagnostic-image slot (src/topo/diagnostic_image.cpp) is intentionally leaked: it # stays reachable through a static pointer, so LSan normally does not report it; this is the safety net. leak:scad::*::slot + +# OCCT's own process-lifetime singletons (the first run of the sanitizer job reported exactly these, 112 bytes in 4 +# allocations, with every doctest case passing): the TPrsStd driver table is created on first use and never freed, and +# OCCT's registries build their names with TCollection_AsciiString in static initialisation. Only these OCCT entry +# points; a leak that goes through this repository's code is still reported. +leak:TPrsStd_DriverTable::Get +leak:TCollection_AsciiString::allocate +leak:TCollection_AsciiString::reallocate