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 — Ensure that BLAKE-2 objects are fully initialized before being GC-tracked · Issue #155830 · python/cpython

Ensure that BLAKE-2 objects are fully initialized before being GC-tracked #155830

New issue
Copy link
New issue
Copy link
Closed
Closed
Ensure that BLAKE-2 objects are fully initialized before being GC-tracked#155830
Copy link
Assignees
picnixz
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@picnixz
picnixz
opened on Aug 15, 2026
Issue body actions

Bug report

Bug description:

The BLAKE-2 internal states are initialized after PyObject_GC_Track is called. If unlucky, we would call py_blake2_clear on uninitialized states since PyObject_GC_New is used (we want to first initialize the objects entirely before tracking them but some fields depend on the type so we can't use zeroing as is).

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

  • gh-155830: properly initialize BLAKE-2 objects before GC tracking #155831
  • [3.15] gh-155830: properly initialize BLAKE-2 objects before GC tracking (GH-155831) #159732
  • [3.14] gh-155830: properly initialize BLAKE-2 objects before GC tracking (GH-155831) #159742

Activity

  1. picnixz
    self-assigned this
    on Aug 15, 2026
  2. picnixz
    added a parent issue on Aug 15, 2026
    • Meta-issue for bugs in cryptographic extension modules #155438
  3. 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
    on Aug 15, 2026
  4. picnixz
    added 3 commits that reference this issue on Oct 19, 2026

    gh-155830: properly initialize BLAKE-2 objects before GC tracking (#1…

    02844c8

    [3.15] gh-155830: properly initialize BLAKE-2 objects before GC track…

    aa119b2

    [3.14] gh-155830: properly initialize BLAKE-2 objects before GC track…

    c0bc2c0
  5. picnixz
    closed this as completedon Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @picnixz
    picnixz

Labels

extension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

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.