delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/10/02/22:32:44

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 6932Wivs3475472
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 6932Wivs3475472
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=oWU4fDtq
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5A63D4BA2E3D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1790994747;
bh=rknXk+gx8tezMC0ex3P65RnJNMjMawK52cVhN7fvOvY=;
h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=oWU4fDtqBSz7RC4ao8KrEbZ7Jm3vfVot30fDsTpEfMGLxtS0rFfcSh6A9NtrlwlKU
nwq7Ruz9rQIR4+wy4FMbrWHRk2TWseyjamBIckM1fWU2/pSWnARYS6b0NS6L0sSWl3
K5EZjvTZ2lujNHQvbI+z7E/r/AxVd6A0gzDy494Q=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 36E4B4BA903C
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 36E4B4BA903C
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1790994729; cv=none;
b=mCqut0VLO8HGCAz/B3E9zk8pwK0ded+jh263LjqgduxmfvsCds4aOIj2F7f7/lWToDyL5KswksgkvmeGawG+LziYtxfSSdIprPixUMeivYFIL3Cdz97Mg7fSo5Hq3HU8y5GAKH90NwVd8TBvWc34v9D8qgDKDUjD3BaJyqe3XL4=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1790994729; c=relaxed/simple;
bh=u0a5OGjmw1q5tqSnfrKyRt3KauIl14WTLtavFSNKPh4=;
h=From:To:Subject:Date:Message-ID:MIME-Version;
b=ojfT4U0GS88gY5gPi+tawBnHeE6kL4RLCwfZLMqv4SedTqS6IrD7Wo5D/zJ6OBygQc4KxyQlwH/oBO/f1tsq/zpOI7xfR/dqukeymsPoR2YljhaLcJnxtKltp0MrbE4JhGwZObK5xTq9v2TvDTYWe0/Z2T9NsL8Ya6Fi6sW4PWw=
ARC-Authentication-Results: i=1; sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 36E4B4BA903C
To: <cygwin AT cygwin DOT com>
Subject: =?utf-8?Q?Regression_in_Cygwin_3.6.9:_Dead?=
=?utf-8?Q?lock_when_spawning_many_concurre?=
=?utf-8?Q?nt_Windows-native_processes_=28nma?=
=?utf-8?Q?ke.exe=29_=E2=80=94_works_in_3.6.5_1?=
Date: Fri, 2 Oct 2026 22:32:09 -0400
Message-ID: <00a001dd52df$639cd4b0$2ad67e10$@nickpopoff.net>
MIME-Version: 1.0
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQHfQ28yC8NU+NKmjzP8sIKDmJbJwA==
X-Content-Filtered-By: Mailman/MimeDel 2.1.30
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-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: Nick Popoff via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Nick Popoff <nick AT nickpopoff DOT net>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 6932Wivs3475472

This is my original report.  Sending it again…

 

Hello,

 

Regression in Cygwin 3.6.9: Deadlock when spawning many concurrent Windows-native processes (nmake.exe) — works in 3.6.5‑1

Version affected: Cygwin 3.6.9 (latest as of August 2026)

Version NOT affected: Cygwin 3.6.5‑1 (stable, no issues)

 

Summary

Cygwin 3.6.9 introduces a regression in process management that causes complete build deadlock when spawning many concurrent Windows-native processes (specifically nmake.exe). The same workload has run flawlessly for 20+ years on all previous Cygwin versions, including 3.6.5‑1. Under 3.6.9, the build freezes once some parallel job limit is reached, leaving dozens of idle sh.exe processes and stalled nmake.exe processes. Ctrl‑C kills the Windows nmake.exe processes but Cygwin’s sh.exe instances remain stuck, and the terminal never returns control.  Reverting to 3.6.5‑1 immediately restores correct behavior.  This is a reproducible regression in Cygwin’s process/signal/pipe handling.

 

Environment

*	Windows Server 2025 (WS2025)
*	Heavy parallel build workload
*	15 concurrent nmake.exe processes
*	Each nmake.exe spawns many short-lived Windows-native tools
*	Cygwin shell (sh.exe) orchestrates the build
*	No Cygwin-native processes involved — all Windows-native

 

Steps to Reproduce

1.	Install Cygwin 3.6.9
2.	Launch a Cygwin shell
3.	Start 15 parallel Windows-native builds, e.g.:

Code

for i in {1..15}; do

    (nmake.exe -f Makefile$i &) 

done

wait

Each makefile repeatedly spawns short-lived Windows-native tools (ASN.1-compiler processes).

4.	Observe behavior once all 15 jobs are active.

 

Actual Behavior (3.6.9)

*	Build freezes completely once a certain parallel limit is reached
*	All nmake.exe processes become idle
*	Dozens of idle sh.exe accumulate
*	No CPU usage
*	No progress
*	Ctrl‑C kills nmake.exe but does not kill sh.exe
*	Cygwin console never returns
*	Terminal must be forcibly closed
*	No such behavior in 3.6.5‑1

This is consistent with a signal-thread or pipe inheritance deadlock.

 

Expected Behavior (3.6.5‑1 and earlier)

*	All 15 parallel nmake.exe processes run normally
*	No idle sh.exe accumulation
*	No deadlock
*	Ctrl‑C cleanly terminates all processes
*	Console returns immediately
*	Build completes successfully

This behavior has been stable for decades.

 

Notes

This workload is a strong stress test for:

*	spawn.cc
*	sigproc.cc
*	pipe inheritance
*	process table updates
*	console control handling
*	synchronization primitives

The regression appears only in 3.6.9.

 

Conclusion

Cygwin 3.6.9 introduces a reproducible deadlock when orchestrating many concurrent Windows-native processes via Cygwin’s shell. This is a regression from 3.6.5‑1. The issue affects real-world build systems and should be investigated.

I can provide:

*	process snapshots
*	strace logs
*	Windows process tree dumps
*	minimal reproduction scripts

upon request.

 

Nick

 

 

 


-- 
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 © 2026   by DJ Delorie     Updated Sep 20 2026