You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
running new-pssession in a newly built PowerShell should not cause the shell to exit #3476
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at System.Management.Automation.Remoting.PrioritySendDataCollection.Clear() in /home/testuser/src/github/PowerShell/src/System.Management.Automation/engine/remoting/fanin/PriorityCollection.cs:line 158
at System.Management.Automation.Remoting.Client.BaseClientTransportManager.CloseAsync() in /home/testuser/src/github/PowerShell/src/System.Management.Automation/engine/remoting/fanin/BaseTransportManager.cs:line 949
at System.Management.Automation.Remoting.Client.WSManClientSessionTransportManager.CloseAsync() in /home/testuser/src/github/PowerShell/src/System.Management.Automation/engine/remoting/fanin/WSManTransportManager.cs:line 1219
at System.Management.Automation.Remoting.Client.BaseClientTransportManager.Finalize() in /home/testuser/src/github/PowerShell/src/System.Management.Automation/engine/remoting/fanin/BaseTransportManager.cs:line 998
Environment data
>$PSVersionTable
Name Value
---------
PSVersion 6.0.0-alpha
PSEdition Core
PSCompatibleVersions {1.0,2.0,3.0,4.0...}
BuildVersion 3.0.0.0
GitCommitId v6.0.0-alpha.17-67-g42f2e3ca820d7fd7f9dd57f2bbb90e5da2ab2de0
CLRVersion
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
PS /home/testuser/src/github/PowerShell> uname -a
Linux centospsct 3.10.0-514.2.2.el7.x86_64 #1 SMP Tue Dec 6 23:06:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
ok - it boils down to a couple of missing symlinks - somewhere we should be sure that we create the following links in the location where powershell is dropped
Re macOS, without understanding the deeper issues: on macOS 10.12.5 with today's master branch, Start-PSPester no longer crashes (though 4 other tests fails).
fixed with commit 4df979a, the symlinks are now created for RedHatFamily os's. on macOS 10.12.5 I don't see the catastrophic failure. Michael Klement (@mklement0) which 4 tests are failing?
I'm going to close this now, please feel free to open another issue with more details for the other platforms. As for #4029, can we get a simpler repro? When I try those steps with a bogus credential I get a reasonable response (authentication failure)
Activity
JamesWTruher commentedon Apr 3, 2017
note that this is only on CentOS, Ubuntu does not have this issue
JamesWTruher commentedon Apr 3, 2017
ok - it boils down to a couple of missing symlinks - somewhere we should be sure that we create the following links in the location where powershell is dropped
otherwise, anyone who is doing dev builds and running tests (or just creating a new pssession) will see the shell fall over.
mklement0 commentedon Apr 6, 2017
Also happens on macOS 10.12.4.
lf- commentedon Apr 10, 2017
Reproduced with AUR package
powershell.SchmatzS commentedon Apr 20, 2017
Trying on macOS 10.12.4 to connect to Exchange Online Remote Powershell via:
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic -AllowRedirection
and getting the exact same error. How to fix that?
Thanks in advance ;-)
joeyaiello commentedon Apr 20, 2017
James Truher (@JamesWTruher) If this test is in our standard
Start-PSPesterinvocation, how do we catch it earlier on other platforms?JamesWTruher commentedon May 23, 2017
it looks like this is part of the build process. It appears that some symlinks aren't getting created. Investigating a fix now.
mklement0 commentedon May 24, 2017
Re macOS, without understanding the deeper issues: on macOS 10.12.5 with today's master branch,
Start-PSPesterno longer crashes (though 4 other tests fails).joeyaiello commentedon May 30, 2017
Can James Truher (@JamesWTruher) confirm? Just want to make sure we're repro-ing success on a totally clean machine.
JamesWTruher commentedon Jul 21, 2017
fixed with commit 4df979a, the symlinks are now created for RedHatFamily os's. on macOS 10.12.5 I don't see the catastrophic failure. Michael Klement (@mklement0) which 4 tests are failing?
I'm going to close this now, please feel free to open another issue with more details for the other platforms. As for #4029, can we get a simpler repro? When I try those steps with a bogus credential I get a reasonable response (authentication failure)
mklement0 commentedon Jul 22, 2017
James Truher (@JamesWTruher): Getting builds and tests to succeed on macOS is a moving target, unfortunately, which gets in the way of contributing.
For the latest symptoms on macOS, see #4324