Received: from eggs.gnu.org ([208.118.235.92]:52590) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfKO6-0004gf-4D for qemu-devel@nongnu.org; Fri, 04 Jan 2019 02:59:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfKO2-00046k-7x for qemu-devel@nongnu.org; Fri, 04 Jan 2019 02:59:25 -0500 Received: from mail-wm1-f41.google.com ([209.85.128.41]:38788) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfKO1-0003tn-PI for qemu-devel@nongnu.org; Fri, 04 Jan 2019 02:59:21 -0500 Received: by mail-wm1-f41.google.com with SMTP id m22so400624wml.3 for ; Thu, 03 Jan 2019 23:59:19 -0800 (PST) References: <1545395783-39040-1-git-send-email-pbonzini@redhat.com> <42d8a1b8-6c33-8e22-b5d9-35f42f6b928e@redhat.com> From: Paolo Bonzini Message-ID: Date: Fri, 4 Jan 2019 08:59:17 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PULL v4 00/35] Misc patches for 2018-12-21 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers On 03/01/19 19:37, Peter Maydell wrote: > On Sat, 22 Dec 2018 at 08:41, Paolo Bonzini wrote: >> >> On 21/12/18 22:09, Peter Maydell wrote: >>> I don't really understand what's going on here, or why >>> it only happens with this one system (my main x86-64 >>> Linux Ubuntu 16.04.5 box) and not the various others I'm >>> running test builds on. But it does seem to be 100% >>> reliable with any of these pullreqs with the new test >>> driver in them :-( >> >> I'm afraid something in your setup is causing make's stdout to have >> O_NONBLOCK set. Make doesn't use O_NONBLOCK at all, so it must be >> something above it. I also checked Perl with strace and, at least here, >> it doesn't set O_NONBLOCK. > > Interestingly, I have today run into "make: write error: stdout" > with the existing make check infrastructure. [...] > I presume that something in one of the tests we're running, > likely QEMU itself, ends up setting stdout to non-blocking. > This while rune *used* to be entirely reliable, so maybe > something recent has changed ? I don't know... I tried running make check under "strace -e fcntl" and I didn't find any occurrences of fcntl(1, O_SETFL, ...|O_NONBLOCK). Perhaps you can add a check after every invocation of a test executable. Are you going to apply the pull request since the bug is preexisting? Thanks, Polo