Closed r7vme closed 3 years ago
Thanks for the report, i have 3 questions.
Q1. Do you have the same crash with a nightly build of Neovim ?
Q2. Your minimal vimrc includes a bunch of plugins like NerdTree etc. Could you please remove them and tell me if you still observe the crash? If so, please provide the new minimal vimrc.
Q3. What does you coc-settings.json look like as far as the excludes are concerned?
@antoinemadec
Q1. Do you have the same crash with a nightly build of Neovim ?
Checking, post update later
Q2. Your minimal vimrc includes a bunch of plugins like NerdTree etc. Could you please remove them and tell me if you still observe the crash? If so, please provide the new minimal vimrc.
Yes, I can observe same w/
call plug#begin('~/.config/nvim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'master', 'do': 'yarn install --frozen-lockfile'}
Plug 'junegunn/fzf.vim'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'antoinemadec/coc-fzf', {'branch': 'release'}
call plug#end()
Q3. What does you coc-settings.json look like as far as the excludes are concerned?
cat .config/nvim/coc-settings.json { "coc.preferences.extensionUpdateCheck": "weekly", "diagnostic.refreshOnInsertMode": true, "markdownlint.onChange": false }
@antoinemadec I see same error w/ nightly neovim
nvim --version
NVIM v0.6.0-dev+566-g4174244d8
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/gcc-11 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/runner/work/neovim/neovim/build/config -I/home/runner/work/neovim/neovim/src -I/home/runner/work/neovim/neovim/.deps/usr/include -I/usr/include -I/home/runner/work/neovim/neovim/build/src/nvim/auto -I/home/runner/work/neovim/neovim/build/include
Compiled by runner@fv-az68-184
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/share/nvim"
Run :checkhealth for more info
I'm seeing the same crash. Should this be reported on neovim repo though?
Thanks for the workaround @r7vme, this crash is quite annoying.
@r7vme @weirdan , nvim should never crash, that's for sure.
However, I really don't trust some of the code that I added in 2d9deb2. For instance, this:
symbol_excludes = eval(args.symbol_excludes)
If the crash comes from there, maybe a brutal try except
could fix this ?
I will try to reproduce and work around this bug this weekend.
@r7vme @weirdan this was definitely a super weird issue with neovim. Do you think one of you could create an issue on the neovim repo?
I'm sure they would ask for a minimal reproducer that I won't be able to come up with.
No pb, I will take care of it then. Thanks anyway for the precise reporting and for finding the commit causing the regression!
@antoinemadec appreciate that and thanks for the plugin
Environment
echo $FZF_DEFAULT_OPTS
: ""bat --version
: bat 0.18.3(n)vim --version
:Features: +acl +iconv +tui See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/share/nvim"
Run :checkhealth for more info
call plug#begin('~/.config/nvim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'master', 'do': 'yarn install --frozen-lockfile'}
Plug 'junegunn/fzf.vim'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'antoinemadec/coc-fzf', {'branch': 'release'}
call plug#end()
CocFzfList symbols
then enterCocFzfList symbols
then enterfree(): double free detected in tcache 2 [1] <PID> abort (core dumped) nvim 1.cpp
Expected Behavior
No crashes on
CocFzfList symbols
More info
I use Arch linux, but I also see exactly the same behavior in Ubuntu 18.04 based docker environments. I also tried different clangd versions, but seems it's not related to clangd
Coredump for one of the crashes