From d13d29ee38732d5ec7c5eca2d21a4a1f9112383f Mon Sep 17 00:00:00 2001 From: sideshowbarker Date: Mon, 1 Jun 2026 00:13:04 +0900 Subject: [PATCH] LibWeb: Suppress false-positive LSan report during WebWorker teardown MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: For several weeks now, CI Sanitizer runs have been logging leaked RustCompiledRegex objects in the WebWorker process when a worker is torn down while an off-thread script compile is still in flight. Cause: compile_off_thread() (introduced in 4a7dc45b3f0) parses and compiles a fetched top-level script on a ThreadPool worker. The pool's a process-lifetime singleton whose workers are never joined before exit — and that leads to LSan reporting a false positive during teardown. Fix: Suppress the false positive via __lsan_default_suppressions(). --- AK/LsanSuppressions.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AK/LsanSuppressions.h b/AK/LsanSuppressions.h index 4049f7d454..e975996c97 100644 --- a/AK/LsanSuppressions.h +++ b/AK/LsanSuppressions.h @@ -16,7 +16,8 @@ char const* __lsan_default_suppressions() // Both Skia and Chromium suppress false positive FontConfig leaks // https://github.com/google/skia/blob/main/tools/LsanSuppressions.cpp#L20 // https://chromium.googlesource.com/chromium/src/build/+/master/sanitizers/lsan_suppressions.cc#25 - return "leak:FcPatternObjectInsertElt"; + return "leak:FcPatternObjectInsertElt\n" + "leak:rust_compile_regex"; } } #endif