zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Marlon Richert <marlon.richert@gmail.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Zsh crashes on `compadd` when using `_history` completer & zstyle `ignored-patterns` is set
Date: Tue, 26 May 2020 18:48:30 +0000	[thread overview]
Message-ID: <20200526184830.4b52dd0c@tarpaulin.shahaf.local2> (raw)
In-Reply-To: <CAHLkEDtGT89iRnbe+VDbBdMU1LqDY0Z=BCbH9Qqhgv2+XrKJJw@mail.gmail.com>

Marlon Richert wrote on Mon, 25 May 2020 14:02 +0300:
> *Given*
> 
>    - A .zshrc file containing the following lines:
> 
> HISTFILE=${ZDOTDIR:-$HOME}/.zsh_history
> HISTSIZE=2000
> SAVEHIST=1000
> autoload -Uz compinit
> compinit
> zstyle ':completion:*' ignored-patterns ''
> 
> 
>    - A `${ZDOTDIR:-$HOME}/.zsh_history` file that contains >1000 lines of
>    history.
> 
> *When*
> 
>    1. I start a new shell with `zsh -dxv &>! ~/zsh-debug.log`
>    2. I press `^[/` to activate `_history-complete-older` (or anything else
>    that uses the `_history` completer).
> 
> *Then*
> 
>    - Zsh crashes with the message `zsh: segmentation fault`.
>    - `~/zsh-debug.log` ends in the following lines:
> 

I followed these steps as follows:

[[[
$ cd "$(mktemp -d)"
$ tee .zshrc
HISTFILE=${ZDOTDIR:-$HOME}/.zsh_history
HISTSIZE=2000
SAVEHIST=1000
autoload -Uz compinit
compinit
zstyle ':completion:*' ignored-patterns ''
<pressed Ctrl+D>
$ yes | head -1001 > .zsh_history 
$ ZDOTDIR=$PWD $builddir/Src/zsh -d
% bindkey -e
% <pressed M-/>
]]]

The terminal beeped and no crash happened.

What's your $ZSH_VERSION and $ZSH_PATCHLEVEL?

  reply	other threads:[~2020-05-26 18:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-25 11:02 Marlon Richert
2020-05-26 18:48 ` Daniel Shahaf [this message]
2020-05-28  7:49   ` Marlon Richert
2020-05-28  8:44     ` Daniel Shahaf
2020-06-04 21:31       ` Marlon Richert
2020-06-05  1:42         ` Daniel Shahaf

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=20200526184830.4b52dd0c@tarpaulin.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --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).