美文网首页
linux下并行编程调试遇到问题

linux下并行编程调试遇到问题

作者: 浪味仙蔬菜味 | 来源:发表于2018-01-11 16:37 被阅读0次

xterm报错如下:

Attaching to process 9636

Could not attach to process.  If your uid matches the uid of the target

process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try

again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf

ptrace: Operation not permitted.

解决方案:

打开文件: /etc/sysctl.d/10-ptrace.conf

修改:kernel.yama.ptrace_scope = 1 改为0

接着:sudo service procps restart

完成!

参考:https://askubuntu.com/questions/41629/after-upgrade-gdb-wont-attach-to-process

相关文章

网友评论

      本文标题:linux下并行编程调试遇到问题

      本文链接:https://www.haomeiwen.com/subject/lyktoxtx.html