René's URL Explorer Experiment


Title: subprocess._loop deleted too soon causing exception when trying to read from pipe · Issue #484 · python/asyncio · GitHub

Open Graph Title: subprocess._loop deleted too soon causing exception when trying to read from pipe · Issue #484 · python/asyncio

X Title: subprocess._loop deleted too soon causing exception when trying to read from pipe · Issue #484 · python/asyncio

Description: From https://bugs.python.org/issue23242#msg284930 The following script is used to reproduce the bug: import asyncio async def execute(): process = await asyncio.create_subprocess_exec( "timeout", "0.1", "cat", "/dev/urandom", stdout=asyn...

Open Graph Description: From https://bugs.python.org/issue23242#msg284930 The following script is used to reproduce the bug: import asyncio async def execute(): process = await asyncio.create_subprocess_exec( "timeout", "...

X Description: From https://bugs.python.org/issue23242#msg284930 The following script is used to reproduce the bug: import asyncio async def execute(): process = await asyncio.create_subprocess_exec( "timeou...

Opengraph URL: https://github.com/python/asyncio/issues/484

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"subprocess._loop deleted too soon causing exception when trying to read from pipe","articleBody":"From https://bugs.python.org/issue23242#msg284930 \r\n\r\nThe following script is used to reproduce the bug:\r\n```python\r\nimport asyncio\r\n\r\nasync def execute():\r\n    process = await asyncio.create_subprocess_exec(\r\n        \"timeout\", \"0.1\", \"cat\", \"/dev/urandom\", stdout=asyncio.subprocess.PIPE)\r\n\r\n    while True:\r\n        data = await process.stdout.read(65536)\r\n        print('read %d bytes' % len(data))\r\n        if data:\r\n            await asyncio.sleep(0.3)\r\n        else:\r\n            break\r\n\r\nasyncio.get_event_loop().run_until_complete(execute())\r\n```\r\nwill produce following output and terminate with exception:\r\n```\r\nread 65536 bytes\r\nread 65536 bytes\r\nTraceback (most recent call last):\r\n  File \"read_subprocess.py\", line 18, in \u003cmodule\u003e\r\n    asyncio.get_event_loop().run_until_complete(execute())\r\n  File \"/usr/lib/python3.6/asyncio/base_events.py\", line 466, in run_until_complete\r\n    return future.result()\r\n  File \"read_subprocess.py\", line 9, in execute\r\n    data = await process.stdout.read(65536)\r\n  File \"/usr/lib/python3.6/asyncio/streams.py\", line 634, in read\r\n    self._maybe_resume_transport()\r\n  File \"/usr/lib/python3.6/asyncio/streams.py\", line 402, in _maybe_resume_transport\r\n    self._transport.resume_reading()\r\n  File \"/usr/lib/python3.6/asyncio/unix_events.py\", line 401, in resume_reading\r\n    self._loop._add_reader(self._fileno, self._read_ready)\r\nAttributeError: 'NoneType' object has no attribute '_add_reader'\r\n```\r\n\r\nWhen the process exits https://github.com/python/asyncio/blob/master/asyncio/unix_events.py#L444 is called which sets this._loop = None\r\nNext time read() is called on the pipe the above exception is thrown.\r\nI have tried to fix this issue myself but would sometimes have read terminate too early and miss the last chunks of data.","author":{"url":"https://github.com/BotoX","@type":"Person","name":"BotoX"},"datePublished":"2017-01-13T20:51:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/484/asyncio/issues/484"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ed224ab9-747f-9503-beb9-03ba9bd3f38d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA52C:C76C3:4A7B43:664812:6969DDC9
html-safe-noncef37fd421e7d265921889e0649a95f6835040f69a19b2d5e948a21f2fa2616bce
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTJDOkM3NkMzOjRBN0I0Mzo2NjQ4MTI6Njk2OUREQzkiLCJ2aXNpdG9yX2lkIjoiMjUxOTY1NDQyODY2NjYxNzI4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4dc3829c33df51f5df80ff68f35cad6e2e2f5eb99cee7419ce55c929e665211a
hovercard-subject-tagissue:200727755
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/asyncio/484/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1de9fed2017f31302d411d29ef73de9444d239ff4f1401e0327f92a02999d36b/python/asyncio/issues/484
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1de9fed2017f31302d411d29ef73de9444d239ff4f1401e0327f92a02999d36b/python/asyncio/issues/484
og:image:altFrom https://bugs.python.org/issue23242#msg284930 The following script is used to reproduce the bug: import asyncio async def execute(): process = await asyncio.create_subprocess_exec( "timeout", "...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameBotoX
hostnamegithub.com
expected-hostnamegithub.com
None7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8
turbo-cache-controlno-preview
go-importgithub.com/python/asyncio git https://github.com/python/asyncio.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id33739295
octolytics-dimension-repository_nwopython/asyncio
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id33739295
octolytics-dimension-repository_network_root_nwopython/asyncio
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebdde15ad1b403e23b08bbd89b53fbe6bdf688cad
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/asyncio/issues/484#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fasyncio%2Fissues%2F484
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fasyncio%2Fissues%2F484
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fasyncio
Reloadhttps://github.com/python/asyncio/issues/484
Reloadhttps://github.com/python/asyncio/issues/484
Reloadhttps://github.com/python/asyncio/issues/484
python https://github.com/python
asynciohttps://github.com/python/asyncio
Please reload this pagehttps://github.com/python/asyncio/issues/484
Notifications https://github.com/login?return_to=%2Fpython%2Fasyncio
Fork 185 https://github.com/login?return_to=%2Fpython%2Fasyncio
Star 1.1k https://github.com/login?return_to=%2Fpython%2Fasyncio
Code https://github.com/python/asyncio
Issues 76 https://github.com/python/asyncio/issues
Pull requests 10 https://github.com/python/asyncio/pulls
Actions https://github.com/python/asyncio/actions
Projects 0 https://github.com/python/asyncio/projects
Wiki https://github.com/python/asyncio/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/asyncio/security
Please reload this pagehttps://github.com/python/asyncio/issues/484
Insights https://github.com/python/asyncio/pulse
Code https://github.com/python/asyncio
Issues https://github.com/python/asyncio/issues
Pull requests https://github.com/python/asyncio/pulls
Actions https://github.com/python/asyncio/actions
Projects https://github.com/python/asyncio/projects
Wiki https://github.com/python/asyncio/wiki
Security https://github.com/python/asyncio/security
Insights https://github.com/python/asyncio/pulse
subprocess._loop deleted too soon causing exception when trying to read from pipehttps://github.com/python/asyncio/issues/484#top
https://github.com/BotoX
https://github.com/BotoX
BotoXhttps://github.com/BotoX
on Jan 13, 2017https://github.com/python/asyncio/issues/484#issue-200727755
https://bugs.python.org/issue23242#msg284930https://bugs.python.org/issue23242#msg284930
https://github.com/python/asyncio/blob/master/asyncio/unix_events.py#L444https://github.com/python/asyncio/blob/master/asyncio/unix_events.py#L444
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.