Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread starving? #10898

Closed
were opened this issue Aug 8, 2021 · 3 comments
Closed

Thread starving? #10898

were opened this issue Aug 8, 2021 · 3 comments
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@were
Copy link

were commented Aug 8, 2021

Windows Terminal version (or Windows build number)

1.9.1942.0

Other Software

WSL or SSH. Run on Linux. I did not try to replicate it on pure PowerShell but I think it should be very similar.

Steps to reproduce

Writing a code that dumps excessive logs to stdout.

int main() {
  while (true) {
    std::cout << "Hellow world" << std::endl;
  }
}

Expected Behavior

If I type Ctrl-C, it should stop immediately.

Actual Behavior

If need to type Ctrl-C repeatedly until it stops. It seems the thread that listens the keyboard signal is starving.
This issue is not happening in PowerShell terminal (I mean just run PowerShell from Start menu, not from Windows Terminal tab).

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Aug 8, 2021
@j4james
Copy link
Collaborator

j4james commented Aug 8, 2021

I think this might be related to issue #2141.

@zadjii-msft
Copy link
Member

#2141 might be the root cause, but at the very least this is definitely a /dup of #6258. Thanks!

@ghost
Copy link

ghost commented Aug 9, 2021

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost ghost closed this as completed Aug 9, 2021
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Aug 9, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

3 participants