-
Notifications
You must be signed in to change notification settings - Fork 0
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
gdb attach fails with ptrace: Operation not permitted #2
Comments
@seifer08ms - Whats your setting for /proc/sys/kernel/yama/ptrace_scope? |
@vaibhav276
|
Ok, just came across a new flag in docker exec called "--privileged" (https://docs.docker.com/engine/reference/commandline/exec/) I haven't tried it myself, but you may want to give it a try. Please update if it works, or send in a pull request. |
OK,I will try it. Thanks for your help ! |
If running inside a container, adding |
Today I ran into a weird problem. I could not attach to my own process with GDB. The process ran under user docker followed with your instruction, but GDB refused to attach. It complains like that:
I googled this issue and tried to modify the 10-ptrace.conf to 0, but GDB continued producing the same error messages. How to solve it ?
The text was updated successfully, but these errors were encountered: