[vim/vim] tests: conpty becomes a zombie and memory usage continues to increase (Issue #19013)

1 view
Skip to first unread message

MURAOKA Taro

unread,
9:54 AM (5 hours ago) 9:54 AM
to vim/vim, Subscribed
koron created an issue (vim/vim#19013)

Steps to reproduce

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

Expected behaviour

The conhost.exe process will be terminated and hopefully will not become a zombie process.

Version of Vim

9.1.2017

Environment

OS: Windows 11 25H2
Terminal: Windows Terminal Preview 1.24.2372.0
Pty: conpty (without winpty)
Shell: cmd.exe

Logs and stack traces


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19013@github.com>

Reply all
Reply to author
Forward
0 new messages