From: Bart Schaefer <schaefer@brasslantern.com>
To: Marlon Richert <marlon.richert@gmail.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Bug: Searching through sufficiently large $historywords causes seg fault
Date: Tue, 9 May 2023 09:53:12 -0700 [thread overview]
Message-ID: <CAH+w=7anXXUsEJmNkUP=hSSU=MKGKuv+F7m2XA1qUYhqWsxc_g@mail.gmail.com> (raw)
In-Reply-To: <CAH+w=7bp9hix9trxDq1PsHfRuq=nM9LQarrmzkg4j4uDwq+UDA@mail.gmail.com>
On Mon, May 8, 2023 at 10:01 AM Bart Schaefer <schaefer@brasslantern.com> wrote:
>
> Does PWS's patch from https://zsh.org/workers/51722 make any difference?
To attempt to answer my own question:
I don't get the segfault on $historywords[(r)foo] in either case
(without, or with, 51722). However, after [(r)foo] in the "without"
case I get an immediate segfault attempting $#historywords.
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'.
next prev parent reply other threads:[~2023-05-09 16:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-08 8:58 Marlon Richert
2023-05-08 17:01 ` Bart Schaefer
2023-05-09 16:53 ` Bart Schaefer [this message]
2023-05-09 16:58 ` Bart Schaefer
2023-05-09 19:01 ` Peter Stephenson
2023-05-09 23:05 ` Bart Schaefer
2023-05-10 8:39 ` Peter Stephenson
2023-05-12 9:28 ` Peter Stephenson
2023-05-12 16:12 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH+w=7anXXUsEJmNkUP=hSSU=MKGKuv+F7m2XA1qUYhqWsxc_g@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=marlon.richert@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).