aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/range.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2026-08-18 11:38:52 -0400
committerGitHub <noreply@github.com>2026-08-18 11:38:52 -0400
commitf238788601eb068d6a95cf775ac4e85c407db2cd (patch)
tree8659a37006cd5034d4f78ddd9b53d01c4bf74801 /runtime/lua/vim/range.lua
parent0c091cedc291ee4dd13ccae192057d92878aee0e (diff)
downloadrneovim-f238788601eb068d6a95cf775ac4e85c407db2cd.tar.gz
rneovim-f238788601eb068d6a95cf775ac4e85c407db2cd.tar.bz2
rneovim-f238788601eb068d6a95cf775ac4e85c407db2cd.zip
fix(tui): ui may attempt reattach during shutdown #41368
Problem: TSan CI, always at exit: WARNING: ThreadSanitizer: use of an invalid mutex (e.g. uninitialized or destroyed) #1 uv_mutex_lock #2 tui_flush src/nvim/tui/tui.c:1708 #3 ui_client_event_flush #4 parse_msgpack src/nvim/msgpack_rpc/channel.c:259 ... #10 event_teardown src/nvim/main.c:187 #11 os_exit src/nvim/main.c:720 ... #19 tinput_done_event src/nvim/tui/input.c:184 Analysis (guess): `rpc_close_event()` may run during `event_teardown()` and reattach to a restarted server, then `ui_client_attached=true` gets set and redraws resume in an already-stopped TUI. Solution: Check `!exiting` in `rpc_close_event`, like we already do in `channel_proc_exit_cb()`.
Diffstat (limited to 'runtime/lua/vim/range.lua')
0 files changed, 0 insertions, 0 deletions