OpenConsole as conhost.exe crashes from SYSTEM account #23873

Open
opened 2026-01-31 08:54:52 +00:00 by claunia · 0 comments
Owner

Originally created by @SEt-t on GitHub (Dec 9, 2025).

Windows Terminal version

No response

Windows build number

10.0.19045.6456

Other Software

No response

Steps to reproduce

Replace system conhost.exe, run profiling in Visual Studio.

Expected Behavior

No response

Actual Behavior

conhost crashes due to uncaught exception. Creating ITfCategoryMgr here fails
224ac9de47/src/tsf/Implementation.cpp (L73)
and throws the exception.

Gracefully handling that here
224ac9de47/src/tsf/Handle.cpp (L15)
as assigning nullptr to handle._impl solves the problem.

I can create a pull request if you want.

Originally created by @SEt-t on GitHub (Dec 9, 2025). ### Windows Terminal version _No response_ ### Windows build number 10.0.19045.6456 ### Other Software _No response_ ### Steps to reproduce Replace system conhost.exe, run profiling in Visual Studio. ### Expected Behavior _No response_ ### Actual Behavior conhost crashes due to uncaught exception. Creating `ITfCategoryMgr` here fails https://github.com/microsoft/terminal/blob/224ac9de4758f67b7f83b74909d1c60f15715a3c/src/tsf/Implementation.cpp#L73 and throws the exception. Gracefully handling that here https://github.com/microsoft/terminal/blob/224ac9de4758f67b7f83b74909d1c60f15715a3c/src/tsf/Handle.cpp#L15 as assigning `nullptr` to `handle._impl` solves the problem. I can create a pull request if you want.
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 08:54:52 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23873