-
Notifications
You must be signed in to change notification settings - Fork 835
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
prctl(PR_SET_PTRACER) not implemented #3053
Comments
Fixed in Build 17723 (Fast Ring) per Release Notes. |
This is probably fixed in 1809 (17763.1). The reason why I say "probably" is that:
|
Specifically the output is now as follows...
Now, LeakSanitizer did say that it doesn't work with strace so I'm not sure if I can trust this output - as in, I can't be sure that without strace the behavior of LeakSanitizer diverges. But the exit code matches the behavior without strace so it might be the same issue. Could it be that the implementation of PR_SET_PTRACER is incomplete somehow? It looks like wait4 doesn't work on the process that is set as a tracer. |
That makes sense. The |
Sounds good, thanks! |
LeakSanitizer (which is part of address sanitizer) creates a thread and tries to call prctl(PR_SET_PTRACER) on it which results in EINVAL:
You can reproduce this by compiling a "Hello, world" program with
-fsanitize=address
and running it:Setting
/proc/sys/kernel/yama/ptrace_scope
to 0 works around the issue.The text was updated successfully, but these errors were encountered: