Skip to content

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

Closed

Description

@terryjreedy
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']

    Activity

    1. terryjreedy commented on Aug 17, 2017

      @terryjreedy
      MemberAuthor

      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.
    2. added
      3.7 (EOL)
      stdlib
      type-crash
      on Aug 17, 2017
    3. terryjreedy commented on Aug 17, 2017

      @terryjreedy
      MemberAuthor

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

    4. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)OS-windowsstdlibtype-crash

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions