terminal icon indicating copy to clipboard operation
terminal copied to clipboard

conpty hangs in _ClosePseudoConsoleMembers

Open LemonBoy opened this issue 1 year ago • 0 comments

Windows Terminal version

No response

Windows build number

10.0.22631.0

Other Software

vim 9.1

Steps to reproduce

  • git clone [email protected]:vim/vim.git
  • cd src
  • nmake -f .\Make_mvc.mak GUI=yes FEATURES=HUGE TERMINAL=yes DEBUG=yes
  • .\gvimd.exe -U NONE -u NONE -c 'set go+=! | !dir'

Expected Behavior

No response

Actual Behavior

The program hangs.

Attacching a debugger shows the main thread waiting in _ClosePseudoConsoleMembers for conhost.exe to die. The pipes passed by Vim are all closed by the time it calls ClosePseudoConsole, I've read the remark in the docs regarding the possibility for the function to hang, but here I'm not sure it applies to this case.

LemonBoy avatar Jun 30 '24 09:06 LemonBoy