On 3/8/26 7:21 PM, Duncan Roe wrote:

bash hangs when executing a very particular config.status script.

Repeat-By:
==========

./config.status

or

sh -x ./config.status 2>&1 | tee config.status.xlog

I cannot reproduce this on RHEL or macOS using both bash-5.2.37 and
bash-5.3.3. I don't have or use cygwin; I recommend you open a bug
report with the Cygwin developers.


I'm not a Cygwin developer but looked into this anyway, arriving at the attached
patch.

There's a TL;DR discussion of this patch starting at
https://cygwin.com/pipermail/cygwin/2025-October/258857.html

Here's the first bit (edited with hindsight):-
This only affects here documents over 64KB by 128 bytes or less.
The underlying cause is a bug in Windows which damages the build process.

Thanks for the investigation and the fix.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    [email protected]    http://tiswww.cwru.edu/~chet/

Reply via email to