Skip to content

Calling PyErr_NoMemory without holding the GIL in winconsoleio.c #149983

@aisk

Description

@aisk

Bug description:

Py_UNBLOCK_THREADS
if (!newbuf) {
sig = -1;
PyErr_NoMemory();

PyErr_NoMemory will call _PyThreadState_GET, which will return NULL without holding the GIL.

A PR is on the way.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions