[New-bugs-announce] [issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

Valentin David report at bugs.python.org
Wed May 25 07:48:00 EDT 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue27122>
_______________________________________


More information about the New-bugs-announce mailing list