Skip to content

Use a critical section to protect putpalette() - #10085

Open
akx wants to merge 1 commit into
python-pillow:mainfrom
akx:putpalette-race
Open

akx wants to merge 1 commit into
python-pillow:mainfrom
akx:putpalette-race

Conversation

@akx

@akx akx commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

In the same vein of #9853, #9919, #9497 etc. Related to #10082.

On free-threading builds, threads racing to putpalette() on one side and .convert("RGB") on the other side could segfault.

@radarhere radarhere added the Free-threading PEP 703 support label Sep 30, 2026

This branch has not been deployed

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

Labels

Free-threading PEP 703 support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants