René's URL Explorer Experiment


Title: bpo-46210: Fix deadlock in print. by notarealdeveloper · Pull Request #30310 · python/cpython · GitHub

Open Graph Title: bpo-46210: Fix deadlock in print. by notarealdeveloper · Pull Request #30310 · python/cpython

X Title: bpo-46210: Fix deadlock in print. by notarealdeveloper · Pull Request #30310 · python/cpython

Description: Add _at_fork_reinit handler to buffer->lock of stdout and stderr, to fix a deadlock in print. https://bugs.python.org/issue46210

Open Graph Description: Add _at_fork_reinit handler to buffer->lock of stdout and stderr, to fix a deadlock in print. https://bugs.python.org/issue46210

X Description: Add _at_fork_reinit handler to buffer->lock of stdout and stderr, to fix a deadlock in print. https://bugs.python.org/issue46210

Opengraph URL: https://github.com/python/cpython/pull/30310

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:cd6b2674-2ff6-083b-1c58-2a1b6fe1849b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDE3C:34CBCC:EB3057:1425860:6969F758
html-safe-nonceef68c92fdac2b320b0b9df4fdf5165179a6dacef8091a3002a2725aafe8f04ff
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTNDOjM0Q0JDQzpFQjMwNTc6MTQyNTg2MDo2OTY5Rjc1OCIsInZpc2l0b3JfaWQiOiI4NjM4MDQzMDc2NTAxODI5NDY0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac01d1baa9a2aa417eb2711d57355d14ecc2886021d008b4e685b938b59d2db9ce
hovercard-subject-tagpull_request:812181370
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/30310/files
twitter:imagehttps://avatars.githubusercontent.com/u/28633680?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/28633680?s=400&v=4
og:image:altAdd _at_fork_reinit handler to buffer->lock of stdout and stderr, to fix a deadlock in print. https://bugs.python.org/issue46210
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
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/cpython/pull/30310/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F30310%2Ffiles
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%2Fcpython%2Fpull%2F30310%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/30310/files
Reloadhttps://github.com/python/cpython/pull/30310/files
Reloadhttps://github.com/python/cpython/pull/30310/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/30310/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/30310/files
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
notarealdeveloperhttps://github.com/notarealdeveloper
python:mainhttps://github.com/python/cpython/tree/main
Conversation 54 https://github.com/python/cpython/pull/30310
Commits 15 https://github.com/python/cpython/pull/30310/commits
Checks 0 https://github.com/python/cpython/pull/30310/checks
Files changed https://github.com/python/cpython/pull/30310/files
Please reload this pagehttps://github.com/python/cpython/pull/30310/files
bpo-46210: Fix deadlock in print. https://github.com/python/cpython/pull/30310/files#top
Show all changes 15 commits https://github.com/python/cpython/pull/30310/files
dc5d787 Fix deadlock in print. notarealdeveloper Dec 30, 2021 https://github.com/python/cpython/pull/30310/commits/dc5d78702499dfc7d5d81f4522cbbd5d12b9ac25
46d4ce6 Add Misc/NEWS.d entry. notarealdeveloper Dec 30, 2021 https://github.com/python/cpython/pull/30310/commits/46d4ce68808e81c87279611a446c0584d9576f60
3409181 Only add _at_fork_reinit if fork is available. notarealdeveloper Dec 31, 2021 https://github.com/python/cpython/pull/30310/commits/3409181c10363050dd0d5f59c52bd9dc306df912
19f19b7 Use Py_RETURN_* in Modules/_io/bufferedio.c:buffered_at_fork_reinit notarealdeveloper Dec 31, 2021 https://github.com/python/cpython/pull/30310/commits/19f19b7dec9a07c99ddae9f1f746f7c79977ffc8
f5334b4 Fix up reference counting in Python/pystate.c:stdio_at_fork_reinit notarealdeveloper Dec 31, 2021 https://github.com/python/cpython/pull/30310/commits/f5334b40cea86a978715c7f13f7d31de97a7d1dc
3858006 Formatting for PEP 7. notarealdeveloper Jan 5, 2022 https://github.com/python/cpython/pull/30310/commits/385800657009ababd9d17b798da4b8a92b9a43b4
fb0bd16 Add _PySys_ReInitStdio to Python/sysmodule.c notarealdeveloper Jan 5, 2022 https://github.com/python/cpython/pull/30310/commits/fb0bd1645042e85139df4f92ca8636e682b78ffa
8c8d9c9 Call _PySys_ReInitStdio in PyOS_AfterFork_Child. notarealdeveloper Jan 5, 2022 https://github.com/python/cpython/pull/30310/commits/8c8d9c9997184caff123be37bb19c4a009ef811b
a14bf74 Avoid adding a new python method. notarealdeveloper Jan 24, 2022 https://github.com/python/cpython/pull/30310/commits/a14bf74dcdc4a779ec8cc2e6dd4585988a292415
be40192 Add TestStdioAtForkReInit to test_thread.py notarealdeveloper Jan 24, 2022 https://github.com/python/cpython/pull/30310/commits/be40192b8ba06a8865c8704d44d6b108bb1eb669
bf9b398 Move INCREF in _PyIO_buffered_at_fork_reinit notarealdeveloper Feb 7, 2022 https://github.com/python/cpython/pull/30310/commits/bf9b39889f108901811c51a7805e4032e55bf44b
5681a02 Remove unused variable in stdio_at_fork_reinit notarealdeveloper Feb 7, 2022 https://github.com/python/cpython/pull/30310/commits/5681a021fb92a8fa886a758bab98f219ee8c16ba
2054bfa Correct buffer->lock reinit logic. notarealdeveloper Feb 8, 2022 https://github.com/python/cpython/pull/30310/commits/2054bfad3c5688341a28254834d93f8b9785e510
a8e4185 Merge remote-tracking branch 'upstream/main' into print notarealdeveloper Feb 17, 2022 https://github.com/python/cpython/pull/30310/commits/a8e41854c86412879f175caf9de11bc6df9b7c73
56a405f stream_at_fork_reinit now uses _Py_ID instead of _Py_Identifier. notarealdeveloper Feb 17, 2022 https://github.com/python/cpython/pull/30310/commits/56a405f8bcc5ba74129f61d42ddad9b798df21c9
Clear filters https://github.com/python/cpython/pull/30310/files
Please reload this pagehttps://github.com/python/cpython/pull/30310/files
Please reload this pagehttps://github.com/python/cpython/pull/30310/files
pycore_sysmodule.h https://github.com/python/cpython/pull/30310/files#diff-225387339c11eba754f81eebf96b1e5e2d050bce71d252b06afb3860059194fa
test_thread.py https://github.com/python/cpython/pull/30310/files#diff-91ab9cb92a60851792b63f50764d5a3347e1cfac5d489beaca9d8eda36d6d679
2021-12-30-15-50-39.bpo-46210.YRy67_.rst https://github.com/python/cpython/pull/30310/files#diff-3decb248a7c2cbfd2303af630da155539274d9562bd5bcd3c61fe1007e501edd
bufferedio.c https://github.com/python/cpython/pull/30310/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
posixmodule.c https://github.com/python/cpython/pull/30310/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791
sysmodule.c https://github.com/python/cpython/pull/30310/files#diff-a3a5c73931235f7f344c072dc755d6508e13923db3f5d581c5e88652075871cb
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L243
Include/internal/pycore_sysmodule.hhttps://github.com/python/cpython/pull/30310/files#diff-225387339c11eba754f81eebf96b1e5e2d050bce71d252b06afb3860059194fa
View file https://github.com/python/cpython/blob/56a405f8bcc5ba74129f61d42ddad9b798df21c9/Include/internal/pycore_sysmodule.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/30310/{{ revealButtonHref }}
https://github.com/python/cpython/pull/30310/files#diff-225387339c11eba754f81eebf96b1e5e2d050bce71d252b06afb3860059194fa
https://github.com/python/cpython/pull/30310/files#diff-225387339c11eba754f81eebf96b1e5e2d050bce71d252b06afb3860059194fa
Lib/test/test_thread.pyhttps://github.com/python/cpython/pull/30310/files#diff-91ab9cb92a60851792b63f50764d5a3347e1cfac5d489beaca9d8eda36d6d679
View file https://github.com/python/cpython/blob/56a405f8bcc5ba74129f61d42ddad9b798df21c9/Lib/test/test_thread.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/30310/{{ revealButtonHref }}
https://github.com/python/cpython/pull/30310/files#diff-91ab9cb92a60851792b63f50764d5a3347e1cfac5d489beaca9d8eda36d6d679
https://github.com/python/cpython/pull/30310/files#diff-91ab9cb92a60851792b63f50764d5a3347e1cfac5d489beaca9d8eda36d6d679
vstinnerhttps://github.com/vstinner
Feb 7, 2022https://github.com/python/cpython/pull/30310/files#r801112144
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/30310/files
JelleZijlstrahttps://github.com/JelleZijlstra
Feb 9, 2022https://github.com/python/cpython/pull/30310/files#r802245128
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/30310/files
notarealdeveloperhttps://github.com/notarealdeveloper
Feb 14, 2022https://github.com/python/cpython/pull/30310/files#r806028470
Please reload this pagehttps://github.com/python/cpython/pull/30310/files
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@vstinnerhttps://github.com/vstinner
@JelleZijlstrahttps://github.com/JelleZijlstra
Please reload this pagehttps://github.com/python/cpython/pull/30310/files
Misc/NEWS.d/next/Core and Builtins/2021-12-30-15-50-39.bpo-46210.YRy67_.rsthttps://github.com/python/cpython/pull/30310/files#diff-3decb248a7c2cbfd2303af630da155539274d9562bd5bcd3c61fe1007e501edd
View file https://github.com/python/cpython/blob/56a405f8bcc5ba74129f61d42ddad9b798df21c9/Misc/NEWS.d/next/Core%20and%20Builtins/2021-12-30-15-50-39.bpo-46210.YRy67_.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/30310/{{ revealButtonHref }}
Modules/_io/bufferedio.chttps://github.com/python/cpython/pull/30310/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
View file https://github.com/python/cpython/blob/56a405f8bcc5ba74129f61d42ddad9b798df21c9/Modules/_io/bufferedio.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/30310/{{ revealButtonHref }}
https://github.com/python/cpython/pull/30310/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
https://github.com/python/cpython/pull/30310/files#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
Modules/posixmodule.chttps://github.com/python/cpython/pull/30310/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791
View file https://github.com/python/cpython/blob/56a405f8bcc5ba74129f61d42ddad9b798df21c9/Modules/posixmodule.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/30310/{{ revealButtonHref }}
https://github.com/python/cpython/pull/30310/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791
https://github.com/python/cpython/pull/30310/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791
https://github.com/python/cpython/pull/30310/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791
https://github.com/python/cpython/pull/30310/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L243
Python/sysmodule.chttps://github.com/python/cpython/pull/30310/files#diff-a3a5c73931235f7f344c072dc755d6508e13923db3f5d581c5e88652075871cb
View file https://github.com/python/cpython/blob/56a405f8bcc5ba74129f61d42ddad9b798df21c9/Python/sysmodule.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/30310/{{ revealButtonHref }}
https://github.com/python/cpython/pull/30310/files#diff-a3a5c73931235f7f344c072dc755d6508e13923db3f5d581c5e88652075871cb
vstinnerhttps://github.com/vstinner
Feb 7, 2022https://github.com/python/cpython/pull/30310/files#r801113217
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/30310/files
notarealdeveloperhttps://github.com/notarealdeveloper
Feb 14, 2022https://github.com/python/cpython/pull/30310/files#r806033768
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/30310/files
https://github.com/python/cpython/pull/30310/files#diff-a3a5c73931235f7f344c072dc755d6508e13923db3f5d581c5e88652075871cb
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.