-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] zsh crashes when completing ffmpeg -i
with p10k as the theme
#176
Comments
I finally came across this after experimenting with my
This one doesn't make any difference for me, zsh still crashes.
Any of these work. |
I recently came across the problem of garbage printout with p10k like romkatv/powerlevel10k#1251. Removing |
Wouldn't removing that line manually cause problem with updates? Is there a better way to handle this issue perhaps? |
As a workaround, I use |
This happens for me for kinda every completion, even just
Removing |
seems to be fixed in zsh 5.9 |
Still crashes for me, and removing |
Same here, still crashes with 5.9 and this workaround is still valid. % zsh --version
zsh 5.9 (x86_64-pc-linux-gnu) |
I have debugged some core dumps generated by this segfault and observed the following behaviour the segfault is always triggered by this line next = PATNEXT(scan); This code is from
rn_offs = (scan->l >> 8);
if (rn_offs) {
if ((scan->l & 0xff) == 0x03) {
next = scan - rn_offs;
} else {
next = scan + rn_offs;
}
} else {
next = (void *)0;
} Segfault occurs at The above routing pattern-matched the output of
|
Indeed, spoke too soon. Sometimes, % ffmpeg -i<space> <TAB> doesn't result in |
Describe the bug
zsh crashes when completing
ffmpeg -i
with p10k as the themeThe code that causes the bug:
fzf-tab/fzf-tab.zsh
Line 102 in 78b4cef
https://github.com/romkatv/powerlevel10k/blob/7b0698debf56c80f4e805164537c6401cb88ab2e/internal/p10k.zsh#L3208-L3211
https://github.com/zsh-users/zsh/blob/ce0660b7ba283e3208db28a8763796816a587259/Completion/Unix/Command/_ffmpeg#L109
https://github.com/zsh-users/zsh/blob/ce0660b7ba283e3208db28a8763796816a587259/Completion/Base/Utility/_call_program#L32
COLUMNS=500
can fix this bugPOWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=false
can fix this bugeval $clocale
withexec
can fix this bugThe text was updated successfully, but these errors were encountered: