DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 58IKHpJe2606769
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 58IKHpJe2606769
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=oD8UUy6d
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 729EC3858408
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1758226666;
	bh=qZhSZQ3PESVEUxtseFFYln8Ls+kH8qDTrltobk/2kNU=;
	h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=oD8UUy6dUX2UKd/ZXCp7BelaHNnbqttxDW5HQbiDfmuT9NeHMw0hCia7I2L2md0+B
	 MN22VONym8gPeTq4Bl8vYmg298hy5glySAL8vkxlIEbCAPm6AfzNxm3E8xkrlVuUWy
	 gE26axTG+Gcbdm8E+zRwva7TlyCPEV9zulpd1nsM=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7CB863858D20
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7CB863858D20
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1758226635; cv=none;
 b=xUPrJXy/R5egsHEm26P1YpNZFZchvweHC17geau4zzgqWcDubZEx921RnKoCGJ9Y+HeoqjHrwza4xGGGjYY9+M/8ftloXQRzDp18noUd2Bzk4KQxZZ9OXHqihpmTHBoQoYrw0RhxTVS1R7Ij1/pfuT4BXbHGzc81C5MgkNhMuXQ=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1758226635; c=relaxed/simple;
 bh=CayHPjXvEmPJej8CRYtYmvw/gAaEBNQkRE/i6iQ6AQk=;
 h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature;
 b=xXGCQLSk5xMweweGoVWg1PjYQZzyXhZNe/J5yUwD1cym8w1E53mHHv3DO8Sx06AdKFLA5amyJHXj2vwUPuN472aN+YGYuKD2A1tQCoAC1ryJTC4LDydecV+FVyH3ef5e1b2IT1Gx1jzwdtHRO6nEwTJdsP+k7qfXozJLluQGomQ=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7CB863858D20
Message-ID: <6f388d6d-e0b1-46a6-a4fb-9f1e008345a7@SystematicSW.ab.ca>
Date: Thu, 18 Sep 2025 14:17:12 -0600
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bash hangs when executing a script with a here document larger
 than 64 KiB
Content-Language: en-CA
To: cygwin@cygwin.com
References: <6844953.4vTCxPXJkl@nimes>
Organization: Systematic Software
In-Reply-To: <6844953.4vTCxPXJkl@nimes>
X-Stat-Signature: mfdaycqrn16h57ban1986jehpu3uj14i
X-Rspamd-Server: rspamout03
X-Rspamd-Queue-Id: 769AA19
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX18k5ap+aQ3TDdTUhARRepwY1Pza0g66Cmk=
X-HE-Tag: 1758226633-738403
X-HE-Meta: U2FsdGVkX197suoFNx7FIhAqLNHkHaKTrnsE2sAjkHy/bmi0w4CBgafqt3lvgCGS1zVXNg2R/aQD4gpPmMcbuBfEazky3jpsfeI+wyzSmzTBYsWLzB5onYqEMgIDXwN31QcjQ+I3fZh46iUYkxB0qWTkBjsn6LcplUy/s7/wbOMzcGomCh1AT2dsXfWDIbAXbCDSBBGeYS0OS3CGQ4Xf/+m0V0BVGJ8bqMUdjmfCPNgGjp1rNFvWhOl5nhEtU4PxG/4p3metScrzLYuiKCrGLpRpwIy91b5J9bYZAaPdJH9bmno0aWn9ZXasQc0mCERBR+dp9Ndqq6KkzU+nl9z4vhUkOg2wvhbHk3gaPI8g5St1DDDOcU+/iSfbiL3ARAC9m0QuSkQJyKoT3gPsbFAm6V+1cMog1b7LvIUjSJjWEHc=
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Brian Inglis via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Brian Inglis <Brian.Inglis@SystematicSW.ab.ca>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 58IKHpJe2606769

On 2025-09-18 13:09, Bruno Haible via Cygwin wrote:
> Please, can you handle this bug report, specific to Cygwin?
> The GNU bash maintainer cannot reproduce it, as he doesn't use Cygwin.
> 
> https://lists.gnu.org/archive/html/bug-bash/2025-09/msg00186.html

Confirm it hangs in bash but not with dash/ash:

$ dash ./here-toobig.sh
here-toobig.sh: error: cannot find input file: 'Makefile.in'
$ grep -nC3 echo\ \'BEGIN here-toobig.sh
861-  ac_cs_awk_cr=$ac_cr
862-fi
863-
864:echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
865-cat >>"$ac_tmp/subs1.awk" <<\_ACAWK &&
866-S["gltests_libgnu_LIBOBJDEPS"]=""
867-S["gltests_libgnu_LTLIBOBJS"]=""
$ awk '866 <= FNR && FNR <= 2710' here-toobig.sh | wc -lwmcL
    1845    2041   65563   65563     177

and Cygwin works with 64KB "pages" and temp buffer sizes.

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

