Skip to content
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

taskwarrior plugin autocompletion produces segfault #2044

Closed
chmue opened this issue Aug 15, 2013 · 7 comments · Fixed by #3573
Closed

taskwarrior plugin autocompletion produces segfault #2044

chmue opened this issue Aug 15, 2013 · 7 comments · Fixed by #3573

Comments

@chmue
Copy link

chmue commented Aug 15, 2013

When I use the autocompletion function from the taskwarrior plugin (task [tabtab]) zsh crashes with a segmentation fault.

I am using zsh 5.0.2 (archlinux) and an up to date version oh-my-zsh.

If you need additional debug info, I am happy to help.

@xtaran
Copy link

xtaran commented Sep 16, 2013

While this may be caused by a broken taskwarrior completion (which definitely has some issues, i.e. error message if there are no tasks yet), this is definitely an issue in zsh. zsh must not segfault independent how weird or broken a tab completion function is. It also has nothing to do with oh-my-zsh as it happens without, too.

It though seems to happen only with a recently compiled zsh, so it may depend on the used compiler.

@pdvyas
Copy link

pdvyas commented Sep 30, 2013

@chmue Had the same issue with zsh 5.0.2 on archlinux. Adding a line with _task at the end of .zshrc keeps zsh from segfaulting on task [tabtab] and the completion also seems to work.

@xtaran
Copy link

xtaran commented Sep 30, 2013

By the way, the segfault has been fixed in the zsh git repository and will be part of the next zsh release.

@mcornella
Copy link
Member

Obsolete? The segfault might not happen again but the first completion is not triggered. Adding a _task statement at the end of the _task file will make it work, as @pdvyas suggested.
Pushed #3573 to fix.

@xtaran
Copy link

xtaran commented Feb 11, 2015

At least the segfault has been fixed in zsh in September 2013 in the commit zsh-users/zsh@844e569.

@chmue
Copy link
Author

chmue commented Feb 12, 2015

@mcornella Yes, as far as I am concerned the issue is obsolete. I'm using the fix @pdvyas suggested and it works very well for me. Sorry for never posting back.

@elliottw
Copy link

elliottw commented Sep 8, 2016

strange, i'm using ubuntu 14.4 zsh 5.0.2 and just installed oh-my-zsh and getting same error when tab completing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants