Title: Python Crashes when using this Plugin in OSX High Sierra · Issue #60 · jhaals/ansible-vault · GitHub
Open Graph Title: Python Crashes when using this Plugin in OSX High Sierra · Issue #60 · jhaals/ansible-vault
X Title: Python Crashes when using this Plugin in OSX High Sierra · Issue #60 · jhaals/ansible-vault
Description: Summary: Attempting to use this plugin on High Sierra is causing a python crash. Reproduced on both Python 2.7.14 and 3.6.2 (installed with brew). Unable to reproduce with other lookup plugins. Reproduction: A simple playbook with a debu...
Open Graph Description: Summary: Attempting to use this plugin on High Sierra is causing a python crash. Reproduced on both Python 2.7.14 and 3.6.2 (installed with brew). Unable to reproduce with other lookup plugins. Rep...
X Description: Summary: Attempting to use this plugin on High Sierra is causing a python crash. Reproduced on both Python 2.7.14 and 3.6.2 (installed with brew). Unable to reproduce with other lookup plugins. Rep...
Opengraph URL: https://github.com/jhaals/ansible-vault/issues/60
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python Crashes when using this Plugin in OSX High Sierra","articleBody":"**Summary:**\r\nAttempting to use this plugin on High Sierra is causing a python crash. Reproduced on both Python 2.7.14 and 3.6.2 (installed with brew). Unable to reproduce with other lookup plugins.\r\n\r\n**Reproduction:**\r\nA simple playbook with a debug step will do:\r\n```yaml\r\n- hosts: localhost\r\n tasks:\r\n - debug:\r\n msg: \"{{ lookup('vault', 'secret/dev/test', 'hello') }}\"\r\n```\r\n\r\n**Symptoms:**\r\nIn the terminal which executes this playbook, the output looks like:\r\n```\r\nPLAY [localhost] ***************************************************************\r\n\r\nTASK [Gathering Facts] *********************************************************\r\nok: [localhost]\r\n\r\nTASK [debug] *******************************************************************\r\nobjc[34976]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called.\r\nobjc[34976]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.\r\n```\r\n\r\n**Additional notes:**\r\nThis appears to be due to some low-level objective-C changes introduced in High Sierra. This article (http://sealiesoftware.com/blog/archive/2017/6/5/Objective-C_and_fork_in_macOS_1013.html) has more details. It also provides a workaround: Setting the environment variable `OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES`. Setting this before running ansible provides successful results.\r\n\r\nI'll be honest, I have no clue what the \"correct\" fix is here, or even if it can be made in this plugin (as opposed to ansible or python itself). Mostly I'm documenting this here in case others come across this issue - I hope someone finds this useful. I'm content with using the environment variable for the time being.","author":{"url":"https://github.com/ajrgrubbs","@type":"Person","name":"ajrgrubbs"},"datePublished":"2017-09-28T16:50:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/60/ansible-vault/issues/60"}
| 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:03d020fb-be3f-2c96-de34-0b07d538c39e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC5C:DAE6B:34E7A35:4636495:6A6551E9 |
| html-safe-nonce | c0ed15a78ad74d75ea0afa9ce3e9169482329de3962afb6d33e53c506e088de0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzVDOkRBRTZCOjM0RTdBMzU6NDYzNjQ5NTo2QTY1NTFFOSIsInZpc2l0b3JfaWQiOiI2MTg3MDY0MjE0NjEwNTk2MzI5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 12cd1c4ceb7640f84287cc2dc7543ed0f9f16a32e101948e2fd31d8649728155 |
| hovercard-subject-tag | issue:261388794 |
| 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/jhaals/ansible-vault/60/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4b3821d18e8e675bb6d7b8f62d774db192dbc409c3979e207d65941d50711945/jhaals/ansible-vault/issues/60 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4b3821d18e8e675bb6d7b8f62d774db192dbc409c3979e207d65941d50711945/jhaals/ansible-vault/issues/60 |
| og:image:alt | Summary: Attempting to use this plugin on High Sierra is causing a python crash. Reproduced on both Python 2.7.14 and 3.6.2 (installed with brew). Unable to reproduce with other lookup plugins. Rep... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ajrgrubbs |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b |
| turbo-cache-control | no-preview |
| go-import | github.com/jhaals/ansible-vault git https://github.com/jhaals/ansible-vault.git |
| octolytics-dimension-user_id | 68980 |
| octolytics-dimension-user_login | jhaals |
| octolytics-dimension-repository_id | 39492880 |
| octolytics-dimension-repository_nwo | jhaals/ansible-vault |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 39492880 |
| octolytics-dimension-repository_network_root_nwo | jhaals/ansible-vault |
| 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 | 309153364422b3c499922d1a2a6404910a58ed8e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width