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

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下并行编程调试遇到问题)