Skip to content

OSX crash complaining of operation in progress in another thread when fork() was called #32499

@elnur

Description

@elnur
ISSUE TYPE
  • Bug Report
COMPONENT NAME
  • lookup
ANSIBLE VERSION
ansible 2.4.1.0
  config file = /Users/elnur/proj/foo/ansible.cfg
  configured module search path = [u'/Users/elnur/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/Cellar/ansible/2.4.1.0/libexec/lib/python2.7/site-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 2.7.14 (default, Oct  6 2017, 11:26:02) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)]
CONFIGURATION
RETRY_FILES_ENABLED(/Users/elnur/proj/foo/ansible.cfg) = False

I have system variables set in .bash_profile:

export ANSIBLE_ETCD_URL=http://etcd.cloud.internal:2379
export ANSIBLE_ETCD_VERSION=v2
OS / ENVIRONMENT

Mac OS X High Sierra with latest updates. Ansible is installed using brew.

SUMMARY

Can't do an etcd lookup since upgrading to 2.4. Worked fine before 2.4.

STEPS TO REPRODUCE
- hosts: localhost
  gather_facts: yes

  pre_tasks:
    - debug:
        msg: "{{ lookup('etcd', 'deployment/environment') }}"
EXPECTED RESULTS
PLAY [localhost] **********************************************************************************************************************

TASK [Gathering Facts] ****************************************************************************************************************
ok: [localhost]

TASK [debug] **************************************************************************************************************************
ok: [localhost] => {
    "changed": false,
    "msg": "development"
}

PLAY RECAP ****************************************************************************************************************************
localhost                  : ok=2    changed=0    unreachable=0    failed=0
ACTUAL RESULTS
PLAY [localhost] **********************************************************************************************************************

TASK [Gathering Facts] ****************************************************************************************************************
ok: [localhost]

TASK [debug] **************************************************************************************************************************
objc[22402]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called.
objc[22402]: +[__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.

Ansible just hangs after outputting that error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects_2.4This issue/PR affects Ansible v2.4bugThis issue/PR relates to a bug.macosmacOS communitysupport:coreThis issue/PR relates to code supported by the Ansible Engineering Team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions