delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/08/28/04:39:23

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 57F993858C2F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1693211961;
bh=x10kGlNKKHkl4ypeLSr9JdMIn5PGYELfx2LtR06Wyqg=;
h=Date:To:Cc:Subject:In-Reply-To:References:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=si9wKrHwchkB2LkdCyFcxdj1NleMYgsZLOkcpEVTxGyjkhyQ8XhX6VRHFSJ2dvInP
5QCOY3goT1zAg/idB/a/dxeeeMgaRyvn2dZX6tdTcEkfO4S9PkbQG7c3iBQc3WPjOo
R+B+JfHzwp1Ar2TMO1xg03TQ4N7RIl3oAJG9G48E=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 722543858D28
Date: Mon, 28 Aug 2023 17:38:28 +0900
To: cygwin AT cygwin DOT com
Cc: Ed Morton <mortoneccc AT comcast DOT net>
Subject: Re: Fwd: gawk core dumped on too many input values
Message-Id: <20230828173828.bfc011a1cf2b83f341335003@nifty.ne.jp>
In-Reply-To: <0b55205e-fc7c-98cf-c186-783e5c0655b0@comcast.net>
References: <e0fa509d-890a-2db7-c91f-2b1d904a9a1e AT comcast DOT net>
<0b55205e-fc7c-98cf-c186-783e5c0655b0 AT comcast DOT net>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00, BODY_8BITS,
KAM_DMARC_STATUS, KAM_SHORT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,
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-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: Takashi Yano via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
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 37S8dMW9030978

On Sun, 27 Aug 2023 13:24:55 -0500
Ed Morton 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)
> 
> Regards,
> 
>      Ed.
> 
> -------- Forwarded Message --------
> Subject: 	gawk core dumped on too many input values
> Date: 	Sun, 27 Aug 2023 08:09:54 -0500
> From: 	Ed Morton <mortoneccc AT comcast DOT net>
> To: 	bug-gawk AT gnu DOT org <bug-gawk AT gnu DOT org>
> 
> 
> 
> Configuration Information [Automatically generated, do not change]:
> Machine: x86_64
> OS: cygwin
> Compiler: gcc
> Compilation CFLAGS: -ggdb -O2 -pipe -Wall -Werror=format-security 
> -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong 
> --param=ssp-buffer-size=4 
> -fdebug-prefix-map=/cygdrive/d/a/scallywag/gawk/gawk-5.2.2-1.x86_64/build=/usr/src/debug/gawk-5.2.2-1 
> -fdebug-prefix-map=/cygdrive/d/a/scallywag/gawk/gawk-5.2.2-1.x86_64/src/gawk-5.2.2=/usr/src/debug/gawk-5.2.2-1 
> -DNDEBUG
> uname output: CYGWIN_NT-10.0-22621 TournaMart_2023 3.4.8-1.x86_64 
> 2023-08-17 17:02 UTC x86_64 Cygwin
> Machine Type: x86_64-pc-cygwin
> 
> Gawk Version: 5.2.2
> 
> Attestation 1:
>          I have read 
> https://www.gnu.org/software/gawk/manual/html_node/Bugs.html.
>          Yes
> 
> Attestation 2:
>          I have not modified the sources before building gawk.
>          True
> 
> Description:
>          I was trying to test something related to ARG_MAX when I ran the
>          awk script below and it core dumped instead of reporting an error
>          and exiting gracefully. In case it's useful getconf ARG_MAX outputs
>          32000.
> 
> Repeat-By:
>          $ LC_ALL=C awk 'BEGIN{print ARGC}' $(seq 1000000)
>          Segmentation fault (core dumped)

Thanks for the report.
I will submit a patch for this issue shortly.

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

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