Bug 276091

Summary: pstack suspends process
Product: Red Hat Enterprise Linux 4 Reporter: Olle Liljenzin <olle>
Component: kernelAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED UPSTREAM QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 4.0CC: cagney
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-09-04 18:21:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 276861    
Bug Blocks:    

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.