New submission from Valentin David:

The attached script hangs while using 100% on Python 3.5.1 but not on Python 
3.4.3. Tested both on Gentoo Linux and Ubuntu Linux.

The loop seems to be in PyErr_SetObject in a loop that recursively go through 
PyException_GetContext.

subprocess.Popen seems to cause the issue while calling io.open. strace reveals 
a error on call to lseek on a pipe.

The issue does not happen when using nested "with" instead of ExitStack.

----------
files: hang_bug.py
messages: 266333
nosy: Valentin David
priority: normal
severity: normal
status: open
title: Hang with contextlib.ExitStack and subprocess.Popen (regression)
versions: Python 3.5
Added file: http://bugs.python.org/file42989/hang_bug.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27122>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to