diff options
| author | rok <acadx0@gmail.com> | 2026-03-10 04:22:48 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-09 15:22:48 -0400 |
| commit | c4c2112b5d6bd094af23c8fe87ea7ed540eba4ac (patch) | |
| tree | 39eabdab2cfab5806fd26a80b4ec18e0924ec180 /runtime/syntax/python.vim | |
| parent | de4f4dc8075d9fa6ac9f44ca9602a806845b4138 (diff) | |
| download | rneovim-c4c2112b5d6bd094af23c8fe87ea7ed540eba4ac.tar.gz rneovim-c4c2112b5d6bd094af23c8fe87ea7ed540eba4ac.tar.bz2 rneovim-c4c2112b5d6bd094af23c8fe87ea7ed540eba4ac.zip | |
fix(runtimepath): crash in :packadd splice optimization #38129
Problem:
After #37722 splice optimization for :packadd, nvim crashes with SIGSEGV
on startup while running `runtime! lua/xxx/*` and sourced file executes
multiple `:packadd`.
Solution:
While `do_in_cached_path` is executing, it doesn't expect reference to
runtime_search_path changes. But when callback is called, and
add_pack_dir_to_rtp does 'splice' it may trigger realloc, and change
address. Check runtime_search_path_ref to prevent ref held by
do_in_cached_path changes.
Diffstat (limited to 'runtime/syntax/python.vim')
0 files changed, 0 insertions, 0 deletions