microsoft / microsoft/terminal
AllocConsole failing with ERROR_GEN_FAILURE as a service in rare cases
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 105k
- Forks
- 9.6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 29
Description
We have a software package running on thousands of Windows machines from XP onward. In 2 cases we have received a bug report that the users application fails to call AllocConsole with error code ERROR_GEN_FAILURE. This has been seen once on a Windows Server 2008 system and the second on a Windows Server 2012 system. In both cases the error was encountered while running as a Service.
The error message is "A device attached to the system is not functioning. (0x1f)"
Unfortunately we have not been able to reproduce this on any other systems. It happens 100% of the time of the failing system however.
I was able to find any documentation that shows this as a possible error.
Any thoughts on this would be appreciated.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the AllocConsole call and the reported ERROR_GEN_FAILURE (0x1f) when running as a service on Windows Server 2008 or 2012. Establish a reproducible failing environment and determine whether the behavior is documented or expected; done would be a confirmed cause and a documented resolution or reproduction gap.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100