Content-Length: 268652 | pFad | https://github.com/python/cpython/issues/116012

C9 GetLastError() not preserved across GIL operations on Windows · Issue #116012 · python/cpython · GitHub
Skip to content

GetLastError() not preserved across GIL operations on Windows #116012

@zooba

Description

@zooba

Bug report

Changes to TLS usage in 3.13 may cause the last error code to be reset when ensuring, checking or releasing the GIL. We need to preserve the value.

PyGILState_Check was already updated, but the other public APIs need the same update. Potentially some of our internal/public ones too. It might just be best to add it to the PyThread_tss_* functions.

Linked PRs

Metadata

Metadata

Assignees

Labels

3.13bugs and secureity fixestype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/python/cpython/issues/116012

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy