I run jabberd under the jabber user, then try to attach to it with gdb. Gdb produces error messages: Attaching to program: /usr/sbin/jabberd, process 23634 Couldn\'t get registers: Operation not permitted. A program is being debugged already. Kill it? (y or n) n Program not killed. If then I try to kill the process with \'kill\' command, gdb hangs. An attempt to quit gdb produces the following dialog: (gdb) quit The program is running. Quit anyway (and detach it)? (y or n) y Detaching from program: /usr/sbin/jabberd, process 23634 ptrace: Operation not permitted. --- --- Kernel is home-built, based on 2.4.20-alt7
This is a 2.4.20-alt7 problem, known side effect of kmod ptrace fix. You cannot ptrace some processes now which were praceable before. There are no solution yet, 2.4.21 won\'t be released untill this problem gets fixed. And gdb is innocent. You may want to reassign this bug to kernel package.