[issue34173] [3.7] deadlock in /usr/lib/python3.7/concurrent/futures/thread.py

2019-01-07 Thread Corey Bryant


Corey Bryant  added the comment:

I think we can close this issue. It was narrowed down to eventlet. Please
see: https://github.com/eventlet/eventlet/issues/508

On Tue, Jul 24, 2018 at 1:54 PM Karthikeyan Singaravelan <
rep...@bugs.python.org> wrote:

>
> Karthikeyan Singaravelan  added the comment:
>
> Sorry for the noise about the title change. It seems you have edited it
> while I was typing my comment. There was a form error while I tried submit
> but I ignored it to try again and it had set my title. I have reverted back
> to your edit.
>
> Thanks
>
> --
> title: [3.7] possible race condition in
> /usr/lib/python3.7/concurrent/futures/thread.py -> [3.7] deadlock in
> /usr/lib/python3.7/concurrent/futures/thread.py
>
> ___
> Python tracker 
> <https://bugs.python.org/issue34173>
> ___
>

--

___
Python tracker 
<https://bugs.python.org/issue34173>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34173] [3.7] possible race condition in /usr/lib/python3.7/concurrent/futures/thread.py

2018-07-20 Thread Corey Bryant


New submission from Corey Bryant :

I initially reported this on launchpad at 
https://bugs.launchpad.net/bugs/1782647.

I'm running a test for a project that hangs and requires a Control-C to cancel 
it. The results look like this: https://paste.ubuntu.com/p/SwXsCcghjt/

In narrowing down on this some more, the use of queue.SimpleQueue() seems to 
make the difference that causes the hang. If I switch that back to 
queue.Queue() (which was the case for py3.6) the hang goes away:

- self._work_queue = queue.Queue()
+ self._work_queue = queue.SimpleQueue()

To reproduce with OpenStack designate:

git clone https://github.com/openstack/designate.

Then, 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 =


And run: tox -e py37

--
components: Library (Lib)
messages: 322032
nosy: corey.bryant
priority: normal
severity: normal
status: open
title: [3.7] possible race condition in 
/usr/lib/python3.7/concurrent/futures/thread.py
type: behavior
versions: Python 3.7

___
Python tracker 
<https://bugs.python.org/issue34173>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34173] [3.7] possible race condition in /usr/lib/python3.7/concurrent/futures/thread.py

2018-07-24 Thread Corey Bryant


Corey Bryant  added the comment:

Karthikeyan, thanks for taking a look. I'm also unable to recreate with your 
test. I'm not sure what the difference is. I'll report back if I can figure it 
out.

--

___
Python tracker 
<https://bugs.python.org/issue34173>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34173] [3.7] possible race condition in /usr/lib/python3.7/concurrent/futures/thread.py

2018-07-24 Thread Corey Bryant


Corey Bryant  added the comment:

I've narrowed this down a bit more. It appears to be caused by eventlet 
patching of standard library thread modules. See new attached patch 
bp034173-recreate.py. I'll get a bug opened against eventlet.

--
Added file: https://bugs.python.org/file47709/bpo34173-recreate.py

___
Python tracker 
<https://bugs.python.org/issue34173>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34173] [3.7] possible race condition in /usr/lib/python3.7/concurrent/futures/thread.py

2018-07-24 Thread Corey Bryant


Corey Bryant  added the comment:

eventlet issue opened at: https://github.com/eventlet/eventlet/issues/508

--

___
Python tracker 
<https://bugs.python.org/issue34173>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34173] [3.7] deadlock in /usr/lib/python3.7/concurrent/futures/thread.py

2018-07-24 Thread Corey Bryant


Change by Corey Bryant :


--
title: [3.7] possible race condition in 
/usr/lib/python3.7/concurrent/futures/thread.py -> [3.7] deadlock in 
/usr/lib/python3.7/concurrent/futures/thread.py

___
Python tracker 
<https://bugs.python.org/issue34173>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com