delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/08/28/07:47:51

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3485C3858414
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1693223270;
bh=iS8cMtHB7f+lmDXHLY/M0tXRz3gkxfDD3DzL9S5SLG4=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=yxDufnjN+BInKjK3iB6RgcA1vW8wAqm42MtX27KrilOUOS8w6k+TXH22fEIoHY33G
c2+GQRq8VVF3oxHZJ3PGJM/5jtyeTeQ1NtEwXK58T4sIlLVRy79lg7PY5lF+jSy8K1
UEhkz70BwtM2mHIoaGcUoOZ9LYITUbqGmblPQz4c=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E9FAD38582A1
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20221208; t=1693223230; x=1693828030;
h=content-transfer-encoding:to:subject:message-id:date:from
:in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=DP2GFQ4+K4XIqJSXws8z42qYc0fvKPObgKAagX71Qs4=;
b=Y5iFYGaX7W2nZPBRa6xD5N6bRKizWkVx7eKyCy8bMMYXMr/TteJoNCJU7GgT2Kh3GT
xQovXfrNQm/H/CKPw04NdrL3XBYOEjhx6ahB8StzxMwGyit7RmIw/dtL9Jl/1w3EB6k5
O1CjtKLreRvgTImRV9Wl4FfHQR+uzzMDVqny1h6x+5KlcWlEk3edG5QmRa9/EnNZ6h8x
rxBfOTHdSS2Xo+Fn13FyrxhuWuvXqDZCw8JrH7W71sDH2RAltXyzHI/q91W6qYbKq9mb
y8K0TSO0/2kLdSgsQ6yxUUnKvxOOAB8wUYEBLh5GAYhPtvWkW88QmQV2kI/J0P9Pn0uJ
OXLg==
X-Gm-Message-State: AOJu0Yw6arqqHzKqifL5AGW1Ytjr+H9+/I2a+HB32arhYXnao4d61Wi3
GcewlryWgppJmR9rKchKgdjqJ/wjgHvYmQvTfFJQQ/6MhNo=
X-Google-Smtp-Source: AGHT+IFapeRYMTEalVbZrHOBN0/rRA/F6ieSgXf3tFAVQWm3Wa6ZoIfSE+962NAzKnyekfsgpKiftgnpqo6LhHsL1uQ=
X-Received: by 2002:a05:6870:9722:b0:1a9:f6ba:138a with SMTP id
n34-20020a056870972200b001a9f6ba138amr5761877oaq.0.1693223230372; Mon, 28 Aug
2023 04:47:10 -0700 (PDT)
MIME-Version: 1.0
References: <e0fa509d-890a-2db7-c91f-2b1d904a9a1e AT comcast DOT net>
<0b55205e-fc7c-98cf-c186-783e5c0655b0 AT comcast DOT net>
<CAOh4nm=yYKtBWhWOwW9rUxu3y8vFOgRA+rW-tTzq-=q63OL_0A AT mail DOT gmail DOT com>
In-Reply-To: <CAOh4nm=yYKtBWhWOwW9rUxu3y8vFOgRA+rW-tTzq-=q63OL_0A@mail.gmail.com>
Date: Mon, 28 Aug 2023 13:47:00 +0200
Message-ID: <CAEEMktOg5iA-6Q+14ZqgKf_DpjRkjmAyjsuJFDxWie_sjBJLQQ@mail.gmail.com>
Subject: Re: gawk core dumped on too many input values
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
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: Joshuah Hurst via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Joshuah Hurst <joshhurst AT gmail 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 37SBlore017490

On Mon, Aug 28, 2023 at 1:08 AM Jeremy Hetzler via Cygwin
<cygwin AT cygwin DOT com> wrote:
>
> On Sun, Aug 27, 2023 at 2:25 PM Ed Morton via Cygwin <cygwin AT cygwin DOT com>
> wrote:
> >
> > This (original email below) turned out to be a general cygwin issue, not
> > a gawk issue:
> >
> > $ LC_ALL=C sed 's/x/y/' $(seq 1000000)
> > Segmentation fault (core dumped)
> >
> > $ LC_ALL=C grep 'foo' $(seq 1000000)
> > Segmentation fault (core dumped)
> >
>
> Seems that all commands linked with cygwin1.dll will fault if you pass them
> a long enough arglist.
>
> For me, /bin/true faults on {1..258231} but not {1..258230}.
>
> > $ /bin/true {1..258230}
> >
>
>
> > $ /bin/true {1..258231}
> > Segmentation fault (core dumped)
>
>
> strace, which is not linked with cygwin1.dll, exits cleanly.
>
> > $ /bin/strace {1..300000}
> > -bash: /bin/strace: Argument list too long
>
>
> See this page [1] on maximum argument lengths.
>
> It would be nice to document this limit, whatever it is.

Is this limit?

$ getconf -a | grep -E 'ARG_MAX'
_POSIX_ARG_MAX                      4096
ARG_MAX                             32000

>
> It would also be nice to return an error to the shell on too-long arglist.

+1
-- 
Josh

-- 
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 © 2019   by DJ Delorie     Updated Jul 2019