-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
Crash on _PyDict_CheckConsistency with an empty instance dict #121860
Comments
Bug also seen in the Cython test suite: #121253 |
This also happens when I did compile |
See also #121863 "CMultiplyNested closure crash: Python 3.13 regression". I don't know if it's related or not, but it was also found with the Cython test suite. |
Repro: class Foo:
pass
class StrSubclass(str):
pass
foo = Foo()
foo.attr = 2
foo.__dict__ = {}
del foo.__dict__
getattr(foo, StrSubclass("attr"))
|
|
I can reliably reproduce the error on Linux by running the Cython test
|
The object's inline values may be marked invalid if the materialized dict was already initialized and then deleted.
Bisected to:
|
@colesbury I can confirm it works: Before
After
|
The object's inline values may be marked invalid if the materialized dict was already initialized and then deleted.
…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 <[email protected]>
… (#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 <[email protected]>
I think this is fixed now |
When running a complicated application that involves Cython I am getting the following crash:
I am trying to get a smaller reproducer that doesn't involve the entire world out of the application, but it may take me a while.
Linked PRs
The text was updated successfully, but these errors were encountered: