Bug 276091 - pstack suspends process
Summary: pstack suspends process
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel
Version: 4.0
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
: ---
Assignee: Jan Kratochvil
QA Contact:
URL:
Whiteboard:
Depends On: 276861
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-09-04 12:44 UTC by Olle Liljenzin
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-09-04 18:21:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Olle Liljenzin 2007-09-04 12:44:37 UTC
Description of problem:
The process is stopped by pstack

Version-Release number of selected component (if applicable):
2.6.9-55.ELsmp
gdb-6.3.0.0-1.143.el4

How reproducible:
Always

Steps to Reproduce:

t.c:
   #include <sys/stat.h>
   int main(int argc, char *argv[])
   {
     struct stat b1;
     while(1) { stat("/", &b1); }
   }


1. 'cc t.c' and run a.out
2. strace -p <pid> (where pid is the process id for the a.out process)
3. stop strace with CTRL-C
4. pstack <pid>
  
Actual results:
a.out is stopped

Expected results:
a.out should keep running

Comment 1 Jan Kratochvil 2007-09-04 18:21:04 UTC
This is a kernel bug and it is present even in recent upstream kernels (tested
2.6.22-rc4-git7).
The kernel bug reproduces a different way in RHEL-4.6 GDB, the problem has been
resubmitted as Bug 276861.
Thanks for the notification.
RHEL-5 and F-7 kernels provide a utrace interface which does not have this bug.



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