Title: PowerShell installed as .NET tool fails to start nested process on Arm64 because the pwsh shim is an x86-64 executable · Issue #27490 · PowerShell/PowerShell · GitHub
Open Graph Title: PowerShell installed as .NET tool fails to start nested process on Arm64 because the pwsh shim is an x86-64 executable · Issue #27490 · PowerShell/PowerShell
X Title: PowerShell installed as .NET tool fails to start nested process on Arm64 because the pwsh shim is an x86-64 executable · Issue #27490 · PowerShell/PowerShell
Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...
Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/27490
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PowerShell installed as .NET tool fails to start nested process on Arm64 because the pwsh shim is an x86-64 executable","articleBody":"### Prerequisites\n\n- [x] Write a descriptive title.\n- [x] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\n- [x] Search the existing issues.\n- [x] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\n- [x] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\n\n### Steps to reproduce\n\n1. Run PowerShell as a dotnet tool: `dnx -y PowerShell`\n2. Run `pwsh` from inside the PowerShell session that you just started as part of step 1.\n\nOptionally, run `file $HOME/.nuget/packages/powershell/7.6.1/tools/net10.0/any/unix/pwsh` to see the following output:\n\n`$HOME/.nuget/packages/powershell/7.6.1/tools/net10.0/any/unix/pwsh: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=14ca852b9891c15bf1649397aeadddddea78e5bd, stripped`\n\nIt should be arm64, not x86-64.\n\n### Expected behavior\n\n```console\nA nested PowerShell session starts successfully.\n```\n\n### Actual behavior\n\n```console\nResourceUnavailable: Program 'pwsh' failed to run: An error occurred trying to start process '/Users/loganbussell/.nuget/packages/powershell/7.6.1/tools/net10.0/any/unix/pwsh' with working directory '/Users/loganbussell'. Exec format errorAt line:1 char:1\n+ pwsh\n+ ~~~~.\n```\n\n### Error details\n\n```console\nException :\n Type : System.Management.Automation.ApplicationFailedException\n ErrorRecord :\n Exception :\n Type : System.Management.Automation.ParentContainsErrorRecordException\n Message : Program 'pwsh' failed to run: An error occurred trying to start process '/Users/loganbussell/.nuget/packages/powershell/7.6.1/tools/net10.0/any/unix/pwsh'\nwith working directory '/Users/loganbussell'. Exec format errorAt line:1 char:1\n + pwsh\n + ~~~~.\n HResult : -2146233087\n CategoryInfo : ResourceUnavailable: (:) [], ParentContainsErrorRecordException\n FullyQualifiedErrorId : NativeCommandFailed\n InvocationInfo :\n ScriptLineNumber : 1\n OffsetInLine : 1\n HistoryId : 1\n Line : pwsh\n Statement : pwsh\n PositionMessage : At line:1 char:1\n + pwsh\n + ~~~~\n CommandOrigin : Internal\n ScriptStackTrace : at \u003cScriptBlock>, \u003cNo file>: line 1\n TargetSite :\n Name : InitNativeProcess\n DeclaringType : [System.Management.Automation.NativeCommandProcessor]\n MemberType : Method\n Module : System.Management.Automation.dll\n Message : Program 'pwsh' failed to run: An error occurred trying to start process '/Users/loganbussell/.nuget/packages/powershell/7.6.1/tools/net10.0/any/unix/pwsh'\nwith working directory '/Users/loganbussell'. Exec format errorAt line:1 char:1\n + pwsh\n + ~~~~.\n Data :\n System.Management.Automation.Interpreter.InterpretedFrameInfo, System.Management.Automation, Version=7.6.0.500, Culture=neutral, PublicKeyToken=31bf3856ad364e35 :\n\u003cScriptBlock>\n\n InnerException :\n Type : System.ComponentModel.Win32Exception\n NativeErrorCode : 8\n ErrorCode : -2147467259\n TargetSite :\n Name : ForkAndExecProcess\n DeclaringType : [System.Diagnostics.Process]\n MemberType : Method\n Module : System.Diagnostics.Process.dll\n Message : An error occurred trying to start process '/Users/loganbussell/.nuget/packages/powershell/7.6.1/tools/net10.0/any/unix/pwsh' with working directory\n'/Users/loganbussell'. Exec format error\n Source : System.Diagnostics.Process\n HResult : -2147467259\n StackTrace :\n at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32\nuserId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)\n at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)\n at System.Management.Automation.NativeCommandProcessor.InitNativeProcess()\n Source : System.Management.Automation\n HResult : -2146233087\n StackTrace :\n at System.Management.Automation.NativeCommandProcessor.InitNativeProcess()\n at System.Management.Automation.NativeCommandProcessor.Prepare(IDictionary psDefaultParameterValues)\n at System.Management.Automation.CommandProcessorBase.DoPrepare(IDictionary psDefaultParameterValues)\n at System.Management.Automation.Internal.PipelineProcessor.Start(Boolean incomingStream)\n at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)\n--- End of stack trace from previous location ---\n at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)\n at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts,\nCommandRedirection[][] commandRedirections, FunctionContext funcContext)\n at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)\n at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)\nCategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException\nFullyQualifiedErrorId : NativeCommandFailed\nInvocationInfo :\n ScriptLineNumber : 1\n OffsetInLine : 1\n HistoryId : 1\n Line : pwsh\n Statement : pwsh\n PositionMessage : At line:1 char:1\n + pwsh\n + ~~~~\n CommandOrigin : Internal\nScriptStackTrace : at \u003cScriptBlock>, \u003cNo file>: line 1\n```\n\n### Environment data\n\n```powershell\nName Value\n---- -----\nPSVersion 7.6.1\nPSEdition Core\nGitCommitId 7.6.1\nOS macOS 26.5.0\nPlatform Unix\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\nPSRemotingProtocolVersion 2.4\nSerializationVersion 1.1.0.1\nWSManStackVersion 3.0\n```\n\n### Visuals\n\n\u003cimg width=\"707\" height=\"283\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/9749b96c-9cbb-4d1b-81b5-a7dc510de9d8\" />","author":{"url":"https://github.com/lbussell","@type":"Person","name":"lbussell"},"datePublished":"2026-05-21T18:40:36Z","url":"https://github.com/PowerShell/PowerShell/issues/27490"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f0cdd7db-af2c-c6df-22f0-6096e336faff |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C802:E9A8B:21FC627:2F7E046:6AFD31C3 |
| html-safe-nonce | bc32408ab55d2d6b3a04824fb40de53a1c2f611784d248a6d18de325dd23d840 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODAyOkU5QThCOjIxRkM2Mjc6MkY3RTA0Njo2QUZEMzFDMyIsInZpc2l0b3JfaWQiOiI4NzM4ODY5MzQwNzY3MzM0ODUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3fe503605dcf69b183a0fb54a77cbeeb4518e53f3450ad458235a5311e7012a2 |
| hovercard-subject-tag | issue:4497061533 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/27490/issue_layout |
| twitter:image | https://opengraph.githubassets.com/46637027aea3c8677648ab4266aeae4215ed3b14acd367563913d4b07bd9c73c/PowerShell/PowerShell/issues/27490 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/46637027aea3c8677648ab4266aeae4215ed3b14acd367563913d4b07bd9c73c/PowerShell/PowerShell/issues/27490 |
| og:image:alt | Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lbussell |
| hostname | github.com |
| expected-hostname | github.com |
| None | 065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 941021edf0c2ec58298f4a2c8f27ae507d129c92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width