[New-bugs-announce] [issue31228] Subprocess.Popen crash w/ Win10, debug32, bad file, and PIPE

Terry J. Reedy report at bugs.python.org
Thu Aug 17 13:28:25 EDT 2017


New submission from Terry J. Reedy:

Running Debug|Win32 interpreter...
Python 3.7.0a0 (heads/master:b907abc885, Aug 17 2017, 11:41:56) [MSC v.1900 32 bit (Intel)] on win32

I get the following crash report
--------------------------------------------------------------
Microsoft Visual C++ Runtime Library
(X) Debug Assertion Failed!
Program: F:\dev\3x\PCBuild\win32\python_d.exe
File: minkernel\crts\ucrt\src\appcrt\lowio\close.cpp
Line: 48

Expression: (fh >= 0 && (unsigned)fh < (unsigned)_nhandle
...
(Press Retry to debug the application)
----------------------------------------------------------------

when running the following, extracted from test.pythoninfo

import subprocess
proc = subprocess.Popen(["gdb", "-nx", "--version"],
                        stdout=subprocess.PIPE,
                        stderr=subprocess.PIPE,
                        universal_newlines=True)

If I do any of the following, I get the expected FileNotFound error.
1. Run with installed normal 64-bit 3.6.
2. Replace 'gdb' with 'python' (but 'xyz' still crashes).
3. Remove the std... options or replace subprocess.PIPE with a real file.

----------
components: Library (Lib), Windows
messages: 300445
nosy: paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Subprocess.Popen crash w/ Win10, debug32, bad file, and PIPE
type: crash
versions: Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31228>
_______________________________________


More information about the New-bugs-announce mailing list