www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/03/01/23:42:04

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8B7F6385842E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1709354521;
bh=Kl5EAfpUN/OQCjwQOv6YXKl69z4eS+NReSd7AzTD+rU=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=KZRkoGkwnI0E4E4xOio006s4P2OwYm1GTllPSLbnqzCR/J6SgaDLS4zRf8LZhF0jr
QjASkRa5MBnXqb7d9JtDIjUWpXK8OoezwB8dqaHonrdotNN/F4Gpheh2ce0w5NrsZV
JcYMb1yZoqttO8KFZ49WOPfA/r3dHgNSZPsMaRec=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 640CD3858D39
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 640CD3858D39
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709354472; cv=none;
b=ZbNknDNleBHiALI6/FFJrVmAzA81Znranitdu7F+DlfM1XWr0uFjw8djhLQbxMAHb3DbkuAJoh18V857pmJG0aL3S1ihFxNBPBF3sYLmSF5qaQ0sI2Lcy8dQRcGIBc5kCplUX6NNYvKVdKhtEioDZJGC1z2Wl1uBwcb5vb6IyLg=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1709354472; c=relaxed/simple;
bh=rAcXliTmVTUzQ5piRhHVoutweGvur+xA2NQSwv7RD9U=;
h=Date:From:To:Subject:Message-Id:Mime-Version;
b=UcF9cuWzOUBSobX5AT7kFLCUm5TKSvXPbnQtKL/IN72eMWFIDNt3jdRt+18JZM/m6cmhXePZzKFE/ELBcvC7M7cCaruSLdNT+WCkVL2l3dB4RovtZE077F7NAiTHNZD7/gtEicxjSfGlwcQ0aJ8KpO2XrC047P43B970HK+AhyE=
ARC-Authentication-Results: i=1; server2.sourceware.org
Date: Sat, 2 Mar 2024 13:41:04 +0900
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: Regression: Cygwin 3.5.1 freezes when launching several mingw
processes in parallel
Message-Id: <20240302134104.1696af5869b62727e4fe8dee@nifty.ne.jp>
In-Reply-To: <CWXP265MB13686F1A651D9D99F6F03276BC5E2@CWXP265MB1368.GBRP265.PROD.OUTLOOK.COM>
References: <CWXP265MB13688A1AAB4643076818482ABC5F2 AT CWXP265MB1368 DOT GBRP265 DOT PROD DOT OUTLOOK DOT COM>
<20240301092510 DOT e56a1716b9fd71f53525006d AT nifty DOT ne DOT jp>
<20240301192112 DOT 2316a694eae54badff3f2a31 AT nifty DOT ne DOT jp>
<20240301220222 DOT cce913c7ac4e75d0ec26e58d AT nifty DOT ne DOT jp>
<CAJQQdJiXsUUSx3vs2WjQYS0eNtX-7Vs99=NSygwCYC7Pkhvtyg AT mail DOT gmail DOT com>
<CWXP265MB13686F1A651D9D99F6F03276BC5E2 AT CWXP265MB1368 DOT GBRP265 DOT PROD DOT OUTLOOK DOT COM>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, 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
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Takashi Yano via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Fri, 1 Mar 2024 17:48:52 +0000
Kate Deplaix wrote:
> Hi,
> 
> Using cygwin 3.6.0-0.66.gc77a5689f7bd I was indeed unable to reproduce the issue.

Thanks for tesing.

> However I'm getting a related but slightly different issue now, where a subprocess randomly (but quite reliably over the whole compilation process) fails with make -j (works fine with -j1 once again)
> 
> Luckily i was able to make a really small test-case this time:
> Using MinGW 11.4.0 with the following test.c file:
> 
> #define UNICODE
> #define _UNICODE
> 
> #include <process.h>
> #include <stdio.h>
> 
> int main() {
>   int ret = _wsystem(L"x86_64-w64-mingw32-gcc -dumpversion");
>   if(ret != 0) printf("FOUND %d\n", ret);
> }
> 
> compile using: x86_64_w64-mingw32-gcc ./test.c
> and run using: for i in $(seq 1 100) ; do ./a & done

Thanks for the test case. I tried this test case, however,
I cannot reproduce the second problem, i.e. all 100 processes
exited normally.

To increase system load, I also tried:

#define UNICODE
#define _UNICODE

#include <process.h>
#include <stdio.h>

int main(int argc, char *argv[]) {
  wchar_t buf[1024];
  swprintf(buf, 1024, L"x86_64-w64-mingw32-gcc test.c -o %s", argv[1]);
  int ret = _wsystem(buf);
  if(ret != 0) printf("FOUND %d\n", ret);
}

and

#!/bin/sh
for i in $(seq 1 200); do ./a.exe $i & done

but, no error was found...

How many cpu cores and how much memory does your system have?

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019