[Lldb-commits] [lldb] [lldb][Linux] Fix checking of error values when attach fails (PR #161673)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 3 06:05:07 PDT 2025


DavidSpickett wrote:

The Yama error now looks like:
```
UNSUPPORTED: LLDB (/home/davspi01/work/open_source/build-llvm/bin/clang-x86_64) :: test_qThreadInfo_contains_thread_attach_debugserver (TestLldbGdbServer.LldbGdbServerTestCase) (test case does not fall in any category of interest for this run) 
failed to attach to process 327017: The current value of ptrace_scope is 1, which can cause ptrace to fail to attach to a running process. To fix this, run:
	sudo sysctl -w kernel.yama.ptrace_scope=0
For more information, see: https://www.kernel.org/doc/Documentation/security/Yama.txt.
error: failed to attach to pid 327017: The current value of ptrace_scope is 1, which can cause ptrace to fail to attach to a running process. To fix this, run:
	sudo sysctl -w kernel.yama.ptrace_scope=0
For more information, see: https://www.kernel.org/doc/Documentation/security/Yama.txt.
FAIL: LLDB (/home/davspi01/work/open_source/build-llvm/bin/clang-x86_64) :: test_qThreadInfo_contains_thread_attach_llgs (TestLldbGdbServer.LldbGdbServerTestCase)
```

https://github.com/llvm/llvm-project/pull/161673


More information about the lldb-commits mailing list