Powershell: v6.0.1 Segmentation fault - Debian 9.x

Created on 1 Mar 2018  Â·  20Comments  Â·  Source: PowerShell/PowerShell

same as #4055 , #4361 ; already reviewed #4320

Steps to reproduce

sudo apt remove --purge powershell
sudo apt install libc6 libgcc1 libgssapi-krb5-2 liblttng-ust0 libstdc++6 libcurl3 libunwind8 libuuid1 zlib1g libssl1.0.2 libicu57 libssl1.0.0 libssl1.0.2 libssl1.1 libicu52 libicu57 curl gnupg apt-transport-https
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch main" > /etc/apt/sources.list.d/microsoft.list'
sudo apt update
sudo apt install -y powershell
pwsh

Expected behavior

expected normal working bahavior

Actual behavior

after a few seconds at shell prompt, it will 'Segmentation fault'

Environment data

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.0.1
PSEdition                      Core
GitCommitId                    v6.0.1
OS                             Linux 4.14.0-0.bpo.3-amd64 #1 SMP Debian 4.14.13-1~bpo9+1 (2018-01-14)
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

AppImage version does not Segfault; however i cannot use it because unable to install PowerCLI in AppImage

Area-Maintainers-Build OS-Linux

Most helpful comment

That's interesting @anmenaga

I had installed libssl1.0.0 from a previous version of Debian for compatibility with an app that needed that version, one of the only 5 local packages I have installed in my system.

I removed it now... and Powershell does not segfault!

All 20 comments

@meoso to gather more context - in your case is it a clean installation of Debian9 or an upgrade?

new install, i will edit original post as per standard template.

I have the same issue.

Let me know if you want/need other details.

@MarcosCC can you please post output of $PSVersionTable ? Thanks.

Here:

$PSVersionTable

Name Value
---- -----
PSVersion 6.0.1
PSEdition Core
GitCommitId v6.0.1
OS Linux 4.15.0-1-amd64 #1 SMP Debian 4.15.4-1 (2018-02-18)
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

@meoso @MarcosCC Can you please give an overview how you deploy your repro machines (e.g. where the image is taken from, what configuration changes are done, what is in /etc/apt/sources.list)?

I've tried on the following versions, but could Not repro the segfault...

  • Stable: Linux 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23)
  • Testing: Linux 4.14.0-3-amd64 #1 SMP Debian 4.14.17-1 (2018-02-14)
  • Unstable: Linux 4.15.0-1-amd64 #1 SMP Debian 4.15.4-1 (2018-02-18)

This is a quite fresh Debian Testing install. Instead of "linux-latest" I
have de 4.15 kernel, also from testing (the issue was happening before in
4.14 too anyway). I have KDE Full installed, python3, cups, owncloud
server, standard LAMP server, NVIDIA proprietary drivers. I do not touch
much of the /etc files anyway.
I have steam so I had to enable multiarch.

My sources.list:
deb http://deb.debian.org/debian/ buster main non-free contrib
deb-src http://deb.debian.org/debian/ buster main non-free contrib
deb http://security.debian.org/debian-security buster/updates main contrib
non-free
deb-src http://security.debian.org/debian-security buster/updates main
contrib non-free
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
deb
http://download.owncloud.org/download/repositories/production/Debian_9.0/ /
deb http://download.opensuse.org/repositories/home:/strycore/Debian_9.0/ ./
deb [arch=amd64]
https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch
main

I have a m.2 ssd and 2 hard disks in software raid, all ext4, not
encrypted, no lvm

Cheers,
Marcos

On Sat, 10 Mar 2018 at 07:12 Andrew notifications@github.com wrote:

@meoso https://github.com/meoso @MarcosCC https://github.com/marcoscc
Can you please give an overview how you deploy your repro machines (e.g.
where the image is taken from, what configuration changes are done, what is
in /etc/apt/sources.list)?

I've tried on the following versions, but could Not repro the segfault...

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/PowerShell/PowerShell/issues/6287#issuecomment-371971836,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC8dC2ypu4fc-75zlTjiq_Tk4K1NsKRLks5tcwxOgaJpZM4SZAJg
.

Same issue. Debian 9 unstable, upgraded from 7->8->9.

Name                           Value                                                                                                                         
----                           -----                                                                                                                         
PSVersion                      6.0.1                                                                                                                         
PSEdition                      Core                                                                                                                          
GitCommitId                    v6.0.1                                                                                                                        
OS                             Linux 4.14.0-3-amd64 #1 SMP Debian 4.14.13-1 (2018-01-14)                                                                     
Platform                       Unix                                                                                                                          
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                       
PSRemotingProtocolVersion      2.3                                                                                                                           
SerializationVersion           1.1.0.1                                                                                                                       
WSManStackVersion              3.0

gdb.txt

Debian 9 Stable+Backports. Upgraded from 7>8>9.

/etc/apt/sources.list

deb http://deb.debian.org/debian/ stable main contrib non-free
deb-src http://deb.debian.org/debian/ stable main contrib non-free

deb http://deb.debian.org/debian/ stable-updates main contrib non-free
deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free

deb http://deb.debian.org/debian-security stable/updates main contrib non-free
deb-src http://deb.debian.org/debian-security stable/updates main contrib non-free

deb http://ftp.debian.org/debian stretch-backports main contrib non-free
deb-src http://ftp.debian.org/debian stretch-backports main contrib non-free

deb [arch=amd64] http://www.deb-multimedia.org stable contrib non-free

uname -a
Linux XXXX 4.14.0-0.bpo.3-amd64 #1 SMP Debian 4.14.13-1~bpo9+1 (2018-01-14) x86_64 GNU/Linux

Just got updated to 6.0.2:

$PSVersionTable

Name Value
---- -----
PSVersion 6.0.2
PSEdition Core
GitCommitId v6.0.2
OS Linux 4.15.0-1-amd64 #1 SMP Debian 4.15.4-1 (2018-02-18)
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

And got the segmentation fault again,

what can we provide to help this along?

Hi,
I am facing same issue here. In my case, I have a Debian 8 upgraded to 9:

$PSVersionTable

Name Value
---- -----
PSVersion 6.0.2
PSEdition Core
GitCommitId v6.0.2
OS Linux 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02)
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

New update:
Name Value
---- -----
PSVersion 6.1.0-preview.1
PSEdition Core
GitCommitId v6.1.0-preview.1
OS Linux 4.15.0-1-amd64 #1 SMP Debian 4.15.4-1 (2018-02-18)
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

SegFault still happening.

Haha, I also confirm that the Update does not help!

How could we workaround it? I am in development face and I am in standby...

Regards,

PS> $PSVersionTable                                                                                                      

Name                           Value
----                           -----
PSVersion                      6.1.0-preview.1
PSEdition                      Core
GitCommitId                    v6.1.0-preview.1
OS                             Linux 4.14.0-0.bpo.3-amd64 #1 SMP Debian 4.14.13-1~bpo9+1 (2018-01-14)
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0


PS > Segmentation fault

This seems to be a duplicate of #6190 .
In some situations .NET Core is loading wrong version of OpenSSL library.
As far as I can tell from discussion in that thread - they've fixed it, but PowerShell will be able to take advantage of the fix only after it is moved to v2.1 of .NET Core.
Somebody also reported a workaround by using symlinks - here.

That's interesting @anmenaga

I had installed libssl1.0.0 from a previous version of Debian for compatibility with an app that needed that version, one of the only 5 local packages I have installed in my system.

I removed it now... and Powershell does not segfault!

Nailed it!

Thank you guys for the feedback!

I confirm, it works if uninstall old versions of libssl

sudo apt-get remove libssl1.0.0 works for me

Was this page helpful?
0 / 5 - 0 ratings