[compiler-rt] lsan: Document that ptrace_scope needs to be disabled. (PR #202838)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 9 20:03:24 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Peter Collingbourne (pcc)
<details>
<summary>Changes</summary>
As far as I'm aware, this is the reason why
http://45.33.8.238/linux/201640/step_9.txt is failing.
---
Full diff: https://github.com/llvm/llvm-project/pull/202838.diff
1 Files Affected:
- (modified) compiler-rt/lib/lsan/lsan_common.cpp (+3)
``````````diff
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;
``````````
</details>
https://github.com/llvm/llvm-project/pull/202838
More information about the llvm-commits
mailing list