Skip to content

Event logging fails on macOS 10.13 #7432

Closed

Description

Travis CI update macOS to 10.13.3 from 10.12.6 and the logging tests for macOS started to fail after that.
Here are a few failed builds:
https://travis-ci.org/PowerShell/PowerShell/jobs/410647719#L4675
https://travis-ci.org/PowerShell/PowerShell/jobs/410584884#L5560
https://travis-ci.org/PowerShell/PowerShell/jobs/410959434#L5523

The logging tests for macOS is marked as pending for now by PR #7433.

I tried the script block logging on macOS 10.12.6 with the file powershell.config.json located in $PSHome and the logging works fine -- expected script invocation related events show up in Console. However, when starting pwsh with -settings <config.json>, Console shows a bunch of security exceptions (see an example screenshot below).

Be noted that, Travis Plunk (@TravisEz13) tried the scirpt block logging on his macOS (version 10.13.6), and Console consistently shows a bunch of security exception errors no matter by putting powershell.config.json under $PSHOME or by using -settngs <config.json>.

screen shot 2018-08-01 at 3 56 05 pm

Activity

  1. TravisEz13 commented on Aug 4, 2018

    @TravisEz13
    Member

    I've debugged and there is a code path loading the configuration before the -settingfile parameter has been parsed in Release configuration but not others. Here is the call stack
    image

  2. added 3 commits that reference this issue on Aug 4, 2018
    dbd1878
    10943a5
    3391e14
  3. dantraMSFT commented on Aug 9, 2018

    @dantraMSFT
    Contributor

    Fixed by #7449

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Resolution-FixedThe issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtime

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions