Title: MshHostUserInterface.cs: Race condition referencing and setting systemTranscript field. · Issue #5799 · PowerShell/PowerShell · GitHub
Open Graph Title: MshHostUserInterface.cs: Race condition referencing and setting systemTranscript field. · Issue #5799 · PowerShell/PowerShell
X Title: MshHostUserInterface.cs: Race condition referencing and setting systemTranscript field. · Issue #5799 · PowerShell/PowerShell
Description: Currently, the systemTranscript field is updated by StopAllTranscribing and GetSystemTranscriptOption; however, GetSystemTranscriptOption updates the field within a lock but returns the field value outside the lock. From the code, the im...
Open Graph Description: Currently, the systemTranscript field is updated by StopAllTranscribing and GetSystemTranscriptOption; however, GetSystemTranscriptOption updates the field within a lock but returns the field value...
X Description: Currently, the systemTranscript field is updated by StopAllTranscribing and GetSystemTranscriptOption; however, GetSystemTranscriptOption updates the field within a lock but returns the field value...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/5799
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"MshHostUserInterface.cs: Race condition referencing and setting systemTranscript field.","articleBody":"Currently, the systemTranscript field is updated by StopAllTranscribing and GetSystemTranscriptOption; however, GetSystemTranscriptOption updates the field within a lock but returns the field value outside the lock. From the code, the implication is the value just set in the field should also be returned but a race can occur with StopAllTranscribing that can result in a null reference being returned.\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\nCode review\r\n\r\nExpected behavior\r\n-----------------\r\n\r\nEither a comment clarify the intent or function should return the updated field value.\r\n\r\nActual behavior\r\n---------------\r\n\r\nNot deterministic\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\nPSVersion 6.1.0-preview.535\r\nPSEdition Core\r\nGitCommitId v6.1.0-preview.535\r\nOS Microsoft Windows 10.0.17070\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n","author":{"url":"https://github.com/dantraMSFT","@type":"Person","name":"dantraMSFT"},"datePublished":"2018-01-05T18:22:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/5799/PowerShell/issues/5799"}
| 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:ebaca62a-3858-0e3a-51e5-20757d3060f4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC2C:36335C:3A9928:4F4CB7:6A570034 |
| html-safe-nonce | fa69875209ba19182cacb116626252ab8d8364002b0d9769f236582fb05dd71e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzJDOjM2MzM1QzozQTk5Mjg6NEY0Q0I3OjZBNTcwMDM0IiwidmlzaXRvcl9pZCI6IjEzMDE3NzEyNDMwNzU2MDA0MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 41ab5d9eded050655f53064dda1fbfb8663cac814d4230e7b2d9169e34ab8bbe |
| hovercard-subject-tag | issue:286366158 |
| 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/5799/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b8f440d332a8daade549f83f958becc65105726cd18e0a08945f729e47cb21e7/PowerShell/PowerShell/issues/5799 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b8f440d332a8daade549f83f958becc65105726cd18e0a08945f729e47cb21e7/PowerShell/PowerShell/issues/5799 |
| og:image:alt | Currently, the systemTranscript field is updated by StopAllTranscribing and GetSystemTranscriptOption; however, GetSystemTranscriptOption updates the field within a lock but returns the field value... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dantraMSFT |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb29e5f807bd95e41196adfbc6d28f9af12d89830d8b684f3e871774ddff2fc |
| 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 | b056788a129fb0194b61f2ebb4c43f6a9f4dfd27 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width