Skip to content

PyRun_InteractiveLoop fails to run interactively when using a Linux pty that's not tied to stdin/stdout #59121

@KevinBarry

Description

@KevinBarry
BPO 14916
Nosy @pmp-p, @miss-islington
PRs
  • bpo-14916: use specified tokenizer fd for file input #22190
  • bpo-14916: use specified tokenizer fd for file input #31006
  • [3.10] bpo-14916: use specified tokenizer fd for file input (GH-31006) #31065
  • Files
  • working.c: A test program that hopefully causes the behavior described. You need xterm, and libreadline and libncurses (with the respective headers.)
  • Python-2.6.8-Run_Interactive-fix.patch
  • working2.c: A test program to be used with a version of Python built with the patch (Python-2.6.8-Run_Interactive-fix.patch) above.
  • Python-2.6.6-Run_Interactive-fix.patch: The second iteration of a patch to fix interactivity from the C API.
  • working3.c: A simplified version of the previous example that demonstrates the problem (before patch) and proper functionality (after patch.)
  • bug.sh
  • 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 = None
    created_at = <Date 2012-05-25.15:42:37.991>
    labels = ['interpreter-core', 'type-bug', '3.8', '3.9', '3.7', 'library']
    title = "PyRun_InteractiveLoop fails to run interactively when using a Linux pty that's not tied to stdin/stdout"
    updated_at = <Date 2022-02-03.23:32:27.732>
    user = 'https://bugs.python.org/KevinBarry'

    bugs.python.org fields:

    activity = <Date 2022-02-03.23:32:27.732>
    actor = 'miss-islington'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core', 'Library (Lib)']
    creation = <Date 2012-05-25.15:42:37.991>
    creator = 'Kevin.Barry'
    dependencies = []
    files = ['25706', '26491', '26492', '26501', '26503', '29432']
    hgrepos = []
    issue_num = 14916
    keywords = ['patch']
    message_count = 19.0
    messages = ['161586', '166258', '166259', '166301', '166303', '172411', '184395', '184399', '184403', '184410', '184537', '184812', '185144', '185229', '185250', '252224', '376640', '412317', '412486']
    nosy_count = 5.0
    nosy_names = ['pmpp', 'Kevin.Barry', 'emmanuel', 'Yauheni Kaliuta', 'miss-islington']
    pr_nums = ['22190', '31006', '31065']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue14916'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of life3.9only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)stdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions