You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>)
The text was updated successfully, but these errors were encountered:
michielvoo
changed the title
PowerShell 7.4 images for linux/amd64 trigger an internal CLR error when executing a PowerShell command
PowerShell 7.4-debian-11 image triggers an internal CLR error when executing a PowerShell command when run via Docker Desktop on Apple Silicon
Mar 29, 2024
The same error occurs when running the images tagged 7.4-debian-12 and 7.4-alpine-3.17.
And note that after the error the docker process does not respond to SIGINT (Ctrl+C), SIGTSTP (Ctrl+Z), or SIGQUIT (Ctrl+). I had to open another terminal and docker stop ps74 to recover.
Prerequisites
Steps to reproduce
%
is the zsh prompt,PS />
is the prompt inside the container):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
Environment data
Visuals
The text was updated successfully, but these errors were encountered: