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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28402 invoked from network); 9 May 2023 23:06:15 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 May 2023 23:06:15 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1683673575; b=afNtHY25hfW5ZLfjOrVsvnsg5SCZx6F/FHhehkv9r/bRfan8gQhNxdrCSlicw+x7TgMOP7xDln Ypy1gVBq1W/y9hKaE/7NWDUuE3Y2dc8cxXa8dJLd5W6vLsYdCL9pnFFsD3QEl8C74ExqdiFkEn ZXBzlW0PVClVavAi4SbcX23OhqT53D1yWK05vDIHakPttgzTA38EcemvdPwCnm1FhM7oseyGn1 SI3oaq3GIHq+4AYQng3vRGuYZlAJTQCFEBue/66VJjpYL1MXG1mxxqIH+1easLL1UvqfVlBZuP W0ye36LdpRf0PIncEYvT2RVm74Vw5ZrG62AZW+TCs9iXPQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f54.google.com) smtp.remote-ip=209.85.208.54; dkim=pass header.d=brasslantern-com.20221208.gappssmtp.com header.s=20221208 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1683673575; bh=7394iEOrWS1D+GJ7g1bUnasJ+mZWvpyVNVe0PobFr+o=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=Dm9JCDwJ0Y2XkyBAOtxjyWlrSe0bqQ04Qk4t4/Vi5+dD9TGWDiIJVEeel/Rcff6RvAmjMucTUh 2H6d4EDaxJbkEaBwA0phAl+E88+MPvznSrC6BCE3jegSCVlwtNBfQdb3qI8uu9k2SGiB/tTVnX GhXDXxqMEv6vmWAIyIS3XAAXF+GHBB7jk9gsS4W3YEuNLg6IAIWD5Rcgj3xtmWNiOsfF/jzwjI x97HaCv+5hqpe/I4hscZqiliMLIQU24X88yaXcVDo4iam/8LEysZJ/1n/aKblg+9JcvObPcgQ7 uY8Zfhas5kB1Wss+cyon+4OLAAqZEVVdJMk4Y8QOX44JGA==; 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: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=II1hStHQ5Ccby0FIR6vqtrUVLzA5w8Q9wNLDGdtOhwo=; b=qrwbKwwPM2eMwlBSu6FvmlnIk/ OvV9Xb1WpCKp2IvAC6dfOj/a8x90lUL4JQOynFir342fO4DyS3oMLBklUcZECAYh+ni2lBuMgMAMi Q1H+ROg/8LdKlfoV9u4yH6/1WotJL6uLHFyMpUqqzcXkAYVJWnhfJislUAEIuoyEqP51rBNB0wjKD xXgVzMx49LcqtCkANG18/iq03IBmUqilmLfm4nxGfkSH0SN3ZQolJtEr1eT2AiFxvYNEtnKT9sty9 j9ICz26YuujCsMepaePtnAdA/TBRgHNXflnLVqa8tJwx1jLuEnb5Cjzhh++pq6wE7UvWunnSgEauN PUI/uNug==; Received: by zero.zsh.org with local id 1pwWPN-000IWv-I9; Tue, 09 May 2023 23:06:13 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f54.google.com) smtp.remote-ip=209.85.208.54; dkim=pass header.d=brasslantern-com.20221208.gappssmtp.com header.s=20221208 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ed1-f54.google.com ([209.85.208.54]:62865) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pwWOp-000IDm-8u; Tue, 09 May 2023 23:05:40 +0000 Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-50bd2d7ba74so63508476a12.1 for ; Tue, 09 May 2023 16:05:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20221208.gappssmtp.com; s=20221208; t=1683673538; x=1686265538; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=II1hStHQ5Ccby0FIR6vqtrUVLzA5w8Q9wNLDGdtOhwo=; b=5bIZWJGRXhUoRVIaSnqvhv4Ngr3tEoyDpNalnhhfwLtaqfTXdrRq4mbPVjSgulZW1f /TCrXW3f7FV8NJi7VuaGDku5YMoZd4HBzHGvS+x8byJOhJwWBeZmO9ZOTErjzMWUx9Mu vsELh7tKNKwjmx5lQJ7Tg8+5XVmK4VDeHsCAikyaDl41MhTvFhEKRMqpe+3PPSc8jxn6 4zkNSEJgTpEttZPqwubj5BsC9X3v4DX6SzWYr/NhrPclk+ac+mrw1SesTUU5Os4rC6DM 93wUFZJqLNAVgDymhxS56A3fRw0FZyeAJSozgH81TQ2XhMkhmwpEhCXZummggqX0nmmr KJ9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683673538; x=1686265538; h=content-transfer-encoding:cc: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=II1hStHQ5Ccby0FIR6vqtrUVLzA5w8Q9wNLDGdtOhwo=; b=OiheH2ApSorpN0SejqRN397WCEFW5GLa24fGx6Eg8wHige8c/GK6+4NwBNwO8Qf1gE ZlrxZMUXeZTovksTj+kDv/FIrZNy9Erb8hM4+Aa2I4fZvsaz9XfuN2EF7PScZsPFLfPO L65msV2Eo4t05nrjjVYq9osDVxb9UJcHDsL5Fn224JYo8WFhkpEotn6NuesA1YXXOOpb wHprUrAaCzDeh/ZZ1H6yVBlmHsoddlZyZCNSQGLanwax870OjunfUEKdcIBFRN6NUvXf 5A+gOEouZj0dEUIbE6yak9UVHKXq5z/ZYzLPrGJ92gX79FzDApmwRM1aoKc1k6fWz1KK SXgw== X-Gm-Message-State: AC+VfDzU/ESJu/uKY9SaxhCDXDGelxLFw7gsROnAArp6he6mQBIK0iux P6xeDDFVTGpppWhEc2OAVjhS0Qh6D5HPX5y6NSkg2g== X-Google-Smtp-Source: ACHHUZ49Fk4LcJizi0l+hjQx0uuAokGOFKbUwM6z2VPzIWBCgODRnVmKWOtMsmpFIQf0WTcrO3oSAXxViZfvbo1hYSg= X-Received: by 2002:a17:907:3d89:b0:94e:4285:390c with SMTP id he9-20020a1709073d8900b0094e4285390cmr14303859ejc.10.1683673538612; Tue, 09 May 2023 16:05:38 -0700 (PDT) MIME-Version: 1.0 References: <76e1d7d098d80e2c8bb9746ba964a0fbd41cc140.camel@ntlworld.com> In-Reply-To: <76e1d7d098d80e2c8bb9746ba964a0fbd41cc140.camel@ntlworld.com> From: Bart Schaefer Date: Tue, 9 May 2023 16:05:27 -0700 Message-ID: Subject: Re: Bug: Searching through sufficiently large $historywords causes seg fault To: Peter Stephenson Cc: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 51736 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, May 9, 2023 at 12:01=E2=80=AFPM Peter Stephenson wrote: > > On Tue, 2023-05-09 at 09:58 -0700, Bart Schaefer wrote: > > > > 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. It's fine that an event is missing from historywords? Doesn't that mean that we've just skipped over the problem code rather than figure out why it's wrong?