bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc fails to build w/bash-4.4_alpha


From: Chet Ramey
Subject: Re: gcc fails to build w/bash-4.4_alpha
Date: Tue, 14 Jul 2015 09:17:29 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 7/14/15 8:22 AM, Chet Ramey wrote:
> On 7/14/15 2:33 AM, Mike Frysinger wrote:
> 
>> running it with set -x shows that it runs the xgcc & rm steps, but
>> that's
> it.
>> using strace shows xgcc and rm both exit(0), but for some reason
>> bash doe
> s
>> not continue to the following commands like it should.
> 
>> if i change the && to a ; after the first rm, it still stops
>> executing at
> that
>> point.  if i change the && to a ; after the xgcc command, then the
>> rest o
> f the
>> commands run fine.
> 
>> attached is the strace.  it is not in fork mode, yet the shell
>> clearly do
> es an
>> exec into the rm tool.  looks like bash, for some reason, thinks
>> this is
> the
>> end of the possible commands and so does an optimization to exec
>> into it
> ?
> 
> Thanks for the report.  That's probably it; I'll take a look.

The following patch removes the code that incorrectly optimizes the fork in
this case.  There is a much more direct way to do what I want; that will be
in the next test release.

Chet

- -- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlWlC+EACgkQu1hp8GTqdKs+AACgn5NRCw3Hi0oO0ruPrX5F5ijU
nGAAoIV75OFY0KOM/UDLARkV2Q7cyEWd
=QvLq
-----END PGP SIGNATURE-----

Attachment: optimize-fork.patch
Description: Source code patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]