Skip to content

Remove band-aid - opening a file in unception can cause a segfault in seemingly rare circumstances. #60

@samjwill

Description

@samjwill

The bug appears very inconsistently, and I've only been able to produce it on Arch Linux. I'm unsure if the error lies within Neovim core, Lazy, unception, or elsewhere. It seems to occur more frequently when more plugins are installed, regardless of what the plugins are. If only unception is installed, I simply cannot reproduce it.

I can fairly consistently get it to occur with this config.

I've only been able to get it to occur when g:unception_delete_replaced_buffer is set to true.

Steps to reproduce:

  • Install unception along with some other plugins (I don't believe it really matters what they are). The config provided above can be used (though be sure to open Neovim once regularly to ensure that all of the plugins are bootstrapped/installed).
  • Navigate to a directory in bash.
  • Create a file called test.txt by running:
    echo 'hi' > test.txt
    
  • Run the following command:
    nvim -c "terminal" -c "execute feedkeys(\"invim test.txt\<CR>\")"
    
    This simply opens a new terminal buffer, and tries to open test.txt from inside of it.
  • Observe segfault (occasionally).

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedThis issue is blocked by another issue.bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions