PowerShell 7.4-debian-11 image triggers an internal CLR error when executing a PowerShell command when run via Docker Desktop on Apple Silicon
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- docker, dockerfile, powershell
- Lĩnh vực
- devops, infrastructure
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện lệnh docker run được ghi trong tài liệu trên Apple Silicon với Docker Desktop, sau đó kiểm tra image PowerShell 7.4 Debian 11 và cấu hình runtime của nó liên quan đến lỗi Regex1_Scan và lỗi CLR nội bộ đã được báo cáo. Công việc được xem là hoàn tất khi Write-Warning Test tạo ra cảnh báo như mong đợi mà không kết thúc tiến trình PowerShell.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Dockerfile
- Star
- 449
- Fork
- 158
- Merge trung bình
- 3 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PowerShell/PowerShell-Docker
-
Git Đang mởIssue-Enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
PowerShell/PowerShell-Docker#857 ·
-
Container images not deprecated Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
PowerShell/PowerShell-Docker#856 · 2 bình luận · 1 reaction ·
-
Issue-Enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 48/100
PowerShell/PowerShell-Docker#854 ·
-
Issue-Enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
PowerShell/PowerShell-Docker#853 · 6 bình luận · 17 reaction ·
-
Issue-Enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
PowerShell/PowerShell-Docker#851 · 2 bình luận · 2 reaction ·
Tất cả issue của PowerShell/PowerShell-Docker
Issue tương tự
-
Add dependabot Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
-
oblt-aw/detector/security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Type: AVM :a: :v: :m: Type: Bug :bug:
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Azure/bicep-registry-modules#7386 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100