Bug 74282 - race condition in bash
Summary: race condition in bash
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: bash
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-09-19 15:39 UTC by Jim Wright
Modified: 2007-04-18 16:46 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-09-26 01:54:17 UTC
Embargoed:


Attachments (Terms of Use)

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.


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