Skip to content

Module crashes on MacOS and kills sessionΒ #179

@acsanyi

Description

@acsanyi

Version 0.4.11 of this module causes a stack overflow on Mac systems and kills the active PowerShell session. The module doesn't even need to be used; simply importing it into a PowerShell session will invoke the problem.
Here's the exception: exception.txt

Affected systems

(Note these are just the ones we were able to test on):

  • MacOS 14.7 on M2 Pro
  • MacOS 15.2 on M2 Pro
  • MacOS 15.2 on M3 Pro

This happens on PS Core 7.4.5 and 7.4.6.

How to reproduce

Import the module into the current PowerShell session

Import-Module powershell-yaml

Then just wait. The crash should occur within a few minutes, but it seems to vary from system to system.

Additonal testing

I see this module uses two .Net DLLs, but manually loading them using [Reflection.Assembly]::LoadFile() doesn't have an effect, so I can only assume there's something else going on in the .psm1 file that's causing this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions