Bug 90995

Summary: not show everything
Product: [Retired] Red Hat Linux Reporter: Sebastian Boinski <marlin>
Component: procpsAssignee: Alexander Larsson <alexl>
Status: CLOSED NOTABUG QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-05-16 13:11:22 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:

Description Sebastian Boinski 2003-05-16 08:46:04 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90)

Description of problem:
I wrote aplication that from main proces fork 5 times. When I tested it on RH 
8.0 ps didn't show one process. According to data in /proc process existed and 
was running (on other platform I didn't have such problems) . When I tested a 
job made by this process everything was OK. I suggestet that there is a bug in 
ps.

Version-Release number of selected component (if applicable):
procps

How reproducible:
Always

Steps to Reproduce:
1. I run my soft in any situation that they gets different PID
2. Everytime there was this same problem
3.
    

Additional info:

Comment 1 Alexander Larsson 2003-05-16 13:11:22 UTC
The ps in RH8 (and upstream ps too, in later versions) doesn't show subthreads
by default. To get them you need to pass -m to ps. Due to the way threads are
handled in LinuxThreads there is no really 100% correct way to detect what
processes are threads, so it uses a hack. When a child process has identical
name and vmsize as its parent its assumed to be a thread.

This is fixed in RHL9 with the introduction of NPTL.