-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PTRACE_O_TRACEEXIT, PTRACE_O_TRACEEXEC #555
Comments
I met another similar case with PTRACE_GETREGSET option. #include <unistd.h>
#include <stdlib.h>
#include <sys/ptrace.h>
#include <linux/uio.h>
int main()
{
long regs[27];
struct iovec iov = { regs, sizeof(regs) };
pid_t child = fork();
if (child == 0) {
ptrace(PTRACE_TRACEME, 0, NULL, NULL);
execl("/bin/echo", "echo", NULL);
}
wait(NULL);
if (ptrace(PTRACE_GETREGSET, child, 1, &iov) == -1)
perror("ptrace error");
} |
I met yet another case with PTRACE_TRACEME reporting EPERM on Creator's Update. This blocks lldb from functioning. |
@SvenGroot recently added support for |
💯 Sven. |
|
Support for |
I am testing Swift on WSL.
Swift REPL uses LLVM's LLDB which calls
ptrace(PTRACE_SETOPTIONS,...)
.ptrace
on WSL acceptsPTRACE_O_TRACECLONE
, but notPTRACE_O_TRACEEXIT
norPTRACE_O_TRACEEXEC
.The test code is as follows:
On Ubuntu LTS 14.04, the test code does not generate errors.
On WSL Build 14367, the test code produces an "Invalid argument" error with PTRACE_O_TRACEEXEC or PTRACE_O_TRACEEXIT suboptions.
The text was updated successfully, but these errors were encountered: