mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Weinehall <tao@debian.org>
To: Marc Ballarin <Ballarin.Marc@gmx.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Interesting race condition...
Date: Mon, 26 Jul 2004 18:04:24 +0200	[thread overview]
Message-ID: <20040726160424.GQ22472@khan.acc.umu.se> (raw)
In-Reply-To: <loom.20040724T152713-574@post.gmane.org>

On Sat, Jul 24, 2004 at 01:40:59PM +0000, Marc Ballarin wrote:
> Rob Landley <rob <at> landley.net> writes: 
>  
> > Oh I can't reproduce it either.  (Maybe if I set some kind of loop and left 
> > it running for a few days...) 
>  
> I could reproduce it on an otherwise idle system (2 GHz Athlon, kernel 2.6.7). 
> On a loaded system the bug did not occur, which certainly indicates a race 
> condition. 
>  
> Using the following Bash script, the bug appeared 23 times in 122,221 
> iterations: 
> while [ 1 ];do 
>         ps ax | grep hack >> TEST 
> done 
>  
> The bug *seems* to be in bash, since an equivalent script in tcsh had no 
> problems: 
> while ( 1 ) 
>         ps ax | grep hack >> TEST2 
> end 
>  
> This issue has the potential to break a lot of shell scripts in an almost 
> undebugable way. Should someone file a bug report via 'bashbug'? 

I get this using posh as well, so it doesn't seem to be bash-specific.


Regards: David Weinehall
-- 
 /) David Weinehall <tao@acc.umu.se> /) Northern lights wander      (\
//  Maintainer of the v2.0 kernel   //  Dance across the winter sky //
\)  http://www.acc.umu.se/~tao/    (/   Full colour fire           (/

  reply	other threads:[~2004-07-26 17:33 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-23  3:04 Rob Landley
2004-07-23  7:33 ` Barry K. Nathan
2004-07-23  7:56   ` Hugo Mills
2004-07-24  8:13   ` Rob Landley
2004-07-24 13:40     ` Marc Ballarin
2004-07-26 16:04       ` David Weinehall [this message]
2004-07-26 17:20       ` Marc Ballarin
2004-07-23 10:01 ` P. Benie
2004-07-24  8:17   ` Rob Landley
2004-07-24  9:08     ` P. Benie
2004-07-27 20:40     ` Bill Davidsen
2004-07-28  8:00       ` Paul Jackson
2004-08-04 20:03       ` Robert White
2004-08-04 20:42         ` Roger Luethi
2004-07-28  8:05 ` Paul Jackson
2004-07-28 11:54   ` Marc Ballarin
2004-07-28 16:46     ` Rob Landley
2004-07-28 16:42   ` Rob Landley
2004-07-28 17:08     ` Tristan Wibberley
2004-07-29 23:56 ` Roger Luethi
2004-07-30  0:18   ` Jesper Juhl
2004-07-30  0:22     ` Jesper Juhl
2004-07-30  8:27   ` Marc Ballarin
2004-07-30  8:38     ` Roger Luethi
2004-08-20 10:15   ` Lee Revell
2004-08-20 12:51     ` Marc Ballarin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040726160424.GQ22472@khan.acc.umu.se \
    --to=tao@debian.org \
    --cc=Ballarin.Marc@gmx.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®