[compiler-rt] lsan: Document that ptrace_scope needs to be disabled. (PR #202838)
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 9 20:02:41 PDT 2026
https://github.com/pcc created https://github.com/llvm/llvm-project/pull/202838
As far as I'm aware, this is the reason why
http://45.33.8.238/linux/201640/step_9.txt is failing.
>From e7c7398f66325db836877d91c4cbe88430169dfc Mon Sep 17 00:00:00 2001
From: Peter Collingbourne <peter at pcc.me.uk>
Date: Tue, 9 Jun 2026 20:02:26 -0700
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.6-beta.1
---
compiler-rt/lib/lsan/lsan_common.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/compiler-rt/lib/lsan/lsan_common.cpp b/compiler-rt/lib/lsan/lsan_common.cpp
index 411291636d98f..0e8b013d73fe8 100644
--- a/compiler-rt/lib/lsan/lsan_common.cpp
+++ b/compiler-rt/lib/lsan/lsan_common.cpp
@@ -897,6 +897,9 @@ static bool CheckForLeaksOnce() {
Report(
"HINT: LeakSanitizer does not work under ptrace (strace, gdb, "
"etc)\n");
+ Report(
+ "HINT: LeakSanitizer requires ptrace_scope to be disabled (e.g. echo "
+ "0 > /proc/sys/kernel/yama/ptrace_scope)\n");
Die();
}
LeakReport leak_report;
More information about the llvm-commits
mailing list