main/zsh: segfaults when using zle-line-init in .zshrc
This bug reported yuyichao on GitHub here. I’ve reproduced it on x86_64, not sure if other archs are affected.
I’ve also tried that on Gentoo Hardened with the same zsh version and
.zshrc
file and it does not segfault here.
How to reproduce:
-
apk add zsh
-
Create file
~/.zshrc
with:__yyc_zle_init_func() { zle -D zle-line-init }
zle -N __yyc_zle_init_func zle -A __yyc_zle_init_func zle-line-init zle -D __yyc_zle_init_func
-
Start
zsh
and type any letter (e.g.l
), you’ll getSegmentation fault
. It’s interesting that it doesn’t segfault when you first press Enter and then type anything.
(from redmine: issue id 5699, created on 2016-06-09, closed on 2016-11-03)