<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>2519</bug_id>
          
          <creation_ts>2003-04-13 00:25:12 +0400</creation_ts>
          <short_desc>Attach to a process fails, gdb gets stuck</short_desc>
          <delta_ts>2003-08-25 15:18:47 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>gdb</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mikhail Zabaluev">mhz</reporter>
          <assigned_to name="Gleb F-Malinovskiy">glebfm</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>sbolshakov</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2293</commentid>
    <comment_count>0</comment_count>
    <who name="Mikhail Zabaluev">mhz</who>
    <bug_when>2003-04-13 00:25:12 +0400</bug_when>
    <thetext>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\&apos;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 \&apos;kill\&apos; 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

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5473</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2003-04-13 00:35:22 +0400</bug_when>
    <thetext>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\&apos;t be released untill this problem gets fixed.
And gdb is innocent.

You may want to reassign this bug to kernel package.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8842</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2003-04-13 00:35:22 +0400</bug_when>
    <thetext>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\&apos;t be released untill this problem gets fixed.
And gdb is innocent.

You may want to reassign this bug to kernel package.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>