After running the Test_terminal_one_column test in test_terminal.vim in Windows +conpty environment, conhost.exe becomes a zombie process and memory usage continues to increase.
This does not occur with winpty.
To reproduce this, build vim.exe with +terminal, then run nmake -f Make_mvc.mak test_terminal in the src/testdir directory without adding winpty to the PATH. After that, when you look at Process Explorer, you will see that conhost.exe appears at the top level and memory usage continues to increase little by little, seemingly without limit.
Save the following test script as test_one.vim and add test_one to NEW_TESTS in the Make_all.mak file. Then you can run the minimal test by simply running nmake -f Make_mvc.mak test_one.
" vim: shiftwidth=2 sts=2 expandtab CheckFeature terminal source util/term_util.vim func Test_terminal_one_column() " This creates a terminal, displays a double-wide character and makes the " window one column wide. This used to cause a crash. let width = &columns botright vert term let buf = bufnr('$') call TermWait(buf, 100) exe "set columns=" .. (width / 2) redraw call term_sendkeys(buf, "キ") call TermWait(buf, 10) exe "set columns=" .. width exe buf . 'bwipe!' endfunc
The conhost.exe process will be terminated and hopefully will not become a zombie process.
9.1.2017
OS: Windows 11 25H2
Terminal: Windows Terminal Preview 1.24.2372.0
Pty: conpty (without winpty)
Shell: cmd.exe
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()