Title: PowerShell 7 (32bit) Crash on Get-Counter '\Memory\Available MBytes' · Issue #13829 · PowerShell/PowerShell · GitHub
Open Graph Title: PowerShell 7 (32bit) Crash on Get-Counter '\Memory\Available MBytes' · Issue #13829 · PowerShell/PowerShell
X Title: PowerShell 7 (32bit) Crash on Get-Counter '\Memory\Available MBytes' · Issue #13829 · PowerShell/PowerShell
Description: Steps to reproduce Windows Server 2016 -1607 14393.3986 and Microsoft Windows 10.0.19041 both with. PowerShell-7.0.3-win-x86 Get-Counter '\Memory\Available MBytes' interesting enough: pwsh -command {Get-Counter '\Memory\Available MBytes'...
Open Graph Description: Steps to reproduce Windows Server 2016 -1607 14393.3986 and Microsoft Windows 10.0.19041 both with. PowerShell-7.0.3-win-x86 Get-Counter '\Memory\Available MBytes' interesting enough: pwsh -command...
X Description: Steps to reproduce Windows Server 2016 -1607 14393.3986 and Microsoft Windows 10.0.19041 both with. PowerShell-7.0.3-win-x86 Get-Counter '\Memory\Available MBytes' interesting enough: pwsh ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/13829
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PowerShell 7 (32bit) Crash on Get-Counter '\\Memory\\Available MBytes'","articleBody":"## Steps to reproduce\r\n\r\nWindows Server 2016 -1607 14393.3986\r\nand \r\nMicrosoft Windows 10.0.19041 \r\n\r\nboth with.\r\nPowerShell-7.0.3-win-x86\r\n\r\n```powershell\r\n\tGet-Counter '\\Memory\\Available MBytes'\r\n```\r\ninteresting enough:\r\n> pwsh -command {Get-Counter '\\Memory\\Available MBytes'} \r\ncalled from CMD does not seem to generate a visible stacktrace.\r\n\r\n## Expected behavior\r\n\r\n```none\r\nResult or Error (if the command is not supported in 32bit.)\r\n```\r\n\r\n## Actual behavior\r\n\r\n```none\r\nFatal error. Internal CLR error. (0x80131506) at System.Runtime.InteropServices.Marshal.PtrToStructureHelper(IntPtr, System.Object, Boolean) at System.Runtime.InteropServices.Marshal.PtrToStructureHelper(IntPtr, System.Type) at System.Runtime.InteropServices.Marshal.PtrToStructure(IntPtr, System.Type) at Microsoft.Powershell.Commands.GetCounter.PdhNative.PdhHelper.GetCounterInfoPlus(IntPtr, UInt32 ByRef, UInt32 ByRef, UInt64 ByRef) at Microsoft.Powershell.Commands.GetCounter.PdhNative.PdhHelper.ReadNextSet(Microsoft.PowerShell.Commands.GetCounter.PerformanceCounterSampleSet ByRef, Boolean) at Microsoft.PowerShell.Commands.GetCounterCommand.ProcessGetCounter() at Microsoft.PowerShell.Commands.GetCounterCommand.EndProcessing() at System.Management.Automation.Cmdlet.DoEndProcessing() at System.Management.Automation.CommandProcessorBase.Complete() at System.Management.Automation.CommandProcessorBase.DoComplete() at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(System.Management.Automation.CommandProcessorBase) at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(System.Object) at System.Management.Automation.PipelineOps.InvokePipeline(System.Object, Boolean, System.Management.Automation.CommandParameterInternal[][], System.Management.Automation.Language.CommandBaseAst[], System.Management.Automation.CommandRedirection[][], System.Management.Automation.Language.FunctionContext) at System.Management.Automation.Interpreter.ActionCallInstruction`6[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Run(System.Management.Automation.Interpreter.InterpretedFrame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(System.Management.Automation.Interpreter.InterpretedFrame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(System.Management.Automation.Interpreter.InterpretedFrame) at System.Management.Automation.Interpreter.Interpreter.Run(System.Management.Automation.Interpreter.InterpretedFrame) at System.Management.Automation.Interpreter.LightLambda.RunVoid1[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.__Canon) at System.Management.Automation.DlrScriptCommandProcessor.RunClause(System.Action`1\u003cSystem.Management.Automation.Language.FunctionContext>, System.Object, System.Object) at System.Management.Automation.DlrScriptCommandProcessor.Complete() at System.Management.Automation.CommandProcessorBase.DoComplete() at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(System.Management.Automation.CommandProcessorBase) at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(System.Object) at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper() at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc() at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProcImpersonate() at System.Management.Automation.Runspaces.PipelineThread.WorkerProc() at System.Threading.ThreadHelper.ThreadStart_Context(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Threading.ThreadHelper.ThreadStart() \r\n```\r\n\r\nWe found this because someone manually installed 32bit PowerShell. Windows 10 copy was from the Zip download 2016 server was from the MSI. (Stacktrace above on Windows 10 laptop)\r\n\r\n","author":{"url":"https://github.com/jmiller76","@type":"Person","name":"jmiller76"},"datePublished":"2020-10-21T18:49:25Z","url":"https://github.com/PowerShell/PowerShell/issues/13829"}
| 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:b62f8091-8998-86d3-b6d7-e3eb2555ff2c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 92F0:190070:E46D4E:1489328:6AFDA42C |
| html-safe-nonce | 549493b0a4a754e0081f248b0fac6fa573965e5d9592e3cfcf0bdead2d105f52 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkYwOjE5MDA3MDpFNDZENEU6MTQ4OTMyODo2QUZEQTQyQyIsInZpc2l0b3JfaWQiOiI2MjIxMTAxNjE1NjkzMDE0MDYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0184bbeff1fcd3519e59097770225fbfca1d76a483ef6436feffb903e925b6bf |
| hovercard-subject-tag | issue:726776192 |
| 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/13829/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f477cf03854523ca6f623d4095bd5a71d035434c010b3eb48548bbcce3ec5226/PowerShell/PowerShell/issues/13829 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f477cf03854523ca6f623d4095bd5a71d035434c010b3eb48548bbcce3ec5226/PowerShell/PowerShell/issues/13829 |
| og:image:alt | Steps to reproduce Windows Server 2016 -1607 14393.3986 and Microsoft Windows 10.0.19041 both with. PowerShell-7.0.3-win-x86 Get-Counter '\Memory\Available MBytes' interesting enough: pwsh -command... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jmiller76 |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| 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 | 0ddf53eb35c87f1f8df13dbf75c3bdadbfc6e969 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width