Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Powershell 6.1.0 on MacOS crashes with "Segmentation fault: 11" when trying to #7896

Closed
fckbo opened this issue Sep 29, 2018 · 4 comments
Closed
Labels
Resolution-Answered The question is answered. WG-Remoting PSRP issues with any transport layer

Comments

@fckbo
Copy link

fckbo commented Sep 29, 2018

Steps to reproduce

install powershell
- brew update
- brew cask install powershell

run it
- pwsh

$cred=Get-Credential
Enter-PSSession -ComputerName '10.11.10.133' -Credential $cred -Authentication Negotiate

Then Powershell crashes with the message:
Segmentation fault: 11

Expected behavior

PowerShell should connect to remote system

Actual behavior

PowerShell crashes

Environment data

MacOS version: 10.13.6
Remote win 2016 server can be accessed from another Win2016 server with test-wsman, winrs and PowerShell

image
image

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.1.0
PSEdition                      Core
GitCommitId                    6.1.0
OS                             Darwin 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
@iSazonov
Copy link
Collaborator

It is not supported https://github.com/PowerShell/psl-omi-provider#connecting-from-linux-to-windows
Although this should not fall in "Segmentation fault" - "Platform is not supported" user friendly message is expected.

/cc @dantraMSFT

@iSazonov iSazonov added the WG-Remoting PSRP issues with any transport layer label Sep 30, 2018
@fckbo
Copy link
Author

fckbo commented Sep 30, 2018

Thx for your answer,

reading the Microsoft documentation https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_remote_requirements?view=powershell-6, the "Basic Authentication Limitations on Linux and macOS
" chapter actually highlights NTLM as an alternative to https with basic auth.
Is this documentation obsolete ?

Thx

@iSazonov iSazonov added the Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a label Oct 8, 2018
@SteveL-MSFT SteveL-MSFT added this to the Future milestone Oct 9, 2018
@SteveL-MSFT SteveL-MSFT added Issue-Bug Issue has been identified as a bug in the product Documentation Needed in this repo Documentation is needed in this repo and removed Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a labels Oct 9, 2018
@SteveL-MSFT
Copy link
Member

We should fix the crash and return a better error message. I believe NTLM and Kerberos is not supported on macOS due to unavailability of required libraries. The doc should be updated.

@TravisEz13
Copy link
Member

I cannot currently repro this issue:

Enter-PSSession : Connecting to remote server *** failed with the following error message : MI_RESULT_FAILED For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ Enter-PSSession -ComputerName *** -Cred ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidArgument: (tplunkhp.ntdev.corp.microsoft.com:String) [Enter-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed

@TravisEz13 TravisEz13 removed their assignment Apr 23, 2019
@TravisEz13 TravisEz13 removed this from the 7.0-Consider milestone Apr 23, 2019
@iSazonov iSazonov added Resolution-Answered The question is answered. and removed Issue-Bug Issue has been identified as a bug in the product labels May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Answered The question is answered. WG-Remoting PSRP issues with any transport layer
Projects
None yet
Development

No branches or pull requests

6 participants
@joeyaiello @fckbo @TravisEz13 @SteveL-MSFT @iSazonov and others