New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
freeze on task with xml module #454
Comments
Thanks for reporting this. Would it be possible to attach an example snippet of the pool XML file, and also indicate how many items exist in the loop variable (kvm_vm). You may find setting:
Could have an effect on this, although from a first glance of the module source, it is not holding any LXML state across invocations. Looks like the module is somehow triggering a segfault in lxml, possibly by reusing some state. Can you please also confirm this does not happen at all with vanilla? I guess not -- memory corruption issues often don't present until the bad code has run a few iterations |
Ok, I have reproduced it locally. :) |
And to confirm, setting mitogen_task_isolation works around the problem. Still investigating root cause |
It looks like somehow a constructor is crashing:
And the crash is due to a NULL pointer dereference:
So at first take, the lxml C code is internally calling some CPython API that returns NULL without checking it, and somehow only when mitogen_task_isolation!=fork. This could potentially be related to the importer. Will try again with a debug build |
This is very weird, somehow an XPath constructor is being invoked with a NULL args tuple:
|
__pyx_tp_new_4lxml_5etree__XPathEvaluatorBase:219507 calls
The problem is |
The problem is related to Mitogen firing atexit handlers after module execution. |
At least 2 bugs here:
|
For the time being, use either |
This is now on the master branch and will make it into the next release. To be updated when a new release is made, subscribe to https://networkgenomics.com/mail/mitogen-announce/ Thanks for reporting this! |
i am sorry, but please reopen issue
i try with latest master 1eb08fb my playbook fail on task with module yum
log: https://www.pastiebin.com/5c13efce28e9e PS: with version 0.2.2 all works fine |
Thanks for letting me know. I will investigate shortly |
Hi there, This should now work on master, but there are some seemingly unrelated test failures at present. It may be better to wait for the next release. Thanks again for letting me know the fix was bad! |
Thank you so much. |
Hi, I am satisfied the test failures were not related to this change. Thanks again. |
asterisk 16 fax related changes
Have you tried the latest master version from Git?
yes
Mention your host and target OS and versions
Centos 7.5 on host and Centos 7.6 on target
Mention your host and target Python versions
python 2.7 on host and target
Hang up with mitogen v0.2.3, crash with mitogen from master branch
Role to create kvm VM:
Ansible task with xml module
Error on /var/log/messages
ansible output -vvvv
log.txt
The text was updated successfully, but these errors were encountered: