From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19358 invoked from network); 9 May 2023 19:01:54 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 May 2023 19:01:54 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1683658914; b=nx3h+gKIRGdjeEjXNxIgqBaW0COVZLywnpWUkdnZWjOOE+xsDFNZKI7n0lfV2hPTGlbLbmrrcM EamI0itS05nOju8yReVKgEN871ImpLJYX0nLrtGIHIG4GoVtXSLNGy0XZ0ApXHhTbCGHe8al3V NATR+0syPamxfp49osh8fW2Hv29hQge5iG+XNYRfRjTkYiYDfqlG+SYiPM48+CuQ2+EuAPEOwI E0++YB2Ii4bv/y0b3pxHJdlFFnurcUb8Y4Sdg8S+0QhQbbnFMLO7afyxiQRE3Tj0zIi6nWuquh HM0psAwaTp/+CSjohe4U5DgHT0IoPBGA/f3PvILfzDpatg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1683658914; bh=/Jp4mkSADkjt3eLNl2/2Zz7sLivWRI3qL5pPQpJYFiU=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:MIME-Version:Content-Type: References:In-Reply-To:Date:To:From:Subject:Message-ID:DKIM-Signature: DKIM-Signature; b=E+ebjPPwRc3eMf8Sn/4lZQSYvU38SA1Qe6g6pKt3UWzF2/e4xg9L6gi57geUGM9X6SFKv9Q82A D3J/EhZxwMSpxAH/VMsNhP0/UpX+2FYs2QuQyF+YJuVxcriOrcE+cLpiNZzvrC7i3GDLEredSw vY/khd/b1JR6cAEXT10rhrmNe11BKzxsBhPOmN4RTuc61lDsqPSFip17rWm28KwJVnaxR5sDQy Utrk0i7Cn03v1xuGxjYBXGDha3uMuz/isj33dKehIDRvrjqcSPFKqHFZz9ruZP4pSIcbCCCFrH k0xIUvOnhv1GpbLLBWuzlXCLRoffFOQsiYmqwIfY2kYIOw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: MIME-Version:Content-Type:References:In-Reply-To:Date:To:From:Subject: Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=R7vWQIiNS/9qIXhllNKyZqrAgOCG9GOEl75OpWoMGJk=; b=soaSI7yqyy036VG5UjbgqAwajq QJuS0migvmSEZy/iklxGPVx68QWx/H7Tms5Cbv15Ze7Y7EqAW0rcMaTLOUvuZ1L/lwTnQVlC2f2G2 GgirE8v68Dl3ZPgjAp3fae0pk3B0bpADxsMxq/W/6agfZ0MXwEc2EUoWYJv/kLFvoliuxi3teQKRh jUWGxzC469OQrOXYJpDrd5MxzuuIuVfrIIQkrEHrSQopSQMXZ8ILmM4A5rhi1F5qCTB4b/WMTcHDK MAV5J4fqqYBl8zAVS1b9Tuvo2nLfLbfdjQTKTJ7P/ci0vNpzhd3g4ga3iuIA4ORV74tzoifo7BNs4 3I4xfvHg==; Received: by zero.zsh.org with local id 1pwSav-000CEZ-Pb; Tue, 09 May 2023 19:01:53 +0000 Authentication-Results: zsh.org; iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from smtpq2.tb.ukmail.iss.as9143.net ([212.54.57.97]:46728) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1pwSaf-000BvY-6A; Tue, 09 May 2023 19:01:38 +0000 Received: from [212.54.57.109] (helo=csmtp5.tb.ukmail.iss.as9143.net) by smtpq2.tb.ukmail.iss.as9143.net with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwSae-0003fN-Q9 for zsh-workers@zsh.org; Tue, 09 May 2023 21:01:36 +0200 Received: from pws-Zeus ([82.1.229.179]) by cmsmtp with ESMTPA id wSaepIK69GE6lwSaepXlNl; Tue, 09 May 2023 21:01:36 +0200 X-SourceIP: 82.1.229.179 X-Authenticated-Sender: p.w.stephenson@ntlworld.com X-Spam: 0 X-Authority: v=2.4 cv=PtFVLSA3 c=1 sm=1 tr=0 ts=645a9890 cx=a_exe a=W4rGJ7PGCSRRUvufKHO8Dg==:117 a=W4rGJ7PGCSRRUvufKHO8Dg==:17 a=IkcTkHD0fZMA:10 a=P0xRbXHiH_UA:10 a=q2GGsy2AAAAA:8 a=JYpXJrC7jDCOMzKVP8YA:9 a=QEXdDO2ut3YA:10 a=zZCYzV9kfG8A:10 a=z9dJwno5l634igLiVhy-:22 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1683658896; bh=R7vWQIiNS/9qIXhllNKyZqrAgOCG9GOEl75OpWoMGJk=; h=Subject:From:To:Date:In-Reply-To:References; b=zL++IUa3d+fokV3ELYRhe0tpK8XPyVcFB9NtO/9N/X0CCG1Z9dQ2YRpg2PD6FNIvr fsUWuu989soFGK2UpTOVctwNgaw3aNFDoADwcctDHTeXYASzha28S3aMSh6Mi7+n0P n0JusXfy+91NuEViyTvtITHu8bd6soo3soNGlbiEkrNZR/6JwwD908SocB52gCDPxa xu+FBMTfQMNPBa/NIJGEOTcwCpStOp37mGxZgVhFEB73BK1nsHGJ+b+bA8i0jxck0u zC87dGP0ELN0B/UjaXtElsMKegaRiuvYU1MNS3wn3buAcrCDyzDZ93ujwa9W4epPaK kgtZPAWlsXEOA== Message-ID: <76e1d7d098d80e2c8bb9746ba964a0fbd41cc140.camel@ntlworld.com> Subject: Re: Bug: Searching through sufficiently large $historywords causes seg fault From: Peter Stephenson To: zsh-workers@zsh.org Date: Tue, 09 May 2023 20:01:36 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfGYXBFdEvIsPQ5Ekf13dpxT5vyuMbbQLIDu3D0RwDQz6xPvimbBOb1pyxJjNpwzkOHot8hlfcI8cDsbY7YAzsGv6qNmgK5W9t+DNKr4P2ubP1i5COo5y kyqLiK4qeb7ox6g7a7jcwTLUcyDl0lbxRsGS9CzqApLfCjKV1V6032fUgj6vNjftiLdhaGwTXNWG6A== X-Seq: 51735 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Tue, 2023-05-09 at 09:58 -0700, Bart Schaefer wrote: > On Tue, May 9, 2023 at 9:53 AM Bart Schaefer wrote: > > With 51722, $#historywords is incorrect (returns "51" where it should > > be about 100,000) and I eventually get a segfault after scrolling back > > through the history past the event that was added with "print -S'. > > Scratch that ... I had not correctly recompiled. After correctly > recompiling, I can't reproduce the segmentation fault at all with > 51722, but the event added with "print -S" is entirely missing from > $historywords even though it is found when scrolling the history. That sounds fine --- it's the division into words, not the line, that's causing the problems which this avoids. In this case it's presumably the original word counting, not the re-spliting on reading a history file, that's causing the underlying bad numbers. pws