Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug: Searching through sufficiently large $historywords causes seg fault



On Mon, May 8, 2023 at 10:01 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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'.




Messages sorted by: Reverse Date, Date, Thread, Author