Skip to content

Application cannot start new process Error: 0xc0000142 #18874

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

Open
xmasmc opened this issue May 4, 2025 · 4 comments
Open

Application cannot start new process Error: 0xc0000142 #18874

xmasmc opened this issue May 4, 2025 · 4 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Product-Conhost For issues in the Console codebase

Comments

@xmasmc
Copy link

xmasmc commented May 4, 2025

Windows Terminal version

1.22.11141.0

Windows build number

10.0.22631.5262

Other Software

ingres 10, compiled with Viscual C++ 2010

Steps to reproduce

Using database 4GL software (ingres 10), which works perfect in old cmd windows with legacy mode. Without legacy mode, I have the problem, if the software try to start a new process with CreateProcess() it fails, error message:
cmd.exe - Application Error The application was unable to start correctly (0xc0000142). Click OK to close the application.
Sytemcalls with system() inside the 4GL code works.
Exact the same problem with windows terminal 1.22.11141.0 and with preview 1.23.11132.0
I make a small test C program, compiled with VC 2010, using nearly the same code, as inside the ingres application (CreateProcess...) works without problems.

Expected Behavior

no error message and starting the process like cmd with legacy mode

Actual Behavior

error message:
cmd.exe - Application Error The application was unable to start correctly (0xc0000142). Click OK to close the application.

@xmasmc xmasmc added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels May 4, 2025
@DHowett
Copy link
Member

DHowett commented May 7, 2025

Thanks for filing this! Would you mind helping me fill out this table?

Host Working?
Legacy Console
Non-legacy Console (not terminal)
Terminal

Does Ingres 10 work in the non-legacy non-terminal console host from Windows 10/?

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label May 7, 2025
@DHowett DHowett added Product-Conhost For issues in the Console codebase and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels May 7, 2025
@zadjii-msft zadjii-msft added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label May 7, 2025
@xmasmc
Copy link
Author

xmasmc commented May 8, 2025

evrything runs on Windows 11 23H2, the last Version with existing Legacy Mode. We are working with this Version.
I make some tests with tracing the system calls to find out where the problem is. But this trace data are not for public.
Could I send you the trace data to a non public email ?
I think next week I could send the trace data.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels May 8, 2025
@DHowett
Copy link
Member

DHowett commented May 8, 2025

Okay so this is a regression in the new Windows 10 console host, not Terminal.

Yes, my email address is on my github profile.

@xmasmc
Copy link
Author

xmasmc commented May 15, 2025

Hi, just now, I send you trace data to your email.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Product-Conhost For issues in the Console codebase
Projects
None yet
Development

No branches or pull requests

3 participants