Skip to content

Fatal Python error: Py_Initialize: can't initialize sys standard streams #77030

@rudolphfroger

Description

@rudolphfroger
BPO 32849
Nosy @vstinner, @koobs, @izbyshev, @corona10, @rudolphfroger
PRs
  • bpo-32849: Always use fstat() to validate fds on POSIX #5773
  • bpo-32849: Fix is_valid_fd() on FreeBSD #12852
  • [3.7] bpo-32849: Fix is_valid_fd() on FreeBSD (GH-12852) #12863
  • bpo-45919: Use WinAPI GetFileType() in is_valid_fd() #30082
  • Files
  • alles-23978: ktrace output
  • fstat0.c
  • repro.c
  • 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 2019-04-17.16:36:19.673>
    created_at = <Date 2018-02-15.09:20:30.354>
    labels = ['3.7', 'expert-IO', 'type-crash']
    title = "Fatal Python error: Py_Initialize: can't initialize sys standard streams"
    updated_at = <Date 2021-12-13.12:52:34.496>
    user = 'https://github.com/rudolphfroger'

    bugs.python.org fields:

    activity = <Date 2021-12-13.12:52:34.496>
    actor = 'corona10'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-04-17.16:36:19.673>
    closer = 'vstinner'
    components = ['IO', 'FreeBSD']
    creation = <Date 2018-02-15.09:20:30.354>
    creator = 'rudolphf'
    dependencies = []
    files = ['47444', '47451', '47452']
    hgrepos = []
    issue_num = 32849
    keywords = ['patch']
    message_count = 17.0
    messages = ['312194', '312282', '312342', '312364', '312387', '312388', '312402', '312418', '312419', '339338', '340326', '340329', '340412', '340413', '340414', '340415', '340437']
    nosy_count = 6.0
    nosy_names = ['vstinner', 'koobs', 'izbyshev', 'corona10', 'rudolphf', '\xd0\x92\xd0\xbb\xd0\xb0\xd0\xb4\xd0\xb8\xd1\x81\xd0\xbb\xd0\xb0\xd0\xb2 \xd0\xaf\xd1\x80\xd0\xbc\xd0\xb0\xd0\xba']
    pr_nums = ['5773', '12852', '12863', '30082']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue32849'
    versions = ['Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifetopic-IOtype-crashA hard crash of the interpreter, possibly with a core dump

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions