-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
cmdheight=0: NULL dereference in grid_del_lines() #29373
Comments
Can you reproduce this using a Debug build and provide a backtrace with line numbers? |
I cannot reproduce this crash with Nvim 0.10.0 and busted 2.2.0 on Arch Linux:
|
Interestingly I can't reproduce it with a debug version of 0.10.0 built from nixpkgs unstable:
I tested with neovim from 24.05, which is 0.9.5, and it also doesn't repro. Then I remembered the neovim binary I use on my system is built using nixvim, so is actually passing in additional commands in a wrapper, which is including my whole init script (which I was trying to avoid with the busted tests, so happy this bug made me realize lol): the wrapper is adding:
So that's gonna make a simple repro a bit harder, but I'll take a look afterwards.
Crash is on |
Hmm, I think this is as simple as this: printf 'vim.o.cmdheight = 0\nprint("foo")\n' | nvim --clean -l - |
Yep that does it. |
Problem
I'm trying to setup some lua tests for a neovim plugin following this.
This resulted in me running into a NULL pointer deref:
There has been at least 2 different cases where this function has had crashes in the past maybe #20316 and #10031, but they are both pre 0.10.0.
There is one other open issue #22278 that has
grid_del_lines
in the stacktrace, but is not the same issue as it's not the crashing function.Steps to reproduce
I'm running
busted --run unit
with the following setup:If I have
print("foo")
in the abovebuffer_selection_spec.lua
file:If I comment out the print:
Expected behavior
Don't crash.
Neovim version (nvim -v)
❯ /home/aa/.nix-profile/bin/nvim --version NVIM v0.10.0 Build type: Release LuaJIT 2.1.1693350652
Vim (not Nvim) behaves the same?
don't know, not sure how to reproduce given my repro relies on lua test
Operating system/version
nixos 24.05
Terminal name/version
wezterm
$TERM environment variable
xterm-256color
Installation
nixpkgs
The text was updated successfully, but these errors were encountered: