GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — `_hmac`: GIL may be released while attempting to set an exception · Issue #135561 · python/cpython

_hmac: GIL may be released while attempting to set an exception #135561

New issue
Copy link
New issue
Copy link
Closed
Closed
_hmac: GIL may be released while attempting to set an exception#135561
Copy link
Assignees
picnixz
Labels
3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or errortype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump

Description

@picnixz
picnixz
opened on Jun 16, 2025
Issue body actions

Bug report

Bug description:

When calling hmac.update(), if the HACL* call fails, an exception is set. But this happens while we're releasing the GIL, which is not good.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Other, Linux

Linked PRs

  • gh-135561: ensure that the GIL is held when handling an HACL* error in _hmac #135562
  • [3.14] gh-135561: ensure that the GIL is held when handling an HACL* error in _hmac (GH-135562) #135725

Activity

  1. picnixz
    self-assigned this
    on Jun 16, 2025
  2. picnixz
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    extension-modulesC modules in the Modules dirC modules in the Modules dir
    3.14bugs and security fixesbugs and security fixes
    3.15bugs and security fixesbugs and security fixes
    type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
    on Jun 16, 2025
  3. picnixz
    added a commit that references this issue on Jun 19, 2025

    gh-135561: ensure that the GIL is held when handling an HACL* error i…

    c765683
  4. miss-islington
    added a commit that references this issue on Jun 19, 2025

    pythongh-135561: ensure that the GIL is held when handling an HACL* e…

    62db8bd
  5. picnixz
    added a commit that references this issue on Jun 19, 2025

    [3.14] gh-135561: ensure that the GIL is held when handling an HACL* …

    83e0ab1
  6. lkollar
    added a commit that references this issue on Jun 19, 2025

    pythongh-135561: ensure that the GIL is held when handling an HACL* e…

    2695c0d
  7. picnixz
    closed this as completedon Jun 19, 2025
  8. Pranjal095
    added a commit that references this issue on Jul 12, 2025

    pythongh-135561: ensure that the GIL is held when handling an HACL* e…

    d6f894d
  9. taegyunkim
    added a commit that references this issue on Aug 4, 2025

    pythongh-135561: ensure that the GIL is held when handling an HACL* e…

    451b4d4
  10. Agent-Hellboy
    added a commit that references this issue on Aug 19, 2025

    pythongh-135561: ensure that the GIL is held when handling an HACL* e…

    b10ec29
  11. picnixz
    added a commit that references this issue on Oct 19, 2026

    pythongh-159786: Convert HACL* update() errors in `_hmac` after relea…

    e81a055
  12. gpshead
    added a commit that references this issue on Oct 20, 2026

    gh-159786: Convert HACL* update() errors in `_hmac` after releasing t…

    0fba211
  13. picnixz
    added a commit that references this issue on Oct 20, 2026

    [3.15] gh-159786: Convert HACL* update() errors in `_hmac` after rele…

    4250c67
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @picnixz
    picnixz

Labels

3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or errortype-crashA hard crash of the interpreter, possibly with a core dumpA 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

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.