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=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16931 invoked from network); 26 May 2020 18:49:25 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 26 May 2020 18:49:25 -0000 Received: (qmail 19771 invoked by alias); 26 May 2020 18:49:15 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 45921 Received: (qmail 20129 invoked by uid 1010); 26 May 2020 18:49:15 -0000 X-Qmail-Scanner-Diagnostics: from wout3-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25821. spamassassin: 3.4.4. Clear:RC:0(64.147.123.19):SA:0(-2.6/5.0):. Processed in 4.315479 secs); 26 May 2020 18:49:15 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddvvddguddvhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkjghfofggtgfgsehtjedttdertddvnecuhfhrohhmpeffrghn ihgvlhcuufhhrghhrghfuceougdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgvqe enucggtffrrghtthgvrhhnpeefudetgeevhedvhfetveetvdduleduieejueduueejjedt teeutdejhfdtgfeiteenucfkphepjeelrddujeeirdefledrieelnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepugdrshesuggrnhhivghlrdhs hhgrhhgrfhdrnhgrmhgv X-ME-Proxy: Date: Tue, 26 May 2020 18:48:30 +0000 From: Daniel Shahaf To: Marlon Richert Cc: Zsh hackers list Subject: Re: Zsh crashes on `compadd` when using `_history` completer & zstyle `ignored-patterns` is set Message-ID: <20200526184830.4b52dd0c@tarpaulin.shahaf.local2> In-Reply-To: References: X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 '' $ yes | head -1001 > .zsh_history $ ZDOTDIR=$PWD $builddir/Src/zsh -d % bindkey -e % ]]] The terminal beeped and no crash happened. What's your $ZSH_VERSION and $ZSH_PATCHLEVEL?