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

[BUG] Crash when opening completion menu when zsh-autocomplete is also enabled #482

Open
5 tasks done
robbins opened this issue Oct 29, 2024 · 0 comments
Open
5 tasks done
Labels
bug Something isn't working zsh Zsh bug

Comments

@robbins
Copy link

robbins commented Oct 29, 2024

Describe the bug

The completion menu crashes with free() invalid pointer or munmap_chunk(): invalid pointer when zsh-autocomplete is also installed. Not sure if I should post this here or as an issue in zsh-autocomplete.

I can make sure:

  • I am using the latest version of fzf-tab
  • this is the minimal zshrc which can reproduce this bug
  • fzf-tab is loaded after compinit
  • fzf-tab is loaded after plugins which will wrap Tab, like junegunn/fzf/completion.zsh
  • fzf-tab is loaded before zsh-autosuggestions, zsh-syntax-highlighting and fast-syntax-highlighting.

To Reproduce

Steps to reproduce the behavior:

  1. Put the contents of the minimal RC into a file named testrc
  2. Type 'zsh -df'
  3. Type 'source testrc'
  4. Type 'ls -'
  5. Press Tab
  6. Crash

Expected behavior

The completion menu should show up

Screenshots

If applicable, add screenshots to help explain your problem.

Environment:

  • OS: NixOS
  • zsh version: zsh 5.9 (x86_64-pc-linux-gnu)

Minimal zshrc

If applicable, add a minimal zshrc to help us analyze.

autoload -U compinit && compinit
source /nix/store/yvyb79p70gq77afpzk5f7p3sap05h75q-zsh-autocomplete-24.09.04/share/zsh-autocomplete/zsh-autocomplete.plugin.zsh
source /nix/store/xa0a62nkhaibza8plgs7xs0da83wqmma-zsh-fzf-tab-1.1.2/share/fzf-tab/fzf-tab.plugin.zsh

Log

If applicable, use C-x . to trigger completion and provide the log.

If there are only three lines in your log, please make sure your fzf-tab is loaded with the correct order (see the checklist above).

@robbins robbins added the bug Something isn't working label Oct 29, 2024
@Aloxaf Aloxaf added the zsh Zsh bug label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working zsh Zsh bug
Projects
None yet
Development

No branches or pull requests

2 participants