Do not repeatedly save to the same path by radarhere · Pull Request #8512 · python-pillow/Pillow

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@radarhere

Copy link Copy Markdown

Member

tonybaloney/pytest-freethreaded#11 noted a segfault that can occur under free-threading with Tests/test_file_jpeg.py::test_qtables. I can replicate this with --require-gil-disabled - https://github.com/radarhere/Pillow/actions/runs/11572743510

Changing the test to save to a BytesIO instance rather than writing repeatedly to the same temporary path fixes this specific test - https://github.com/radarhere/Pillow/actions/runs/11572819452

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>

@hugovk hugovk merged commit 16372dd into python-pillow:main

Oct 29, 2024

@radarhere radarhere deleted the qtables branch

October 29, 2024 21:36

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

Reviewers

@hugovk hugovk hugovk left review comments

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@radarhere @hugovk