Skip to content

PyEval_InitThreads is called before Py_Initialize in LoadPython in Modules/_ctypes/callbacks.c #76346

Closed

Description

@mrkn
mannequin
BPO 32165
Nosy @amauryfa, @abalkin, @meadori, @mrkn
PRs
  • bpo-32165 Fix calling order of PyEval_InitThreads #4602
  • [3.8] bpo-32165: Fix calling order of PyEval_InitThreads. (GH-4602) #15832
  • [3.7] bpo-32165: Fix calling order of PyEval_InitThreads. (GH-4602) #15833
  • [3.8] closes bpo-32165: Fix calling order of PyEval_InitThreads. (GH-4602) #15836
  • 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-09-10.14:38:50.388>
    created_at = <Date 2017-11-29.02:56:08.068>
    labels = ['ctypes']
    title = 'PyEval_InitThreads is called before Py_Initialize in LoadPython in Modules/_ctypes/callbacks.c'
    updated_at = <Date 2019-09-10.14:38:50.387>
    user = 'https://github.com/mrkn'

    bugs.python.org fields:

    activity = <Date 2019-09-10.14:38:50.387>
    actor = 'benjamin.peterson'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-09-10.14:38:50.388>
    closer = 'benjamin.peterson'
    components = ['ctypes']
    creation = <Date 2017-11-29.02:56:08.068>
    creator = 'mrkn'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32165
    keywords = ['patch']
    message_count = 1.0
    messages = ['307202']
    nosy_count = 4.0
    nosy_names = ['amaury.forgeotdarc', 'belopolsky', 'meador.inge', 'mrkn']
    pr_nums = ['4602', '15832', '15833', '15836']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue32165'
    versions = ['Python 3.6']

    Activity

    1. mrkn commented on Nov 29, 2017

      mrknmannequin
      MannequinAuthor

      As described in Doc/c-api/init.rst, PyEval_InitThreads() cannot be called
      before Py_Initialize() function.
      But in Modules/_ctypes/callbacks.c, PyEval_InitThreds() is called before Py_Initialize() in LoadPython function.

    2. 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

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions