-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
neovim/neovim
#17688Description
Steps to reproduce
(Steps here using docker to ensure maximum reproducibility):
docker run -it --rm alpine:3.15
apk add alpine-sdk xxd ncurses-dev lua5.3-dev python3-dev gtk+3.0-dev libx11-dev libxt-dev
cd ~
git clone --depth=1 https://github.com/vim/vim -b v8.2.3584
cd vim/
./configure --prefix=/usr --enable-luainterp --enable-python3interp=dynamic --without-x --disable-nls --enable-multibyte --enable-gui=no --with-lua-prefix=/usr/lua5.3
make -j$(nproc)
make install
cd /usr/share/vim
curl -o vimrc https://tpaste.us/ovJr
vim /etc/
(Or any directory)
Expected behaviour
No segfault.
Operating system
Alpine Linux v3.15, Docker Image
Version of Vim
Started happening after v8.2.3584
, still happens on master
(v8.2.3770
at time of reporting). Installed package versions: https://tpaste.us/jNgm
Logs and stack traces
Notes:
- Segfault happens when there are 3 or more user defined commands anywhere in the vim initialisation procedure (even in plugins) any you open
netrw
. (Commenting out any one of the user defined commands in the example vimrc prevents the segfault from happening). - Segfault doesn't happen if running
vim -u /usr/share/vim/vimrc /etc/
, even though that's the default vimrc. - Segfault doesn't happen if
~/.vimrc
exists (can be completely empty) - According to GDB, the segfault happens in
Line 1778 in 58ef8a3
if ((cmd->uc_argt & EX_KEEPSCRIPT) == 0) v8.2.3584
). - The segfault doesn't happen on Debian (with compiling the problematic version)
Metadata
Metadata
Assignees
Labels
No labels