Bug 74282

Summary: race condition in bash
Product: [Retired] Red Hat Linux Reporter: Jim Wright <jwright>
Component: bashAssignee: Tim Waugh <twaugh>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3   
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: 2002-09-26 01:54:17 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 Jim Wright 2002-09-19 15:39:19 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:0.9.9) Gecko/20020513

Description of problem:
In tracking down some hardware problems with an SMP system, we came up with this
very simple test.

    while [ 1 ] ; do date ; done | uniq -c

I would expect that on an otherwise idle machine the date command can be run
roughly the same number of times per second over long periods of time. But we
see a trend over a few minutes where fewer and fewer instances are run. 
Sometimes this leads to that shell crashing.

I posted this to the bash-bug list and got the following reply:

  Date: Mon, 16 Sep 2002 10:10:32 -0400
  From: Chet Ramey <chet.cwru.edu>
  Reply-To: chet.edu
  To: jwright
  Cc: bug-bash, jwright, chet.edu
  Subject: Re: odd behavior of while loop, leading to crash

  It's a race condition.  There is a fix in bash-2.05b.


Version-Release number of selected component (if applicable):
bash-2.05-8

How reproducible:
Always

Steps to Reproduce:
1.as above

Additional info:

Comment 1 Tim Waugh 2002-10-07 13:38:41 UTC
Fixed package is bash-2.05b-5.