Per qualche motivo non sono in grado di collegarsi ai miei processi personali ?! Funziona bene se provo strace
come root.PTRACE_ATTACH non consentito per
$ ./list8 &
[1] 3141
$ child4 starts...
$ strace -p 3141
attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted
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
$ cat /proc/sys/kernel/yama/ptrace_scope
1
esecuzione su Lubuntu 13,10
Linux goal 3.8.0-19-generiC#29-Ubuntu SMP Wed Apr 17 18:19:42 UTC 2013 i686 i686 i686 GNU/Linux
E allora come fa gdb
allegare al propri processi degli utenti, senza dover impazzire con le impostazioni del kernel (ptrace_scope
) ??
http://askubuntu.com/questions/41629/after-upgrade-gdb-wont-attach-to-process –