Re: [ccache] gmake and ccache conspiring together in creating gremlins

2021-02-08 Thread Sam Varshavchik via ccache
On Mon, Feb 8, 2021 at 2:38 PM Paul Smith wrote: > > On Mon, 2021-02-08 at 10:43 +, Edward Welbourne wrote: > > Sounds to me like that's a bug: when the descriptors are closed, the > > part of MAKEFLAGS that claims they're make's jobserver file > > descriptors should be removed, since that's

Re: [ccache] gmake and ccache conspiring together in creating gremlins

2021-02-08 Thread Sam Varshavchik via ccache
On Sun, Feb 7, 2021 at 7:59 AM Joel Rosdahl wrote: > From my perspective, I don't see anything wrong with ccache dup-ing stderr – I > guess the bug can be triggered by the user running something like > > exec 3>&2 > > in the shell as well. > > I can think of an easy workaround for the problem:

[ccache] gmake and ccache conspiring together in creating gremlins

2021-02-07 Thread Sam Varshavchik via ccache
I've been chasing down non-deterministic, random build fails. make randomly blows up with write error: stdout A lot of stracing, experimentation, and pains, determined that this is due to a sequence of the following events: 1) how make uses the job server file descriptor 2) an intentional leak