[Lldb-commits] [PATCH] D144904: [Linux] Add kernel.yama.ptrace_scope note when ptrace fails to attach.
David Spickett via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Feb 28 01:21:23 PST 2023
DavidSpickett added a comment.
And testing would require the test to `sudo ...` so I don't think this can be tested.
================
Comment at: lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp:235
+ std::error_code(errno, std::generic_category()),
+ "The current value of ptrace_scope is %d, which can cause ptrace to "
+ "fail to attach to a running process. To fix this, run:\n"
----------------
Tell me if I understand correctly. This error is only used if you've already failed to attach. So if you had a value of 1 or 2, but attaching worked fine, you wouldn't see this.
Which is why you've said "which can cause" instead of "does cause". As there are some situations with 1 or 2 that do work.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144904/new/
https://reviews.llvm.org/D144904
More information about the lldb-commits
mailing list