conpty hangs in _ClosePseudoConsoleMembers #21914

Open
opened 2026-01-31 07:58:17 +00:00 by claunia · 0 comments
Owner

Originally created by @LemonBoy on GitHub (Jun 30, 2024).

Windows Terminal version

No response

Windows build number

10.0.22631.0

Other Software

vim 9.1

Steps to reproduce

  • git clone git@github.com: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.

Originally created by @LemonBoy on GitHub (Jun 30, 2024). ### Windows Terminal version _No response_ ### Windows build number 10.0.22631.0 ### Other Software vim 9.1 ### Steps to reproduce - `git clone git@github.com: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.
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 07:58:17 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21914