It's been several times I encounter this crash.
First I type 'll' but instead of validating with <Enter>, I type '\' by mistake (cause the touch is just above). Then I type <Enter>. Zsh thinks it's a multiline command, so it displays the '>' prompt. Here, I notice my mistake so I interrupt the command with <C-c>. Finally I properly type 'll' followed by <Enter> and it crashes...
Here is a log:
prompt % ll\
> (<- here you must enter C-c)
prompt % ll
Warning: Program '/bin/zsh' crashed.
Info: my term emulator is Konsole, on ArchLinux.
Duplicate of 3362789
Which version of zsh do you have? (echo $ZSH_VERSION)
Which options? (setopt)
% echo $ZSH_VERSION
4.3.12
% setopt
autocd
noautomenu
nobeep
completeinword
nohistbeep
histexpiredupsfirst
histfindnodups
histignoredups
incappendhistory
interactive
interactivecomments
nolistambiguous
nolistbeep
monitor
promptsubst
shinstdin
zle
Oh i found it!
Nothing to do with the options, this bug only appears with an alias.
Launch zsh -f so zsh doesn't read your .zshrc, it starts clean like a new-born baby.
The bug is not present.
Type alias ll=ls
Then, trying ll\ will crash zsh
Trying with an other command will not crash.
Setting an other alias and trying with it will crash zsh.
Here is a workaround:
setopt SUN_KEYBOARD_HACK
export KEYBOARD_HACK='\'
so if the last character is a \, it will be dismissed.
Could be boring if you want to continue a newline, you have to enter two \.