Skip to content

Use the API C of 'Py-NewInterpreterFromConfig' to exit unexpectedly in multiple threads.#111751

@williamhu020

Description

@williamhu020

Bug report

Bug description:

Use the API C of 'Py-NewInterpreterFromConfig' to exit unexpectedly in multiple threads.

PyInterpreterConfigconfig={.use_main_obmalloc=0, .allow_fork=0, .allow_exec=0, .allow_threads=1, .allow_daemon_threads=0, .check_multi_interp_extensions=1, .gil=PyInterpreterConfig_OWN_GIL, }; PyStatuspstatus=Py_NewInterpreterFromConfig(&Sub_GIL_ThreadState, &config); if (PyStatus_Exception(pstatus)){return FALSE}

CPython versions tested on:

3.13, CPython main branch

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions