Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

PowerShell causes Segmentation Fault with Find-Command on Linux when network is connected through VPN #20

@SteveL-MSFT

Description

@SteveL-MSFT

From @hsaito on September 25, 2016 22:5

Steps to reproduce

  1. Start Powershell
  2. Prompt is displayed
  3. Type in Find-Command
  4. A segmentation fault occurs

Expected behavior

It should not cause a segmentation fault, and should display a list of commands.

strace below:

PS /home/hideki>                           Find-Command                                                                                                                                               
) = 0
futex(0x93c188, FUTEX_WAKE_PRIVATE, 1)  = 0
gettid()                                = 28897
clone(child_stack=0x7f74317b8fb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f74317b99d0, tls=0x7f74317b9700, child_tidptr=0x7f74317b99d0) = 28917
sched_getparam(28917, [0])              = 0
sched_getscheduler(28917)               = 0 (SCHED_OTHER)
sched_get_priority_max(SCHED_OTHER)     = 0
sched_get_priority_min(SCHED_OTHER)     = 0
sched_setscheduler(28917, SCHED_OTHER, [0]) = 0
write(168, "*", 1)                      = 1
sched_yield()                           = 0
sched_yield()                           = 0
sched_yield()                           = 0
futex(0x93c1b4, FUTEX_WAIT_PRIVATE, 9, NULL <unfinished ...>
+++ killed by SIGSEGV +++
zsh: segmentation fault  strace powershell

Actual behavior

Powershell segfaults and does not display a list of commands.

Environment data

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.10                                                                                                                                                       
CLRVersion                                                                                                                                                                                           
WSManStackVersion              3.0                                                                                                                                                                   
PSRemotingProtocolVersion      2.3                                                                                                                                                                   
SerializationVersion           1.1.0.1     

Copied from original issue: PowerShell/PowerShell#2356

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions