From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dmta1005.nifty.com (mta-snd01004.nifty.com [106.153.227.36]) by sourceware.org (Postfix) with ESMTPS id 640CD3858D39 for ; Sat, 2 Mar 2024 04:41:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 640CD3858D39 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=nifty.ne.jp Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 640CD3858D39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=106.153.227.36 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 Received: from HP-Z230 by dmta1005.nifty.com with ESMTP id <20240302044106111.EKZG.44550.HP-Z230@nifty.com> for ; Sat, 2 Mar 2024 13:41:06 +0900 Date: Sat, 2 Mar 2024 13:41:04 +0900 From: Takashi Yano To: "cygwin@cygwin.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: References: <20240301092510.e56a1716b9fd71f53525006d@nifty.ne.jp> <20240301192112.2316a694eae54badff3f2a31@nifty.ne.jp> <20240301220222.cce913c7ac4e75d0ec26e58d@nifty.ne.jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 List-Id: 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 > #include > > 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 #include 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