Could not attach debugger

Milian Wolff mail at milianw.de
Fri Jun 24 13:45:48 BST 2011


On Friday 24 June 2011 14:17:49 Mahmood Naderan wrote:
> Hi
> When I to attach a process to gdb in kdevelop I get this error
> 
> Could not attach debugger:
> ptrace: Operation not permitted.
> 
> What should I do?

Google for the error message and change the ptrace settings:

fromt the very first hit:

"And the solution is just either do this (as root):

$ echo 0 > /proc/sys/kernel/yama/ptrace_scope

…or make it permanent by setting ptrace_scope to 0 in /etc/sysctl.d/10-
ptrace.conf"

see also:

https://wiki.ubuntu.com/SecurityTeam/Roadmap/KernelHardening#ptrace_Protection


-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20110624/5448a9f3/attachment.sig>


More information about the KDevelop mailing list