| delorie.com/archives/browse.cgi | search |
| DMARC-Filter: | OpenDMARC Filter v1.4.2 delorie.com 6930HxDS3187641 |
| 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 6930HxDS3187641 |
| 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=uGJD7+uw | |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org C3AB44BA79B6 |
| DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; |
| s=default; t=1790986661; | |
| bh=zRJ9/a7quyxtYOJVmYYvVPMxYPy/lGQ5DFCOOT3EY2g=; | |
| h=Date:Subject:References:To:In-Reply-To:List-Id:List-Unsubscribe: | |
| List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: | |
| From; | |
| b=uGJD7+uwvNkI4rgVTNnaMtI5Jg7M5AFcv/TLggv3uOD8DIfeLXSu6y/6+ZNaHl57K | |
| ademy71lw4ygOn7WxWDm+b1xKS7NjAav46YqGwQMIyACAu5IT+hI7swPBAXWW/N0+e | |
| bkxIyR60MqmPV923/FajA7s5En6raEep4gHfuuLg= | |
| X-Original-To: | cygwin AT cygwin DOT com |
| Delivered-To: | cygwin AT cygwin DOT com |
| DMARC-Filter: | OpenDMARC Filter v1.4.2 sourceware.org 987114BA7991 |
| ARC-Filter: | OpenARC Filter v1.0.0 sourceware.org 987114BA7991 |
| ARC-Seal: | i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1790986643; cv=none; |
| b=VnvVybWDrMckmXDkzMYdkC/RHMXy6sxoexs15yvi00s8B7llt+vU60eXop7Dakboj4mn0dI8ax+tZe26KRp1UzEeB4A3/RTxCsgPl7Di1Z+JBx7RIeGPEig8aAdL+fqLnP9JcFuYlOC0sdL0fuMdufvWPJtkv9MzBKEKcKrTyIo= | |
| ARC-Message-Signature: | i=1; a=rsa-sha256; d=sourceware.org; s=key; |
| t=1790986643; c=relaxed/simple; | |
| bh=lPOscLbfhIQqfULFJnapNPIc/hSnSHqVyfNFyNbhUvM=; | |
| h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature; | |
| b=qqNnLfHaVz5q4+/LxmqHE2n/xvaqXBYp5dSn1lBb5uEYV6G48OVkIwII8rrsLULoXTj0fxjLIwCM9DQ/x5GgcILLTptmLZzGm5sA1gUzJY9cSFEvYlXVQs0t55G27j4kC3wJVZonB62nEHXlMQ0oSxlvEbBKAVd69bT+BfoDrO8= | |
| ARC-Authentication-Results: | i=1; sourceware.org; |
| dkim=pass (2048-bit key, unprotected) | |
| header.d=SystematicSW.ab.ca header.i=@SystematicSW.ab.ca header.a=rsa-sha256 | |
| header.s=he header.b=BKGhinkM | |
| DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 987114BA7991 |
| Message-ID: | <d242e08f-52aa-45fb-870c-8ff4c620593a@SystematicSW.ab.ca> |
| Date: | Fri, 2 Oct 2026 18:17:19 -0600 |
| MIME-Version: | 1.0 |
| User-Agent: | Mozilla Thunderbird |
| Subject: | =?UTF-8?Q?Re=3A_Regression_in_Cygwin_3=2E6=2E9=3A_Deadlock_when_spa?= |
| =?UTF-8?Q?wning_many_concurrent_Windows-native_processes_=28nmake=2Eexe=29_?= | |
| =?UTF-8?B?4oCUIHdvcmtzIGluIDMuNi41IDE=?= | |
| References: | <000001dd33b2$6a4f2570$3eed7050$@nickpopoff.net> |
| <20260824194051 DOT e61e716cbdbe3a1c246fa51d AT nifty DOT ne DOT jp> | |
| <001001dd4148$54b9dae0$fe2d90a0$@nickpopoff.net> | |
| Organization: | Systematic Software |
| To: | Cygwin general discussions and problem reports <cygwin AT cygwin DOT com> |
| In-Reply-To: | <001001dd4148$54b9dae0$fe2d90a0$@nickpopoff.net> |
| X-Rspamd-Queue-Id: | 19BD320025 |
| X-Stat-Signature: | zetn4ngkai5b1wszgoteeqt9zigj5g4y |
| X-Rspamd-Server: | rspamout07 |
| X-Session-Marker: | 427269616E2E496E676C69734053797374656D6174696353572E61622E6361 |
| X-Session-ID: | U2FsdGVkX1/7L8RtNivozpbR5slYfNTsOMyTOSF3cTQ= |
| X-HE-Tag: | 1790986640-226968 |
| X-HE-Meta: | U2FsdGVkX1958gm72fhuR2FzwRJ4axzhOHLt8qpOoDtCS8adtg9fQA0q1mcGHjmyCeq6AsBjVqvLUMGrF+awgpUeNCvj5rsGuXXWrIG/HZ6wd4CHxs1iv6ZmUBFti5EZmhdtJfhodmo5W6zhFAeo7dQglGUJmaqyupxCYF0U7FhcPuvmYtSCLqZibDkhEp+F+QEWus5TjqrXu6TIuvXx8aT/pre02UlQadxPNjaDl3y+T7H5Eqd0x/OQcYmGMK07cE2SIol+R/QaY3xHaKnyINhIFqavf1dz1jgtP8jmELEswfUAlIwdHwBVPflwhaE48FluEc1Y6ua/lshaCUvPMf5EeCGLPx0moe7QenofOsqvM1PToW/K307Y6Z63sMBhzhRO1lOxkandKck47hj5Nsb2c+GMsVu7gF+0Slxb9UL0TtVUzAqRkctkB4GaaZ5cEnbdK1EHvgw= |
| 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: | Brian Inglis via Cygwin <cygwin AT cygwin DOT com> |
| Reply-To: | Cygwin general discussions and problem reports <cygwin AT cygwin DOT com> |
| Cc: | Brian Inglis <Brian DOT Inglis AT SystematicSW DOT ab DOT ca> |
| 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> |
| X-MIME-Autoconverted: | from base64 to 8bit by delorie.com id 6930HxDS3187641 |
Hi Nick,
Attaching a massive graphic blob with little data does not really highlight
where the issue is.
Perhaps try a simple Cygwin command line (with procps-ng installed):
$ procps -Aeflw --forest | tee issue.log
and feel free to trim the output options, and edit the content to highlight
relevant processes where the issues exist.
On 2026-09-10 11:18, Nick Popoff via Cygwin wrote:
> Just upgraded to Cygwin 3.6.10-1:
>
> C:/cygwin64/home/Nick> uname -a
> CYGWIN_NT-10.0-26100 LIBRA 3.6.10-1.x86_64 2026-07-13 20:20 UTC x86_64 Cygwin
>
> and the problem is still NOT resolved. See the attached Process Explorer screenshot, where you can see this time 5 hanging nmake processes. The machine is idling. I now need to kill everything, restore Cygwin 3.6.5-1, and start over. This is a severe problem that was introduced recently and not yet resolved.
> On Monday, August 24, 2026 6:41 AM, Takashi Yano wrote:
>> Thanks for the report.
>>
>> I guess the patch:
>> https://cygwin.com/pipermail/cygwin-patches/2026q3/015286.html
>> fixes the issue. Please wait for test version of cygwin, where the patch
>> applied. The patch is now under review, so hopefully it will become soon.
>> On Mon, 24 Aug 2026 06:22:06 -0400, Nick Popoff via Cygwin wrote:
>>> 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.
--
Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher but when there is no more to cut
-- Antoine de Saint-Exupéry
--
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
| webmaster | delorie software privacy |
| Copyright © 2026 by DJ Delorie | Updated Sep 20 2026 |