zsh-autocomplete: crash when press arrow up key
To reproduce, first, input something that doesn’t match anything in current folder , say, cd../bash;
or cd sdfdsfsf;
or nvim ssfs;
then press the arrow up key twice, the zsh crashes with the following message printed in the terminal.
free(): corrupted unsorted chunks
or
corrupted double-linked list
or
malloc(): unaligned tcache chunk detected
Warning: Program '/bin/zsh' crashed.
Normally the color of the text of the command changes and it won’t prompt anything.
I tried this on another machine with the same setup.
Konsole won’t crash it is stuck at loading
, I have to ctrl+c to stop it.
Environment
% typeset -p1 VENDOR OSTYPE ZSH_PATCHLEVEL _autocomplete__funcfiletrace
typeset VENDOR=pc typeset OSTYPE=linux-gnu typeset ZSH_PATCHLEVEL=zsh-5.9-0-g73d3173 typeset -a _autocomplete__funcfiletrace=( /usr/share/zsh/plugins/zsh-autocomplete/zsh-autocomplete.plugin.zsh:4 /usr/share/zsh/manjaro-zsh-prompt:6 /usr/share/zsh/manjaro-zsh-prompt:1 /home/mjan/.zshrc:9 zsh:0 )
- Terminal emulator: Konsole
.zshrc
# Use powerline
USE_POWERLINE="true"
# Source manjaro-zsh-configuration
if [[ -e /usr/share/zsh/manjaro-zsh-config ]]; then
source /usr/share/zsh/manjaro-zsh-config
fi
# Use manjaro zsh prompt
if [[ -e /usr/share/zsh/manjaro-zsh-prompt ]]; then
source /usr/share/zsh/manjaro-zsh-prompt
fi
About this issue
- Original URL
- State: open
- Created 9 months ago
- Reactions: 3
- Comments: 28
A simple solution that works for me. I did comment out lines 61 to 67 in the file
Completions/_autocomplete__history_lines
Nagranie ekranu z 2023-11-08 01-01-48.webm
Yes, I rolled back to the previous release (https://github.com/marlonrichert/zsh-autocomplete/releases/tag/23.05.24), and I no longer have the issue on both Linux and macOS.
Try to roll-back to 2023-05-24 release for now until it is fixed; I am not finding (for now) that problem in this version. I am concerned that you posted this 8 days ago and nobody even noticed, rolling-back apparently gets rid of this bug.
@joo920131 I see the same issue on my M1 machine with zsh 5.9 😕
I get similar issue like this where it just gets stuck 😭
https://github.com/marlonrichert/zsh-autocomplete/assets/42609860/2d23ac6a-ebfc-4acf-85f5-dd5fffef0856
Thanks @Luk9091 ! I think the history should be disable for now, this is breaking almost all my installation. Both macOS and Ubuntu
Same issue here. On a M2 and it causes a crash, with my CPU usages shooting up to 97% with zsh. The fan even came on!
Got the same issue yeah. I had to disable the plugin as it breaks my shell for now.