ALT Linux Bugzilla – #2519
Attach to a process fails, gdb gets stuck
Last modified: 2003-08-25 15:18:47
You need to
before you can comment on or make changes to this bug.
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:
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.