René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f0cdd7db-af2c-c6df-22f0-6096e336faff
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC802:E9A8B:21FC627:2F7E046:6AFD31C3
html-safe-noncebc32408ab55d2d6b3a04824fb40de53a1c2f611784d248a6d18de325dd23d840
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODAyOkU5QThCOjIxRkM2Mjc6MkY3RTA0Njo2QUZEMzFDMyIsInZpc2l0b3JfaWQiOiI4NzM4ODY5MzQwNzY3MzM0ODUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac3fe503605dcf69b183a0fb54a77cbeeb4518e53f3450ad458235a5311e7012a2
hovercard-subject-tagissue:4497061533
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/27490/issue_layout
twitter:imagehttps://opengraph.githubassets.com/46637027aea3c8677648ab4266aeae4215ed3b14acd367563913d4b07bd9c73c/PowerShell/PowerShell/issues/27490
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/46637027aea3c8677648ab4266aeae4215ed3b14acd367563913d4b07bd9c73c/PowerShell/PowerShell/issues/27490
og:image:altPrerequisites 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelbussell
hostnamegithub.com
expected-hostnamegithub.com
None065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release941021edf0c2ec58298f4a2c8f27ae507d129c92
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/27490#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F27490
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F27490
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/issues/27490
Reloadhttps://github.com/PowerShell/PowerShell/issues/27490
Reloadhttps://github.com/PowerShell/PowerShell/issues/27490
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests364 (364)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
https://github.com/PowerShell/PowerShell
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/27490
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/27490
PowerShell installed as .NET tool fails to start nested process on Arm64 because the pwsh shim is an x86-64 executablehttps://github.com/PowerShell/PowerShell/issues/27490#top
Needs-TriageThe issue is new and needs to be triaged by a work group.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Needs-Triage%22
https://github.com/lbussell
Logan Bussell (lbussell)https://github.com/lbussell
on May 21, 2026https://github.com/PowerShell/PowerShell/issues/27490#issue-4497061533
latest released versionhttps://github.com/PowerShell/PowerShell/releases
FAQhttps://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md
Differences between Windows PowerShell 5.1 and PowerShellhttps://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell
https://private-user-images.githubusercontent.com/36081148/596287718-9749b96c-9cbb-4d1b-81b5-a7dc510de9d8.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTQ5Nzg1NDMsIm5iZiI6MTc5NDk3ODI0MywicGF0aCI6Ii8zNjA4MTE0OC81OTYyODc3MTgtOTc0OWI5NmMtOWNiYi00ZDFiLTgxYjUtYTdkYzUxMGRlOWQ4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTE4VDA1MDQwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM1YTkxM2U5MmIzZDE5NGYyYzE3YzllZmRkYTA4MDYxNWQ2ZWFmMTc1Y2Y2NDNmMzY1NWQwMjRkOTExMmZlMTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.ZjV-gPllYQTtxdpZfvwwfMBEU2FfRnUuplodTBXPlhY
Logan Bussell (lbussell)https://github.com/lbussell
Needs-TriageThe issue is new and needs to be triaged by a work group.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Needs-Triage%22
on May 21, 2026https://github.com/PowerShell/PowerShell/issues/27490#event-25819490526
Logan Bussell (lbussell)https://github.com/lbussell
.NET Dockerhttps://github.com/orgs/dotnet/projects/58
on May 21, 2026https://github.com/PowerShell/PowerShell/issues/27490
Logan Bussell (lbussell)https://github.com/lbussell
.NET Dockerhttps://github.com/orgs/dotnet/projects/58
on May 21, 2026https://github.com/PowerShell/PowerShell/issues/27490#event-25819587087
https://github.com/lbussell
Logan Bussell (lbussell)https://github.com/lbussell
on May 21, 2026https://github.com/PowerShell/PowerShell/issues/27490#issuecomment-4513042621
https://github.com/mklement0
Michael Klement (mklement0)https://github.com/mklement0
on May 22, 2026https://github.com/PowerShell/PowerShell/issues/27490#issuecomment-4518395005
Pwsh corrupts PATH environment variable, breaking nested invocations on everything that isn't x86-64 #24090https://github.com/PowerShell/PowerShell/issues/24090
Handle global tool specially when prepending PSHome to PATH #24228https://github.com/PowerShell/PowerShell/pull/24228
Pwsh corrupts PATH environment variable, breaking nested invocations on everything that isn't x86-64 #24090 (comment)https://github.com/PowerShell/PowerShell/issues/24090#issuecomment-2342310482
Pwsh still corrupts environment variable on Linux Arm 64 #24693 (comment)https://github.com/PowerShell/PowerShell/issues/24693#issuecomment-2557736071
Dongbo Wang (@daxian-dbw)https://github.com/daxian-dbw
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PowerShell/issues/27490
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/27490
Needs-TriageThe issue is new and needs to be triaged by a work group.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Needs-Triage%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.