Re: bash 3.2.39 -- race condition

2009-11-30 Thread Marc Herbert
Douglas Moyes a écrit : I nearly brought down a server today. # alias d=perl-script A long time ago I read somewhere that aliases are not recommended. I think they do not bring anything on the table compared to functions, do they? Anyway I have always done without them, but without

Re: bash 3.2.39 -- race condition

2009-11-30 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Marc Herbert on 11/30/2009 3:18 AM: A long time ago I read somewhere that aliases are not recommended. I think they do not bring anything on the table compared to functions, do they? There is one thing that aliases can do that

Re: bash 3.2.39 -- race condition

2009-11-27 Thread Chet Ramey
Douglas Moyes wrote: I nearly brought down a server today. # alias d=perl-script # d() { # perl-script $1 |grep something|cut -d ' ' -f 3 # } # d something . . CRASH turns out bash went into a loop calling d over and over again, which resulted in thousands of

bash 3.2.39 -- race condition

2009-11-26 Thread Douglas Moyes
I nearly brought down a server today. # alias d=perl-script # d() { # perl-script $1 |grep something|cut -d ' ' -f 3 # } # d something . . CRASH turns out bash went into a loop calling d over and over again, which resulted in thousands of grep, bash, and -d processes being

Re: bash 3.2.39 -- race condition

2009-11-26 Thread Pierre Gaston
On Thu, Nov 26, 2009 at 2:35 AM, Douglas Moyes doug...@hq.newdream.net wrote: I nearly brought down a server today. # alias d=perl-script # d() { # perl-script $1 |grep something|cut -d ' ' -f 3 # } # d something . . CRASH turns out bash went into a loop calling d

Re: [bash-3.2.39] race condition on AIX when using libtool with bash

2008-08-04 Thread Michael Haubenwallner
On Wed, 2008-07-30 at 18:53 +0200, Michael Haubenwallner wrote: Hi, have some strange race condition here on aix5.3 with bash-3.2.39, when using CONFIG_SHELL=/path/to/bash, building in parallel (-j16) with libtool. It works when using /bin/ksh. Now it has happened with /bin/ksh too, so

Re: [bash-3.2.39] race condition on AIX when using libtool with bash

2008-07-31 Thread Michael Haubenwallner
On Wed, 2008-07-30 at 18:53 +0200, Michael Haubenwallner wrote: snip Now I can see (stripped the unimportant): open(GetWMCMapW.loT, O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE) = 4 kfcntl(4, 14, 0x0001) = 1 close(4)= 0

[bash-3.2.39] race condition on AIX when using libtool with bash

2008-07-30 Thread Michael Haubenwallner
Hi, have some strange race condition here on aix5.3 with bash-3.2.39, when using CONFIG_SHELL=/path/to/bash, building in parallel (-j16) with libtool. It works when using /bin/ksh. Sporadically there are two lines missing in the libtool-generated 'file.lo', while other files in the same build