lkml.org 
[lkml]   [2004]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Interesting race condition...
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 (/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.071 / U:0.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site