Title: 'SysLogProvider.cs' is using wrong native library name for P/Invoke calls · Issue #5577 · PowerShell/PowerShell · GitHub
Open Graph Title: 'SysLogProvider.cs' is using wrong native library name for P/Invoke calls · Issue #5577 · PowerShell/PowerShell
X Title: 'SysLogProvider.cs' is using wrong native library name for P/Invoke calls · Issue #5577 · PowerShell/PowerShell
Description: The native library name used for P/Invoke in SysLogProvider.cs is psl-native, which is wrong. The powershell native library for Unix platforms is libpsl-native. I have seen test failures caused by this: WebListener -> /home/travis/build/...
Open Graph Description: The native library name used for P/Invoke in SysLogProvider.cs is psl-native, which is wrong. The powershell native library for Unix platforms is libpsl-native. I have seen test failures caused by ...
X Description: The native library name used for P/Invoke in SysLogProvider.cs is psl-native, which is wrong. The powershell native library for Unix platforms is libpsl-native. I have seen test failures caused by ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/5577
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"'SysLogProvider.cs' is using wrong native library name for P/Invoke calls","articleBody":"The native library name used for P/Invoke in `SysLogProvider.cs` is [`psl-native`](https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/utils/tracing/SysLogProvider.cs#L368), which is wrong. The powershell native library for Unix platforms is `libpsl-native`.\r\n\r\nI have seen test failures caused by this:\r\n```\r\n WebListener -\u003e /home/travis/build/PowerShell/PowerShell/test/tools/WebListener/bin/Linux/netcoreapp2.0/linux-x64/WebListener.dll\r\n WebListener -\u003e /home/travis/build/PowerShell/PowerShell/test/tools/WebListener/bin/\r\nUnhandled Exception: System.TypeInitializationException: The type initializer for 'System.Management.Automation.Tracing.PSEtwLog' threw an exception. ---\u003e System.TypeInitializationException: The type initializer for 'System.Management.Automation.Tracing.PSSysLogProvider' threw an exception. ---\u003e System.DllNotFoundException: Unable to load DLL 'psl-native': The specified module or one of its dependencies could not be found.\r\n (Exception from HRESULT: 0x8007007E)\r\n at System.Management.Automation.Tracing.NativeMethods.OpenLog(IntPtr ident, SysLogPriority facility)\r\n at System.Management.Automation.Tracing.SysLogProvider..ctor(String applicationId, PSLevel level, PSKeyword keywords, PSChannel channels)\r\n at System.Management.Automation.Tracing.PSSysLogProvider..cctor()\r\n --- End of inner exception stack trace ---\r\n at System.Management.Automation.Tracing.PSSysLogProvider..ctor()\r\n at System.Management.Automation.Tracing.PSEtwLog..cctor()\r\n --- End of inner exception stack trace ---\r\n at System.Management.Automation.Tracing.PSEtwLog.LogOperationalInformation(PSEventId id, PSOpcode opcode, PSTask task, PSKeyword keyword, Object[] args)\r\n at Microsoft.PowerShell.UnmanagedPSEntry.Start(String consoleFilePath, String[] args, Int32 argc)\r\n at Microsoft.PowerShell.ManagedPSEntry.Main(String[] args) in /home/travis/build/PowerShell/PowerShell/src/powershell/Program.cs:line 23\r\n```","author":{"url":"https://github.com/daxian-dbw","@type":"Person","name":"daxian-dbw"},"datePublished":"2017-11-29T17:57:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/5577/PowerShell/issues/5577"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e4f9e5ac-eba3-92a9-c78e-5188061311d2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4DC:334E8C:4743C6C:6450637:6A56F017 |
| html-safe-nonce | c6cab8d755e12b6dc7991cc1a53fe495067fa5e0f400c3b0d4e2b1ae1bb80f9f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNERDOjMzNEU4Qzo0NzQzQzZDOjY0NTA2Mzc6NkE1NkYwMTciLCJ2aXNpdG9yX2lkIjoiNTY4MzA0OTM3MjkyNzMyNDE4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fa9b2483782f8f673860a38af0d5dfb757f2d320adc5ddf0f97ebb03ac069c68 |
| hovercard-subject-tag | issue:277850532 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/5577/issue_layout |
| twitter:image | https://opengraph.githubassets.com/06442c56b21c5a9cf075fa02f9fe94309bcf231fbe63674787a8a713c1ab5de2/PowerShell/PowerShell/issues/5577 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/06442c56b21c5a9cf075fa02f9fe94309bcf231fbe63674787a8a713c1ab5de2/PowerShell/PowerShell/issues/5577 |
| og:image:alt | The native library name used for P/Invoke in SysLogProvider.cs is psl-native, which is wrong. The powershell native library for Unix platforms is libpsl-native. I have seen test failures caused by ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | daxian-dbw |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5220a278731283038daf0ed00b41f06ef7ff9539020ecc806c5c5a0fb6bda25a |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8684ae1a81cd3e4ef219b241179982bbda1a5b1f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width