Bug 2519 - Attach to a process fails, gdb gets stuck
: Attach to a process fails, gdb gets stuck
Status: CLOSED WONTFIX
: Sisyphus
(All bugs in Sisyphus/gdb)
: unstable
: all Linux
: P5 blocker
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2003-04-13 00:25 by
Modified: 2003-08-25 15:18 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2003-04-13 00:25:12
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
------- Comment #1 From 2003-04-13 00:35:22 -------
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.
------- Comment #2 From 2003-04-13 00:35:22 -------
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.