Skip to content
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

gh-105288: wake up exit waiters after sub-process exits #105289

Closed
wants to merge 3 commits into from

Conversation

keuin
Copy link

@keuin keuin commented Jun 4, 2023

@cpython-cla-bot
Copy link

cpython-cla-bot bot commented Jun 4, 2023

All commit authors signed the Contributor License Agreement.
CLA signed

@keuin keuin force-pushed the bugfix-asyncio-issue-gh-105288 branch from 210bfce to 54bbc06 Compare June 4, 2023 19:12
@keuin keuin force-pushed the bugfix-asyncio-issue-gh-105288 branch from 54bbc06 to a54ad6f Compare June 5, 2023 14:05
@gvanrossum
Copy link
Member

@kumaraditya303 Once you are convinced of the validity of the issue (which I expect you will be), will you review ad merge this PR? I was on vacation for 10 days and am way behind.

@kumaraditya303
Copy link
Contributor

As evident by the failing CI this is wrong.

@gvanrossum
Copy link
Member

@kumaraditya303 Whoa. Why close the PR instead of requesting changes?

@keuin
Copy link
Author

keuin commented Jun 8, 2023

I will fix my test in these days. Sorry because I'm not familiar with the test framework and testing a frozen event loop is much harder than usual.

@kumaraditya303 kumaraditya303 reopened this Jun 8, 2023
Copy link
Contributor

@kumaraditya303 kumaraditya303 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my explanation on the issue

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

And if you don't make the requested changes, you will be poked with soft cushions!

@Hels15
Copy link
Contributor

Hels15 commented Aug 18, 2023

What's going on here?

# We have to run the event loop in a separate thread,
# to make sure we can fail in the main thread
# and successfully notify the test driver.
self.loop.run_until_complete(main())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the problem is in asyncio.run - so this doesn't actually test the issue

@keuin
Copy link
Author

keuin commented Oct 23, 2024

I think this issue is a duplicate of others. The misuse of argument shows some deep resource leak, but is hard to find the root cause.
I'm glad to see others want to fix the similar issue. I want to wait to see if it can fix this too.

@keuin keuin closed this Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants