Process.Start() and PowerShell Start-Process hang on newer mcr.microsoft.com/windows/servercore:ltsc2019 / .NET Framework 4.8 LTSC2019 images
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- docker, powershell
调研方向
使用已知正常和失败的 Server Core 映像运行最小 PowerShell 和 .NET 复现,并比较 10.0.17763.8880 和 10.0.17763.9020 两条版本线。检查更新后的 LTSC2019 映像中的进程创建行为是否发生了变化;完成的标准是识别出回归问题,或确认文档中所述的固定映像 workaround。
由索引模型根据 Issue 内容生成。
描述
Description of the bug
We are seeing a regression in newer Windows Server Core LTSC 2019 container images.
Starting a child process from inside the container hangs indefinitely. This affects both:
- .NET
System.Diagnostics.Process.Start() - PowerShell
Start-Process
This used to work a few weeks ago and still works on an older pinned .NET Framework SDK image.
Known-good image
The following images still works correctly:
mcr.microsoft.com/dotnet/framework/sdk:4.8-20260512-windowsservercore-ltsc2019mcr.microsoft.com/windows/servercore:10.0.17763.8880
On this image, both:
.NET Process.Start()PowerShell Start-Process
return normally.
Regressed images
The problem occurs on newer images based on updated LTSC2019 Server Core, including:
mcr.microsoft.com/windows/servercore:ltsc2019- current floating
mcr.microsoft.com/dotnet/framework/sdk:4.8 - current floating
mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019
Expected behavior
Starting cmd.exe /c echo hello should return immediately.
Expected output for the .NET repro:
Before
After
Expected output for the PowerShell repro:
Before
After
Actual behavior
The process-start call hangs indefinitely.
For the .NET repro, output is:
Before
and Process.Start() never returns.
For the PowerShell repro, output is:
Before
and Start-Process never returns.
Container OS versions observed
Known-good older image lineage:
10.0.17763.8880
Failing newer image lineage:
10.0.17763.9020
Minimal PowerShell repro
Run:
docker run -ti --rm mcr.microsoft.com/windows/servercore:ltsc2019 powershell
Inside the container:
Write-Host "Before"
Start-Process cmd.exe -ArgumentList '/c echo hello' -Wait
Write-Host "After"
Actual result on the failing image:
Before
and then it hangs.
Minimal .NET repro
Run:
docker run -ti --rm mcr.microsoft.com/windows/servercore:ltsc2019 powershell
Inside the container:
Add-Type @"
using System;
using System.Diagnostics;
public class Test {
public static void Run() {
var p = new Process();
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.Arguments = "/c echo hello";
Console.WriteLine("Before");
p.Start();
Console.WriteLine("After");
}
}
"@
[Test]::Run()
Actual result on the failing image:
Before
and then it hangs.
Notes
- This does not appear to be specific to .NET Framework, because the same behavior is reproducible on plain
mcr.microsoft.com/windows/servercore:ltsc2019. - The regression appears to have been introduced after the
2026-05-12.NET Framework SDK LTSC2019 image. - We are currently pinning to
mcr.microsoft.com/dotnet/framework/sdk:4.8-20260512-windowsservercore-ltsc2019as a temporary workaround.
Environment
- Host OS: Windows Server 2019
- Container base:
mcr.microsoft.com/windows/servercore:ltsc2019 - Affected higher-level image:
mcr.microsoft.com/dotnet/framework/sdk:4.8 - Working higher-level image:
mcr.microsoft.com/windows/servercore:10.0.17763.8880
Question
Is this a known regression in the updated LTSC2019 Server Core image, or an intentional change in process creation behavior inside Windows containers?
- 主要语言
- PowerShell
- 星标
- 551
- 派生
- 76
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/Windows-Containers 的其他 Issue
-
enhancement triage
难度 2/5 1-3 小时 新手友好度 68/100
microsoft/Windows-Containers#630 · 5 条评论 ·
-
enhancement triage
难度 5/5 一周以上 新手友好度 25/100
microsoft/Windows-Containers#653 · 1 条评论 ·
-
enhancement triage
难度 5/5 一周以上 新手友好度 30/100
microsoft/Windows-Containers#652 · 1 条评论 ·
-
enhancement triage
难度 5/5 一周以上 新手友好度 30/100
microsoft/Windows-Containers#651 · 1 条评论 ·
-
enhancement triage
难度 5/5 一周以上 新手友好度 25/100
microsoft/Windows-Containers#650 · 2 条评论 ·
查看 microsoft/Windows-Containers 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
-
难度 2/5 1-3 小时 新手友好度 84/100
opengovsg/FormSG#10118 · 1 条评论 ·
维护者通常 1 天内回复
-
tagbot-manual
难度 2/5 1-3 小时 新手友好度 72/100
JuliaGraphics/Colors.jl#589 · 2 条评论 ·
-
area: ci area: tests bug perceived difficulty: 3
难度 2/5 1-3 小时 新手友好度 84/100
Nitjsefnie-Harness-Commons/daedalus#1174 ·
维护者通常 1 天内回复
-
area:docs priority:p2 type:docs wave:1
难度 2/5 1-3 小时 新手友好度 78/100
jejjohnson/gaussx#395 ·
维护者通常 1 天内回复