Rodrigo Batista de Moraes
Rodrigo Batista de Moraes
@xiantang your implementation of incremental selection does not crash? Do you know any reason why, or have you being using it for a long time without crashing? Or your implementation...
> There is some kind of race condition, that only happens if one calls node_incremental quick enough after the buffer has changed I think I sometimes reproduce the crash even...
@YosefBayoude I can confirm your repro works. Typing `qqddxujq@Q@Q@Q@Q@Q@Q@Q`, I could reproduce the crash very consistently, that on version ```NVIM v0.11.1 Build type: RelWithDebInfo LuaJIT 2.1.1741730670 Run "nvim -V1 -v"...
@clason If I remember correctly, neovim is passing a invalid pointer around, and it gets this invalid pointer after doing a heap-use-after-free. So I not surprise it is crashing inside...
On https://github.com/YosefBayoude/treesitter-neovim-bug/pull/1 I automate the repro. I was able to build a debug build of neovim on current master, and was able to reproduce the crash. ```gdb Thread 2.1 "nvim"...
On https://github.com/YosefBayoude/treesitter-neovim-bug/pull/2 I minimize the repro to: ```lua local timer = vim.loop.new_timer() local i = 0 local nodes = nil timer:start(100, 30, vim.schedule_wrap(function() if i == 0 then -- open...
I fully understand the crash, and I created a fix. I also futher minimize the repro on https://github.com/YosefBayoude/treesitter-neovim-bug/pull/3 to this: ```lua vim.opt.swapfile = false vim.api.nvim_command("filetype off") vim.api.nvim_command("filetype plugin off") vim.api.nvim_command("e!...
Later on, when debugging an application in GDB (using `rr replay`), I got the error below, which appears to have the same root cause. ``` [FATAL src/PerfCounters.cc:953:start() errno: EINVAL] ioctl(PERF_EVENT_IOC_PERIOD)...
I run the tests. I first I tried with no changes, but the first 500 or so tests all failed, so I canceled it. The second is with only the...
Run `ctest -j4 -VV`. Now 24 tests failed: [LastTestsFailed.log](https://github.com/user-attachments/files/17544885/LastTestsFailed.log) [LastTest.log](https://github.com/user-attachments/files/17544886/LastTest.log) [terminal-output.txt](https://github.com/user-attachments/files/17544903/terminal-output.txt)