[Bug 1782647] Re: py3.7 deadlock in threading
Corey Bryant
corey.bryant at canonical.com
Mon Jan 7 13:44:40 UTC 2019
This was narrowed down to eventlet [1] therefore I'm dropping Python
from affected projects.
[1] https://github.com/eventlet/eventlet/issues/508
** No longer affects: python3.7 (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3.7 in Ubuntu.
https://bugs.launchpad.net/bugs/1782647
Title:
py3.7 deadlock in threading
Status in Designate:
Fix Released
Status in eventlet:
New
Status in Python:
New
Bug description:
I have a feeling this is an issue with a dependency that designate is
using, or even with py3.7 itself, and not directly a designate issue.
I'm hitting something similar in heat and will append the bug with
details there once I get them narrowed down to a simple recreate.
Things seem to get hung up in:
File "/usr/lib/python3.7/threading.py", line 296, in wait
waiter.acquire()
and:
File "/usr/lib/python3.7/threading.py", line 1048, in _wait_for_tstate_lock
elif lock.acquire(block, timeout):
To reproduce with designate, update tox.ini with the following:
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
[tox]
minversion = 2.0
-envlist = py35,py27,flake8
+envlist = py35,py37,py27,flake8
skipsdist = True
[testenv]
@@ -39,6 +39,12 @@ commands =
{[testenv]commands}
stestr run '{posargs}'
+[testenv:py37]
+basepython = python3.7
+commands =
+ {[testenv]commands}
+ stestr run 'designate\.tests\.test_workers\.test_processing\.TestProcessingExecutor\.(test_execute_multiple_tasks)'
+
[testenv:docs]
basepython = python3
deps =
Notice that while updating tox with a py3.7 target, that also runs a
single test, test_execute_multiple_tasks. The test will hang and
require a Control-C to cancel it. The results look like this:
https://paste.ubuntu.com/p/SwXsCcghjt/
To recreate with py3.7 you can use Ubuntu Cosmic like so:
lxc launch ubuntu-daily:cosmic c1
lxc exec c1 /bin/bash
root at c1:~# git clone https://github.com/openstack/designate
root at c1:~# #update tox.ini as shown above
root at c1:~# tox -e py37
To manage notifications about this bug go to:
https://bugs.launchpad.net/designate/+bug/1782647/+subscriptions
More information about the foundations-bugs
mailing list