Skip to content

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

Closed
keuin wants to merge 3 commits into
python:mainfrom
keuin:bugfix-asyncio-issue-gh-105288
Closed

keuin wants to merge 3 commits into
python:mainfrom
keuin:bugfix-asyncio-issue-gh-105288

Conversation

@keuin

@keuin keuin commented Jun 4, 2023 •

Copy link
Copy Markdown

@ghost

ghost commented Jun 4, 2023 •

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
Contributor

As evident by the failing CI this is wrong.

@gvanrossum

Copy link
Copy Markdown
Member

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

@keuin

keuin commented Jun 8, 2023

Copy link
Copy Markdown
Author

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

@kumaraditya303 kumaraditya303 left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown

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

Hels15 commented Aug 18, 2023

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

keuin commented Oct 23, 2024

Copy link
Copy Markdown
Author

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