Skip to content

Writing random output to console output handle fails with no last error set #3320

@benhillis

Description

@benhillis

Environment

Windows build number: Microsoft Windows [Version 10.0.19002.1000]

Any other software?
WSL2

Steps to reproduce

microsoft/WSL#4495

  1. Install Ubuntu 18.04 distro from store
  2. for i in /bin/*; do head ${i}; done
  3. Observe wsl window hang or crash

Expected behavior

Contents of the files are displayed, no hang / crash.

Actual behavior

WSL window will close, or hang. Seems like an issue with (or around) Utf8ToWideCharParser::_InvolvedParse.

Metadata

Metadata

Assignees

Labels

Area-OutputRelated to output processing (inserting text into buffer, retrieving buffer text, etc.)Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsPriority-1A description (P1)Product-ConhostFor issues in the Console codebaseResolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.Severity-CrashCrashes are real bad news.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions