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 module does not accept file twice #56240

Closed
zmk mannequin opened this issue May 8, 2011 · 3 comments
Closed

subprocess module does not accept file twice #56240

zmk mannequin opened this issue May 8, 2011 · 3 comments
Labels
stdlib Python modules in the Lib dir type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@zmk
Copy link
Mannequin

zmk mannequin commented May 8, 2011

BPO 12031
Superseder
  • bpo-11432: webbrowser.open on unix fails.
  • Files
  • test.py: testcase
  • 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 2011-05-08.17:18:03.192>
    created_at = <Date 2011-05-08.16:18:53.739>
    labels = ['library', 'type-crash']
    title = 'subprocess module does not accept file twice'
    updated_at = <Date 2011-05-08.17:18:03.190>
    user = 'https://bugs.python.org/zmk'

    bugs.python.org fields:

    activity = <Date 2011-05-08.17:18:03.190>
    actor = 'neologix'
    assignee = 'none'
    closed = True
    closed_date = <Date 2011-05-08.17:18:03.192>
    closer = 'neologix'
    components = ['Library (Lib)']
    creation = <Date 2011-05-08.16:18:53.739>
    creator = 'zmk'
    dependencies = []
    files = ['21935']
    hgrepos = []
    issue_num = 12031
    keywords = []
    message_count = 3.0
    messages = ['135530', '135532', '135534']
    nosy_count = 3.0
    nosy_names = ['zmk', 'neologix', 'catalin.iacob']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = None
    status = 'closed'
    superseder = '11432'
    type = 'crash'
    url = 'https://bugs.python.org/issue12031'
    versions = ['Python 3.2']

    @zmk
    Copy link
    Mannequin Author

    zmk mannequin commented May 8, 2011

    I want to pass /dev/null as stdin and stderr.

    This works from python 2.4 .. 3.2a3

    It fails in final 3.2 with 'Bad file descriptor':

    Traceback (most recent call last):
      File "test.py", line 11, in <module>
        Popen(['cat', 'file.txt'], stdout = PIPE, stdin = _in, stderr = _err)
      File "/opt/apps/python320/lib/python3.2/subprocess.py", line 736, in __init__
        restore_signals, start_new_session)
      File "/opt/apps/python320/lib/python3.2/subprocess.py", line 1330, in _execute_child
        raise child_exception_type(errno_num, err_msg)
    OSError: [Errno 9] Bad file descriptor

    @zmk zmk mannequin added stdlib Python modules in the Lib dir type-crash A hard crash of the interpreter, possibly with a core dump labels May 8, 2011
    @cataliniacob
    Copy link
    Mannequin

    cataliniacob mannequin commented May 8, 2011

    I can reproduce this on 3.2 final but not on the tip of the 3.2 branch so it seems to have been fixed.

    @neologix
    Copy link
    Mannequin

    neologix mannequin commented May 8, 2011

    It's a duplicate of issue bpo-11432: http://bugs.python.org/issue11432

    @neologix neologix mannequin closed this as completed May 8, 2011
    @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
    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

    0 participants