Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-121860: Fix crash when materializing managed dict #121866

Merged
merged 3 commits into from
Jul 16, 2024

Conversation

colesbury
Copy link
Contributor

@colesbury colesbury commented Jul 16, 2024

The object's inline values may be marked invalid if the materialized dict was already initialized and then deleted.

The object's inline values may be marked invalid if the materialized
dict was already initialized and then deleted.
Objects/dictobject.c Outdated Show resolved Hide resolved
@colesbury colesbury marked this pull request as ready for review July 16, 2024 18:25
@colesbury colesbury requested review from vstinner and DinoV July 16, 2024 18:25
@pablogsal
Copy link
Member

Confirmed that fixes Cython as well: #121860 (comment)

Copy link
Member

@pablogsal pablogsal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Confirmed it fixes the original issue and the Cython test

@pablogsal pablogsal added the needs backport to 3.13 bugs and security fixes label Jul 16, 2024
@colesbury colesbury merged commit 162b41f into python:main Jul 16, 2024
37 checks passed
@colesbury colesbury deleted the gh-121860-materialize-dict branch July 16, 2024 18:58
@miss-islington-app
Copy link

Thanks @colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 16, 2024
…121866)

The object's inline values may be marked invalid if the materialized
dict was already initialized and then deleted.
(cherry picked from commit 162b41f)

Co-authored-by: Sam Gross <colesbury@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Jul 16, 2024

GH-121867 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jul 16, 2024
colesbury added a commit that referenced this pull request Jul 16, 2024
… (#121867)

The object's inline values may be marked invalid if the materialized
dict was already initialized and then deleted.
(cherry picked from commit 162b41f)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants