Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2017 15:34:09 -0700
From:      Ngie Cooper <yaneurabeya@gmail.com>
To:        "Simon J. Gerraty" <sjg@juniper.net>
Cc:        Bryan Drewery <bdrewery@freebsd.org>, Renato Botelho <garga@freebsd.org>,  "O. Hartmann" <ohartmann@walstatt.org>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: make warning: ?: No such file or directory.
Message-ID:  <CAGHfRMCZwVpjK5LKcejA3k%2Bxkdzi6Lk3z_TxAjOM%2BJC4CzHXpg@mail.gmail.com>
In-Reply-To: <92582.1494442798@kaos.jnpr.net>
References:  <20170510063719.708fe322@freyja.zeit4.iv.bundesimmobilien.de> <5B5ED606-D287-463E-934D-D0BC52F845BD@gmail.com> <d313f180-c4c4-9278-784c-87ae4eea15ff@FreeBSD.org> <9bd356dd-970e-ae46-333e-1e21b3a408d6@FreeBSD.org> <08b858b2-b472-c097-3aa9-dd64ec7255dd@FreeBSD.org> <92582.1494442798@kaos.jnpr.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 10, 2017 at 11:59 AM, Simon J. Gerraty <sjg@juniper.net> wrote:
> Bryan Drewery <bdrewery@FreeBSD.org> wrote:
>> Oh now I get it too after updating system from head from r317177 to
>> r318116. So it seems to be a bug in bmake-20170420.
>
> What's in your env?
> Eg.
>
> env | grep MAKE
> ls

    As I noted in the src commit, I think r318161 addresses the issue
(also identified by Coverity as CID: 1374641). Basically, buf2 was in
scope for the conditional as stack memory, `path` took the address
buf2 and used it out of scope (which may have triggered the compiler
to optimize/evaluate the code incorrectly since the case seemed
impossible).
Thanks,
-Ngie



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGHfRMCZwVpjK5LKcejA3k%2Bxkdzi6Lk3z_TxAjOM%2BJC4CzHXpg>