PowerShell 7.4-debian-11 image triggers an internal CLR error when executing a PowerShell command when run via Docker Desktop on Apple Silicon
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- docker, dockerfile, powershell
- 领域
- devops, infrastructure
调研方向
首先,在 Apple Silicon 上使用 Docker Desktop 重现文档中记录的 docker run 命令,然后检查 PowerShell 7.4 Debian 11 镜像及其运行时配置,围绕已报告的 Regex1_Scan 和内部 CLR 错误展开调查。完成的标准是 Write-Warning Test 产生预期的警告,同时不终止 PowerShell 进程。
由索引模型根据 Issue 内容生成。
描述
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest image.
- Search the existing issues.
- Verified that this is not a Known Issue
- Verified this is not an issues in the underlying windows container that should be reported to Windows Feedback Hub
Steps to reproduce
- Use a Mac with Apple Silicon
- Use macOS Sonoma 14.2.1 (23C71)
- Use Docker Desktop 4.28.0 (139021)
- Run the following commands in a terminal (
%is the zsh prompt,PS />is the prompt inside the container):
% docker run -it --name "ps74" --platform "linux/amd64" --rm "mcr.microsoft.com/powershell:7.4-debian-11"
PS /> Write-Warning Test
Expected behavior
WARNING: Test
Actual behavior
An error has occurred that was not properly handled. Additional information is shown below. The PowerShell process will exit.
Error details
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at Regex1_Scan(RegexRunner, ReadOnlySpan`1)
Fatal error. Internal CLR error. (0x80131506)
at DynamicClass.Regex1_Scan(System.Text.RegularExpressions.RegexRunner, System.ReadOnlySpan`1<Char>)
Environment data
{
"schemaVersion": 2,
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"config": {
"mediaType": "application/vnd.docker.container.image.v1+json",
"size": 3699,
"digest": "sha256:b04037c30904d6cf7f4691d77f7c908e203abb2cea5c70abad51799c8ca07c11"
},
"layers": [
{
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
"size": 31422489,
"digest": "sha256:c0edef2937fa3b888b0cc3f9f5a4db00a1be6f297be5f057a77d738f91e675a0"
},
{
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
"size": 72981391,
"digest": "sha256:47d8a5670baa302610b81b696367412a0ea2c33e27a73b0be67b4c511c45900d"
},
{
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
"size": 23842684,
"digest": "sha256:742248d80c879b816bfbc9481c14e1b078ed5dacea8f26453d3245d313f8bfde"
},
{
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
"size": 20896,
"digest": "sha256:ce8b82fb86b67eddc909e803fb07a192dbdce2ecf0098dc105be732e12d18628"
}
]
}
Visuals
- 主要语言
- Dockerfile
- 星标
- 449
- 派生
- 158
- 平均合并
- 3 天 10 小时
- 30 天内合并 PR
- 1
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PowerShell/PowerShell-Docker 的其他 Issue
-
Git 未关闭Issue-Enhancement
难度 2/5 1-3 小时 新手友好度 62/100
PowerShell/PowerShell-Docker#857 ·
-
难度 4/5 3-5 天 新手友好度 35/100
PowerShell/PowerShell-Docker#856 · 2 条评论 · 1 个 reaction ·
-
Issue-Enhancement
难度 2/5 1-3 小时 新手友好度 48/100
PowerShell/PowerShell-Docker#854 ·
-
Issue-Enhancement
难度 5/5 一周以上 新手友好度 25/100
PowerShell/PowerShell-Docker#853 · 6 条评论 · 17 个 reaction ·
-
Issue-Enhancement
难度 3/5 1-2 天 新手友好度 45/100
PowerShell/PowerShell-Docker#851 · 2 条评论 · 2 个 reaction ·
查看 PowerShell/PowerShell-Docker 的全部 Issue
相似的 Issue
-
bug carvel-triage
难度 2/5 1-3 小时 新手友好度 88/100
carvel-dev/kapp-controller#1861 ·
-
难度 1/5 1 小时以内 新手友好度 92/100
-
难度 2/5 1-3 小时 新手友好度 82/100
microsoft/BC-ALAgents#71 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
-
难度 1/5 1 小时以内 新手友好度 90/100
k3s-io/k3s-ansible#565 ·