Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subprocess.Popen crash w/ Win10, debug32, bad file, and PIPE #75411

Closed
terryjreedy opened this issue Aug 17, 2017 · 2 comments
Closed

Subprocess.Popen crash w/ Win10, debug32, bad file, and PIPE #75411

terryjreedy opened this issue Aug 17, 2017 · 2 comments
Labels
3.7 (EOL) end of life OS-windows stdlib Python modules in the Lib dir type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@terryjreedy
Copy link
Member

BPO 31228
Nosy @terryjreedy, @pfmoore, @tjguk, @zware, @zooba
Superseder
  • bpo-30121: Windows: subprocess debug assertion on failure to execute the process
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2017-08-17.18:52:45.991>
    created_at = <Date 2017-08-17.17:28:25.923>
    labels = ['3.7', 'library', 'OS-windows', 'type-crash']
    title = 'Subprocess.Popen crash w/ Win10, debug32, bad file, and PIPE'
    updated_at = <Date 2017-08-17.18:52:45.990>
    user = 'https://github.com/terryjreedy'

    bugs.python.org fields:

    activity = <Date 2017-08-17.18:52:45.990>
    actor = 'eryksun'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-08-17.18:52:45.991>
    closer = 'eryksun'
    components = ['Library (Lib)', 'Windows']
    creation = <Date 2017-08-17.17:28:25.923>
    creator = 'terry.reedy'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 31228
    keywords = []
    message_count = 2.0
    messages = ['300445', '300447']
    nosy_count = 5.0
    nosy_names = ['terry.reedy', 'paul.moore', 'tim.golden', 'zach.ware', 'steve.dower']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '30121'
    type = 'crash'
    url = 'https://bugs.python.org/issue31228'
    versions = ['Python 3.6', 'Python 3.7']

    @terryjreedy
    Copy link
    Member Author

    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.

    @terryjreedy terryjreedy added 3.7 (EOL) end of life stdlib Python modules in the Lib dir OS-windows type-crash A hard crash of the interpreter, possibly with a core dump labels Aug 17, 2017
    @terryjreedy
    Copy link
    Member Author

    Appveyor ran pythoninfo successfully on its normal 32-bit build.
    https://ci.appveyor.com/project/python/cpython/build/3.7.0a0.5381

    @eryksun eryksun closed this as completed Aug 17, 2017
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life OS-windows stdlib Python modules in the Lib dir type-crash A hard crash of the interpreter, possibly with a core dump
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants