Uh oh!
There was an error while loading. Please reload this page.
gh-144774: Add critical section in BaseException.__setstate__ - #150578
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
exceptions.c with PyDict_NextBaseException.__setstate__picnixz
commented
May 29, 2026
Usually a bug fix always includes a NEWS entry, at least to indicate that a crash has been fixed. In this case, it's a data race that has been fixed when an exception is being copied while being mutated. |
Co-authored-by: Sam Gross <colesbury@gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
kumaraditya303
commented
May 30, 2026
You need to do |
Uh oh!
There was an error while loading. Please reload this page.
Thanks @brijkapadia for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15. |
GH-153746 is a backport of this pull request to the 3.15 branch. |
GH-153819 is a backport of this pull request to the 3.14 branch. |
Adds a critical section to prevent a data race in
exceptions.c.Unsure if the test is in the right location.
I don't think that a news entry is necessary.
dictobject.cwhile usingsetattr#144774