Bug 2519

Summary: Attach to a process fails, gdb gets stuck
Product: Sisyphus Reporter: Mikhail Zabaluev <mhz>
Component: gdbAssignee: Gleb F-Malinovskiy <glebfm>
Status: CLOSED WONTFIX QA Contact:
Severity: blocker    
Priority: P5 CC: glebfm, ldv, sbolshakov
Version: unstable   
Hardware: all   
OS: Linux   

Description Mikhail Zabaluev 2003-04-13 00:25:12 MSD
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 Dmitry V. Levin 2003-04-13 00:35:22 MSD
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 Dmitry V. Levin 2003-04-13 00:35:22 MSD
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.