GDB Problem "ptrace: Operat

2015-02-04  本文已影响510人  JasonGao
ptrace: Operation not permitted.  
  
Could not attach to the process. Make sure no other debugger traces this process.  
Check the settings of  
/proc/sys/kernel/yama/ptrace_scope  
For more details, see /etc/sysctl.d/10-ptrace.conf  

解决办法是在终端输入:sudo gedit /etc/sysctl.d/10-ptrace.conf

把其中的kernel.yama.ptrace_scope = 1 改为 kernel.yama.ptrace_scope = 0

然后重启即可。

上一篇 下一篇

猜你喜欢

热点阅读