[compiler-rt] 06cc1ba - lsan: Document that ptrace_scope needs to be disabled.
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 10 09:48:09 PDT 2026
Author: Peter Collingbourne
Date: 2026-06-10T09:48:03-07:00
New Revision: 06cc1baa0e0eced548df56e3f1fdb7df10e4fd86
URL: https://github.com/llvm/llvm-project/commit/06cc1baa0e0eced548df56e3f1fdb7df10e4fd86
DIFF: https://github.com/llvm/llvm-project/commit/06cc1baa0e0eced548df56e3f1fdb7df10e4fd86.diff
LOG: lsan: Document that ptrace_scope needs to be disabled.
As far as I'm aware, this is the reason why
http://45.33.8.238/linux/201640/step_9.txt is failing.
Reviewers: vitalybuka
Pull Request: https://github.com/llvm/llvm-project/pull/202838
Added:
Modified:
compiler-rt/lib/lsan/lsan_common.cpp
Removed:
################################################################################
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