X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0A12A385842C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1710669878; bh=UAK3jQKBEzZb/2C8xBmLjFEjHv+OhvXPhXGrp4K8zPY=; h=Date:To:Cc:Subject:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=bThLhxyLyvyo5cqE+aw8TheXNJqiZ5dqxQ1Z1WBS1hxo+vGmD0TtQo5Q2qP4+wYit vzGpXEX9z9d8F1X1kXKenmZOlygi1rejvCkDd3F/QthsV4sKNQKyI96SeT+xH2S4Za s9tI9nrLYJdD4R4TU2kR+t0WsgvO1lLxvlfvwYLs= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B67B33858CD1 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B67B33858CD1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710669829; cv=none; b=wY0SpgpZHGqRltG0yUGfzanTgzogjoqsztR5aLgJeKQHKLFBt5msqQtFV9juPE4ohCMnAnQDNiHcufa7C4FRXvZQwJ/Jy3FwSv3/n5q/f8P24kYxY7zviSiAojMmOBwQnVdedsHuF7XlwF3Qhm8P55tzasg/ra4zT7bzN0hN93I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710669829; c=relaxed/simple; bh=6lR9325+/rhExG8huVHdu+J3dE0MQ0YbFUFAvKar84o=; h=DKIM-Signature:MIME-Version:Date:From:To:Subject:Message-ID; b=mSTtcWVeOHt1Bv19xKBydrDXI5dbtmgXAbdkN4lolHv5wHZSiXC1QbK2HgLPLPNt0VppX0F8bD8G2aJlOHMA2CJCxhD60Y1tGUmncmumCyW1ycQjFvxQO+MlMf68sjfeNEV1BhZWNMZZvlHGIpsm9AVoEKLPN5Cbqdw4pYrnFYY= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 mail.ispras.ru 02A4E40737D5 MIME-Version: 1.0 Date: Sun, 17 Mar 2024 13:03:40 +0300 To: Takashi Yano Cc: cygwin AT cygwin DOT com Subject: Re: Bogus exit code 127 from a child process In-Reply-To: <20240317182757.84b41a596c344f395c1d8f9a@nifty.ne.jp> References: <20240317174402 DOT 4a3e73a7fca2f5978ac93913 AT nifty DOT ne DOT jp> <61d4fca73047915567fc9b4aac2860a3 AT ispras DOT ru> <20240317182757 DOT 84b41a596c344f395c1d8f9a AT nifty DOT ne DOT jp> User-Agent: Roundcube Webmail/1.4.13 Message-ID: X-Sender: izbyshev AT ispras DOT ru X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Alexey Izbyshev via Cygwin Reply-To: Alexey Izbyshev Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On 2024-03-17 12:27, Takashi Yano wrote: > On Sun, 17 Mar 2024 12:01:55 +0300 > Alexey Izbyshev wrote: >> On 2024-03-17 11:44, Takashi Yano wrote: >> > On Sun, 17 Mar 2024 11:14:16 +0300 >> > Alexey Izbyshev wrote: >> >> Hello, >> >> >> >> I've been getting occasional "Error 127" from make -jN on seemingly >> >> random jobs. After reducing the set of jobs and eventually eliminating >> >> make, I've arrived to this one-liner: >> >> >> >> bash -c 'true & true & wait -n || echo 1: $? && wait -n || echo 2: $?' >> >> >> >> When run repeatedly, the second "wait -n" often reports 127. >> >> >> >> I've reproduced this in the following environments: >> >> >> >> * Cygwin 3.5.1, Windows 10 22H2 x64 >> >> * Cygwin 3.4.6, Windows 10 22H2 x64 and Windows 7 x64 >> >> >> >> I couldn't reproduce it in Cygwin 3.3.6 (WOW64) on Windows 7 x64. >> > >> > Could you please try latest cygwin 3.6.0 (TEST) ? >> >> Tested with 3.6.0-0.82.gfc691d0246b9 on Windows 10 22H2 x64, the >> problem >> still occurs. > > In my evrironmen, trial for 1 hour does not reproduce the issue. > Could you please let us know your environment, i.e. CPU, amount of > memory, and so on? It's been reproduced in a variety of environments: * Windows 10 22H2 x64, Intel Core i7 11700, 32 GB RAM * Windows 10 22H2 x64, Intel Core i7 9700, 32 GB RAM * Windows 10 22H2 x64, Intel Core i7 6700, 32 GB RAM * Windows 7 SP1 x64, Intel Core i7 6700, 32 GB RAM I'm surprised that you're not hitting it very quickly. The following loop usually fails after a few iterations (rarely a hundred or so) in my tests: while bash -c 'true & true & wait -n || { echo 1: $?; exit 1; } && wait -n || { echo 2: $?; exit 1; }'; do echo $((i++)); done Thanks, Alexey -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple