Skip to content

gh-135698: Fix Cross-interpreter Queue.full() With Negative/Default max_size #135724

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

Merged
merged 2 commits into from
Jun 20, 2025

Conversation

ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented Jun 19, 2025

We weren't handling non-positive maxsize values (including the default) properly in Queue.full(). This change fixes that and adjusts an associated assert.

@ericsnowcurrently ericsnowcurrently added skip news needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Jun 19, 2025
@ericsnowcurrently ericsnowcurrently merged commit c5ea8e8 into python:main Jun 20, 2025
47 checks passed
@miss-islington-app
Copy link

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

@ericsnowcurrently ericsnowcurrently deleted the fix-queue-is-full branch June 20, 2025 20:26
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 20, 2025
…ault max_size (pythongh-135724)

We weren't handling non-positive maxsize values (including the default) properly
in Queue.full().  This change fixes that and adjusts an associated assert.
(cherry picked from commit c5ea8e8e8fc725f39ed23ff6259b3cc157a0785f)

Co-authored-by: Eric Snow <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Jun 20, 2025

GH-135775 is a backport of this pull request to the 3.14 branch.

@miss-islington-app
Copy link

Sorry, @ericsnowcurrently, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker c5ea8e8e8fc725f39ed23ff6259b3cc157a0785f 3.13

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Jun 20, 2025
ericsnowcurrently added a commit that referenced this pull request Jun 20, 2025
…fault max_size (gh-135775)

We weren't handling non-positive maxsize values (including the default) properly
in Queue.full().  This change fixes that and adjusts an associated assert.

(cherry picked from commit c5ea8e8, AKA gh-135724)

Co-authored-by: Eric Snow <[email protected]>
ericsnowcurrently added a commit to ericsnowcurrently/cpython that referenced this pull request Jun 20, 2025
…ault max_size (pythongh-135724)

We weren't handling non-positive maxsize values (including the default) properly
in Queue.full().  This change fixes that and adjusts an associated assert.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant