microsoft / microsoft/terminal

[cont] [DefTerm] Some invocations can cause deadlocks in terminal + another GUI application in Attach mode

Open
#19,749 5 comments 0 reactions 0 assignees View on GitHub
Area-DefApp Help Wanted Issue-Bug Priority-2 Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

_No response_

### Windows build number

_No response_

### Other Software

_No response_

### Steps to reproduce

Same steps as https://github.com/microsoft/terminal/issues/14131
More here: https://github.com/microsoft/terminal/issues/14131#issuecomment-3731555688

### Expected Behavior

no 5000ms timeout from `SendMessageTimeoutW`: `SMTO_NOTIMEOUTIFNOTHUNG`

### Actual Behavior

5000ms because the window is newly hung (by call to `system()`)

Contributor guide

Open the contributing guide

Research direction

Start by reading issue #14131 and the linked comment, then reproduce the terminal-plus-GUI attach-mode invocation described there. Trace the newly hung window and the related SendMessageTimeoutW behavior; done means the invocation no longer produces the 5000ms timeout caused by the system() call.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.