MSbuild crashes when run inside terminal #21008

Closed
opened 2026-01-31 07:30:26 +00:00 by claunia · 6 comments
Owner

Originally created by @gilknyaz on GitHub (Dec 21, 2023).

Originally assigned to: @rainersigwald on GitHub.

Windows Terminal version

1.18.3181

Windows build number

10.0.22621.0

Other Software

MSBuild (VS 2022)

Steps to reproduce

  1. Open the Developer Command Prompt for VS 2022 profile.
  2. go to a C# solution folder
  3. Run MSbuild to compile. (Or run msbuild /t:Restore to restore some nuget packages)

Expected Behavior

MSbuild to succeed

Actual Behavior

MSBuild starts working but stops very early. No error is written to the console.
In Event Viewer -> Application, the following error appears:

Faulting application name: MSBuild.exe, version: 17.8.3.51904, time stamp: 0xe31ab667
Faulting module name: combase.dll, version: 10.0.22621.2792, time stamp: 0xd9671289
Exception code: 0xc0000409
Fault offset: 0x00000000001522b2
Faulting process id: 0x0x6380
Faulting application start time: 0x0x1DA34154F6EE43B
Faulting application path: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\MSBuild.exe
Faulting module path: C:\WINDOWS\System32\combase.dll
Report Id: 4af61e29-3040-4862-b67c-0fb2c7a14aef
Faulting package full name: Microsoft.WindowsTerminal_1.18.3181.0_x64__8wekyb3d8bbwe
Faulting package-relative application ID: App

Originally created by @gilknyaz on GitHub (Dec 21, 2023). Originally assigned to: @rainersigwald on GitHub. ### Windows Terminal version 1.18.3181 ### Windows build number 10.0.22621.0 ### Other Software MSBuild (VS 2022) ### Steps to reproduce 1. Open the Developer Command Prompt for VS 2022 profile. 2. go to a C# solution folder 3. Run MSbuild to compile. (Or run msbuild /t:Restore to restore some nuget packages) ### Expected Behavior MSbuild to succeed ### Actual Behavior MSBuild starts working but stops very early. No error is written to the console. In Event Viewer -> Application, the following error appears: Faulting application name: MSBuild.exe, version: 17.8.3.51904, time stamp: 0xe31ab667 Faulting module name: combase.dll, version: 10.0.22621.2792, time stamp: 0xd9671289 Exception code: 0xc0000409 Fault offset: 0x00000000001522b2 Faulting process id: 0x0x6380 Faulting application start time: 0x0x1DA34154F6EE43B Faulting application path: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\MSBuild.exe Faulting module path: C:\WINDOWS\System32\combase.dll Report Id: 4af61e29-3040-4862-b67c-0fb2c7a14aef Faulting package full name: Microsoft.WindowsTerminal_1.18.3181.0_x64__8wekyb3d8bbwe Faulting package-relative application ID: App
claunia added the Needs-TriageIssue-BugResolution-External labels 2026-01-31 07:30:26 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Jan 3, 2024):

@rainersigwald any ideas? Or any idea how to investigate? Does this work just fine in the vintage console/?

@zadjii-msft commented on GitHub (Jan 3, 2024): @rainersigwald any ideas? Or any idea how to investigate? Does this work just fine in the vintage console/?
Author
Owner

@rainersigwald commented on GitHub (Jan 4, 2024):

I haven't heard of this before. Since you have VS installed, you might be able to get more information by setting the environment variable MSBUILDDEBUGONSTART=1 before running MSBuild, which should pop up a JIT debugger prompt. Then the crash might have a bit more actionable information?

@rainersigwald commented on GitHub (Jan 4, 2024): I haven't heard of this before. Since you have VS installed, you might be able to get more information by setting the environment variable `MSBUILDDEBUGONSTART=1` before running MSBuild, which should pop up a JIT debugger prompt. Then the crash might have a bit more actionable information?
Author
Owner

@gilknyaz commented on GitHub (Jan 5, 2024):

@zadjii-msft @rainersigwald
MSBuild.001.zip
MSBuild.002.zip

I've uploaded the dump created with MSBUILDDEBUGONSTART
It's split because github doesn't allow more than 25MB per-file. Please rename them to MSBuild.zip.001 and MSBuild.zip.002 to open.

Another thing that might explain the difference - it happens to me on a Virtual Desktop machine. (VMWare VDI). Doesn't happen on a regular PC.

@gilknyaz commented on GitHub (Jan 5, 2024): @zadjii-msft @rainersigwald [MSBuild.001.zip](https://github.com/microsoft/terminal/files/13843107/MSBuild.001.zip) [MSBuild.002.zip](https://github.com/microsoft/terminal/files/13843110/MSBuild.002.zip) I've uploaded the dump created with MSBUILDDEBUGONSTART It's split because github doesn't allow more than 25MB per-file. Please rename them to MSBuild.zip.001 and MSBuild.zip.002 to open. Another thing that might explain the difference - it happens to me on a Virtual Desktop machine. (VMWare VDI). Doesn't happen on a regular PC.
Author
Owner

@zadjii-msft commented on GitHub (Jan 10, 2024):

@rainersigwald Hey can you investigate this more on your side? Or move this to the msbuild repo? I can't imagine that this is something that is really caused by Terminal code... but if this is something that explodes in msbuild cause we're running, I think you'd be best equipped to find out why

@zadjii-msft commented on GitHub (Jan 10, 2024): @rainersigwald Hey can you investigate this more on your side? Or move this to the msbuild repo? I can't imagine that this is something that is really caused by Terminal code... but if this is something that explodes in msbuild cause we're running, I think you'd be best equipped to find out why
Author
Owner

@rainersigwald commented on GitHub (Jan 10, 2024):

This issue was moved to dotnet/sdk#38742

@rainersigwald commented on GitHub (Jan 10, 2024): This issue was moved to dotnet/sdk#38742
Author
Owner

@rainersigwald commented on GitHub (Jan 10, 2024):

@zadjii-msft I copied this to dotnet/msbuild, feel free to close this one.

@rainersigwald commented on GitHub (Jan 10, 2024): @zadjii-msft I copied this to dotnet/msbuild, feel free to close this one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21008