Skip to content

Debug assert "array argument and ArrayLiteralAst differ in number of elements" while running ConsoleHost tests #5733

Closed

Description

Debug assert while running console tests.

Steps to reproduce

Start-PSBuild -Clean
Start-DevPowerShell
<repo root>\test\powershell\Host\ConsoleHost.Tests.ps1

Expected behavior

Tests pass

Actual behavior

FailFast: array argument and ArrayLiteralAst differ in number of elements

at System.Diagnostics.Debug.Assert(Boolean condition, String message, String detailMessage)
at System.Management.Automation.Diagnostics.Assert(Boolean condition, String whyThisShouldNeverHappen, String detailMessage) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\utils\assert.cs:line 196
at System.Management.Automation.Diagnostics.Assert(Boolean condition, String whyThisShouldNeverHappen) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\utils\assert.cs:line 131
at System.Management.Automation.NativeCommandParameterBinder.appendOneNativeArgument(ExecutionContext context, Object obj, ArrayLiteralAst argArrayAst, Boolean sawVerbatimArgumentMarker, Boolean usedQuotes) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\NativeCommandParameterBinder.cs:line 167
at System.Management.Automation.NativeCommandParameterBinder.BindParameters(Collection1 parameters) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\NativeCommandParameterBinder.cs:line 127 at System.Management.Automation.MinishellParameterBinderController.BindParameters(Collection1 parameters, Boolean outputRedirected, String hostName) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\MinishellParameterBinderController.cs:line 257
at System.Management.Automation.NativeCommandProcessor.GetProcessStartInfo(Boolean redirectOutput, Boolean redirectError, Boolean redirectInput, Boolean soloCommand) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\NativeCommandProcessor.cs:line 1150
at System.Management.Automation.NativeCommandProcessor.InitNativeProcess() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\NativeCommandProcessor.cs:line 416
at System.Management.Automation.NativeCommandProcessor.Prepare(IDictionary psDefaultParameterValues) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\NativeCommandProcessor.cs:line 311
at System.Management.Automation.CommandProcessorBase.DoPrepare(IDictionary psDefaultParameterValues) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\CommandProcessorBase.cs:line 419
at System.Management.Automation.Internal.PipelineProcessor.Start(Boolean incomingStream) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 1030
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 489
at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\runtime\Operations\MiscOps.cs:line 455
at System.Management.Automation.Interpreter.ActionCallInstruction6.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\CallInstruction.Generated.cs:line 569 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\Interpreter.cs:line 111 at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\LightLambda.Generated.cs:line 78 at System.Management.Automation.DlrScriptCommandProcessor.RunClause(Action1 clause, Object dollarUnderbar, Object inputToProcess) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\ScriptCommandProcessor.cs:line 516
at System.Management.Automation.DlrScriptCommandProcessor.Complete() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\ScriptCommandProcessor.cs:line 417
at System.Management.Automation.CommandProcessorBase.DoComplete() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\CommandProcessorBase.cs:line 614
at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 607
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 519
at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\runtime\Operations\MiscOps.cs:line 455
at System.Management.Automation.Interpreter.ActionCallInstruction6.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\CallInstruction.Generated.cs:line 569 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\Interpreter.cs:line 111 at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\LightLambda.Generated.cs:line 78 at System.Management.Automation.PSScriptCmdlet.RunClause(Action1 clause, Object dollarUnderbar, Object inputToProcess) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\runtime\CompiledScriptBlock.cs:line 2071
at System.Management.Automation.PSScriptCmdlet.DoEndProcessing() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\runtime\CompiledScriptBlock.cs:line 2011
at System.Management.Automation.CommandProcessorBase.Complete() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\CommandProcessorBase.cs:line 568
at System.Management.Automation.CommandProcessorBase.DoComplete() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\CommandProcessorBase.cs:line 614
at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 607
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 519
at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\runtime\Operations\MiscOps.cs:line 455
at System.Management.Automation.Interpreter.ActionCallInstruction6.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\CallInstruction.Generated.cs:line 569 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\Interpreter.cs:line 111 at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\LightLambda.Generated.cs:line 78 at System.Management.Automation.PSScriptCmdlet.RunClause(Action1 clause, Object dollarUnderbar, Object inputToProcess) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\runtime\CompiledScriptBlock.cs:line 2071
at System.Management.Automation.PSScriptCmdlet.DoEndProcessing() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\runtime\CompiledScriptBlock.cs:line 2011
at System.Management.Automation.CommandProcessorBase.Complete() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\CommandProcessorBase.cs:line 568
at System.Management.Automation.CommandProcessorBase.DoComplete() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\CommandProcessorBase.cs:line 614
at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 607
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 519
at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\runtime\Operations\MiscOps.cs:line 455
at System.Management.Automation.Interpreter.ActionCallInstruction6.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\CallInstruction.Generated.cs:line 569 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\Interpreter.cs:line 111 at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\LightLambda.Generated.cs:line 78 at System.Management.Automation.PSScriptCmdlet.RunClause(Action1 clause, Object dollarUnderbar, Object inputToProcess) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\runtime\CompiledScriptBlock.cs:line 2071
at System.Management.Automation.PSScriptCmdlet.DoEndProcessing() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\runtime\CompiledScriptBlock.cs:line 2011
at System.Management.Automation.CommandProcessorBase.Complete() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\CommandProcessorBase.cs:line 568
at System.Management.Automation.CommandProcessorBase.DoComplete() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\CommandProcessorBase.cs:line 614
at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 607
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 519
at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\runtime\Operations\MiscOps.cs:line 455
at System.Management.Automation.Interpreter.ActionCallInstruction6.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\CallInstruction.Generated.cs:line 569 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\Interpreter.cs:line 111 at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\LightLambda.Generated.cs:line 78 at System.Management.Automation.DlrScriptCommandProcessor.RunClause(Action1 clause, Object dollarUnderbar, Object inputToProcess) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\ScriptCommandProcessor.cs:line 516
at System.Management.Automation.DlrScriptCommandProcessor.Complete() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\ScriptCommandProcessor.cs:line 417
at System.Management.Automation.CommandProcessorBase.DoComplete() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\CommandProcessorBase.cs:line 614
at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 607
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 519
at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\runtime\Operations\MiscOps.cs:line 455
at System.Management.Automation.Interpreter.ActionCallInstruction6.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\CallInstruction.Generated.cs:line 569 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\Interpreter.cs:line 111 at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\LightLambda.Generated.cs:line 78 at System.Management.Automation.PSScriptCmdlet.RunClause(Action1 clause, Object dollarUnderbar, Object inputToProcess) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\runtime\CompiledScriptBlock.cs:line 2071
at System.Management.Automation.PSScriptCmdlet.DoEndProcessing() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\runtime\CompiledScriptBlock.cs:line 2011
at System.Management.Automation.CommandProcessorBase.Complete() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\CommandProcessorBase.cs:line 568
at System.Management.Automation.CommandProcessorBase.DoComplete() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\CommandProcessorBase.cs:line 614
at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 607
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 519
at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\runtime\Operations\MiscOps.cs:line 455
at System.Management.Automation.Interpreter.ActionCallInstruction6.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\CallInstruction.Generated.cs:line 569 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\Interpreter.cs:line 111 at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\LightLambda.Generated.cs:line 78 at System.Management.Automation.DlrScriptCommandProcessor.RunClause(Action1 clause, Object dollarUnderbar, Object inputToProcess) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\ScriptCommandProcessor.cs:line 516
at System.Management.Automation.DlrScriptCommandProcessor.Complete() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\ScriptCommandProcessor.cs:line 417
at System.Management.Automation.CommandProcessorBase.DoComplete() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\CommandProcessorBase.cs:line 614
at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 607
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 519
at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\runtime\Operations\MiscOps.cs:line 455
at System.Management.Automation.Interpreter.ActionCallInstruction6.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\CallInstruction.Generated.cs:line 569 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\Interpreter.cs:line 111 at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\LightLambda.Generated.cs:line 78 at System.Management.Automation.PSScriptCmdlet.RunClause(Action1 clause, Object dollarUnderbar, Object inputToProcess) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\runtime\CompiledScriptBlock.cs:line 2071
at System.Management.Automation.PSScriptCmdlet.DoEndProcessing() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\runtime\CompiledScriptBlock.cs:line 2011
at System.Management.Automation.CommandProcessorBase.Complete() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\CommandProcessorBase.cs:line 568
at System.Management.Automation.CommandProcessorBase.DoComplete() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\CommandProcessorBase.cs:line 614
at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 607
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 519
at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\runtime\Operations\MiscOps.cs:line 455
at System.Management.Automation.Interpreter.ActionCallInstruction6.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\CallInstruction.Generated.cs:line 569 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\Interpreter.cs:line 111 at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\LightLambda.Generated.cs:line 78 at System.Management.Automation.DlrScriptCommandProcessor.RunClause(Action1 clause, Object dollarUnderbar, Object inputToProcess) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\ScriptCommandProcessor.cs:line 516
at System.Management.Automation.DlrScriptCommandProcessor.Complete() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\ScriptCommandProcessor.cs:line 417
at System.Management.Automation.CommandProcessorBase.DoComplete() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\CommandProcessorBase.cs:line 614
at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 607
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 519
at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\runtime\Operations\MiscOps.cs:line 455
at System.Management.Automation.Interpreter.ActionCallInstruction6.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\CallInstruction.Generated.cs:line 569 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\ControlFlowInstructions.cs:line 356 at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\Interpreter.cs:line 111 at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\interpreter\LightLambda.Generated.cs:line 78 at System.Management.Automation.DlrScriptCommandProcessor.RunClause(Action1 clause, Object dollarUnderbar, Object inputToProcess) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\ScriptCommandProcessor.cs:line 516
at System.Management.Automation.DlrScriptCommandProcessor.Complete() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\ScriptCommandProcessor.cs:line 417
at System.Management.Automation.CommandProcessorBase.DoComplete() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\CommandProcessorBase.cs:line 614
at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 607
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\pipeline.cs:line 519
at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\hostifaces\LocalPipeline.cs:line 426
at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\hostifaces\LocalPipeline.cs:line 622
at System.Management.Automation.Runspaces.PipelineThread.WorkerProc() in D:\OpenPowershell\aditya\PowerShell\src\System.Management.Automation\engine\hostifaces\LocalPipeline.cs:line 1307
at System.Threading.Thread.ThreadMain_ThreadStart()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

at System.Environment.FailFast(System.String, System.Exception)
at System.Management.Automation.Diagnostics.Assert(Boolean, System.String, System.String)
at System.Management.Automation.Diagnostics.Assert(Boolean, System.String)
at System.Management.Automation.NativeCommandParameterBinder.appendOneNativeArgument(System.Management.Automation.ExecutionContext, System.Object, System.Management.Automation.Language.ArrayLiteralAst, Boolean, Boolean)
at System.Management.Automation.NativeCommandParameterBinder.BindParameters(System.Collections.ObjectModel.Collection1<System.Management.Automation.CommandParameterInternal>) at System.Management.Automation.MinishellParameterBinderController.BindParameters(System.Collections.ObjectModel.Collection1<System.Management.Automation.CommandParameterInternal>, Boolean, System.String)
at System.Management.Automation.NativeCommandProcessor.GetProcessStartInfo(Boolean, Boolean, Boolean, Boolean)
at System.Management.Automation.NativeCommandProcessor.InitNativeProcess()
at System.Management.Automation.NativeCommandProcessor.Prepare(System.Collections.IDictionary)
at System.Management.Automation.CommandProcessorBase.DoPrepare(System.Collections.IDictionary)
at System.Management.Automation.Internal.PipelineProcessor.Start(Boolean)
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.ActionCallInstruction6[[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.Action1<System.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.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.ActionCallInstruction6[[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.EnterTryCatchFinallyInstruction.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.EnterTryCatchFinallyInstruction.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.PSScriptCmdlet.RunClause(System.Action1<System.Management.Automation.Language.FunctionContext>, System.Object, System.Object)
at System.Management.Automation.PSScriptCmdlet.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.ActionCallInstruction6[[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.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.PSScriptCmdlet.RunClause(System.Action1<System.Management.Automation.Language.FunctionContext>, System.Object, System.Object)
at System.Management.Automation.PSScriptCmdlet.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.ActionCallInstruction6[[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.PSScriptCmdlet.RunClause(System.Action1<System.Management.Automation.Language.FunctionContext>, System.Object, System.Object)
at System.Management.Automation.PSScriptCmdlet.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.ActionCallInstruction6[[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.Action1<System.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.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.ActionCallInstruction6[[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.EnterTryCatchFinallyInstruction.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.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.PSScriptCmdlet.RunClause(System.Action1<System.Management.Automation.Language.FunctionContext>, System.Object, System.Object)
at System.Management.Automation.PSScriptCmdlet.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.ActionCallInstruction6[[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.Action1<System.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.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.ActionCallInstruction6[[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.EnterTryCatchFinallyInstruction.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.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.PSScriptCmdlet.RunClause(System.Action1<System.Management.Automation.Language.FunctionContext>, System.Object, System.Object)
at System.Management.Automation.PSScriptCmdlet.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.ActionCallInstruction6[[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.Action1<System.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.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.ActionCallInstruction6[[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.Action1<System.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.PipelineThread.WorkerProc()
at System.Threading.Thread.ThreadMain_ThreadStart()
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.0.0-rc.2
PSEdition                      Core
GitCommitId                    v6.0.0-rc.2-70-gc17a975683a0df639030521777d9cdc764784799
OS                             Microsoft Windows 10.0.16299
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Activity

  1. added
    WG-Engine
    on Dec 22, 2017
  2. dantraMSFT commented on Jan 9, 2018

    @dantraMSFT
    Contributor

    This can be repro'd by executing the test step directly from a debug build of pwsh.

    $powershell = ".\src\powershell-win-core\bin\Debug\netcoreapp2.0\win7-x64\publish\pwsh"
    $powershell -noprofile { $args[0] } -args 1,(2,3)
    

    The assert is occurring in the launching the PowerShell process.

    The Diagnostics.Assert statement in NativeCommandParameterBinder.cs is not a valid assert for the encodedarguments parameter. For that case, argArrayAst is not null but the parameter value is an encoded string, not the value array itself.
    NOTE: I have not confirmed that this is the only issue.

    See PR #5301 for the change in NativeCommandParameterBinder.cs

  3. modified the milestones: 6.0.0-GA, on Jan 11, 2018
  4. added a commit that references this issue on Jan 12, 2018
    d911bac
  5. added a commit that references this issue on Aug 6, 2026
    4e6a52e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Resolution-FixedWG-Engine

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions