-
Notifications
You must be signed in to change notification settings - Fork 48
Description
Hello,
There seems to be a memory corruption happening when processing the highlights queries (https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/haskell/highlights.scm) on ARM Linux.
It's been very tricky to debug the failure because Neovim doesn't actually crash, but just exits without displaying any errors... I did manage to record a screen cast where for a split second nvim displays malloc() mismatching next->prev_size (unsorted). Here's a minimal nvim reproducer config with no plugins:
├── init.lua
├── parser
│ └── haskell.so -> /nix/store/5k1xmynyycfc0qrk9r0fzkhd3w2qfqx2-haskell-grammar-0.0.0+rev=0975ef7/parser
└── queries
└── haskell
└── highlights.scm
-- init.lua
vim.api.nvim_create_autocmd("FileType", {
callback = function()
pcall(vim.treesitter.start)
end
})
highlights.scm is from https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/haskell/highlights.scm and haskell.so is symlinked to $(nix build --print-out-paths --no-link nixpkgs#vimPlugins.nvim-treesitter.builtGrammars.haskell)/parser.
I'd be happy to provide additional information if necessary, but I'm at a bit of a loss on how to debug this issue.