Skip to content

Queue non-immediate shutdown doesn't unblock getters #117531

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

Closed
EpicWink opened this issue Apr 4, 2024 · 0 comments
Closed

Queue non-immediate shutdown doesn't unblock getters #117531

EpicWink opened this issue Apr 4, 2024 · 0 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@EpicWink
Copy link
Contributor

EpicWink commented Apr 4, 2024

Bug report

Bug description:

Caused by #104750

import queue
import threading

q = queue.Queue()
t = threading.Thread(target=q.get)
t.start()
q.shutdown()
t.join(timeout=10.0)
assert not t.is_alive()  # raises AssertionError

Discovered here: #104228 (comment)

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

@EpicWink EpicWink added the type-bug An unexpected behavior, bug, or error label Apr 4, 2024
gvanrossum pushed a commit that referenced this issue Apr 10, 2024
(This is a small tweak of the original gh-104750 which added shutdown.)
diegorusso pushed a commit to diegorusso/cpython that referenced this issue Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant