René's URL Explorer Experiment


Title: gh-151436: Fix missing `tstate->last_profiled_frame` updates by maurycy · Pull Request #151437 · python/cpython · GitHub

Open Graph Title: gh-151436: Fix missing `tstate->last_profiled_frame` updates by maurycy · Pull Request #151437 · python/cpython

X Title: gh-151436: Fix missing `tstate->last_profiled_frame` updates by maurycy · Pull Request #151437 · python/cpython

Description: Please see #151436 for more details. The issue is fixed, drv_a is back: def gen(): while True: n = yield sum(range(n)) g = gen() next(g) def drv_a(): g.send(500) def drv_b(): g.send(50000) while True: drv_a(); drv_b() 2026-06-13T11:47:41.099330000+0200 maurycy@gimel /Users/maurycy/work/cpython (gh-151436 4eab5a0?) % sudo ./python.exe -m profiling.sampling run --collapsed -o /tmp/stacks.txt -d 10 genrepro.py&& cat /tmp/stacks.txt Captured 10,000 samples in 10.00 seconds Sample rate: 999.99 samples/sec Error rate: 0.01 Collapsed stack output written to /tmp/stacks.txt tid:13799271;:_run_module_as_main:201;:_run_code:87;genrepro.py::13;genrepro.py:drv_b:10;genrepro.py:gen:4 9945 tid:13799271;:_run_module_as_main:201;:_run_code:87;genrepro.py::13;genrepro.py:drv_a:9;genrepro.py:gen:4 48 tid:13799271;:_run_module_as_main:201;:_run_code:87;genrepro.py::13;genrepro.py:drv_b:10;genrepro.py:gen:3 3 tid:13799271;:_run_module_as_main:201;:_run_code:87;genrepro.py::13 1 tid:13799271;:_run_module_as_main:201;:_run_code:87;genrepro.py::13;genrepro.py:drv_a:9 1 tid:13799271;:_run_module_as_main:201;:_run_code:87;genrepro.py::13;genrepro.py:drv_b:10 1 2026-06-13T11:47:51.429974000+0200 maurycy@gimel /Users/maurycy/work/cpython (gh-151436 4eab5a0?) % 0,5% (48/9996 = 0,48%) is roughly correct, since it shouldn't be exactly linear. I can try to come up with reproduction for each miss. Should it be a helper? If you ask me, the whole mechanism smells me of ABA... Issue: gh-151436

Open Graph Description: Please see #151436 for more details. The issue is fixed, drv_a is back: def gen(): while True: n = yield sum(range(n)) g = gen() next(g) def drv_a(): g.send(500) def drv_b(): ...

X Description: Please see #151436 for more details. The issue is fixed, drv_a is back: def gen(): while True: n = yield sum(range(n)) g = gen() next(g) def drv_a(): g.send(500) def drv_b(): ...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:82b9fc4f-a36b-0942-3095-091f492914bd
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBA4C:A70A9:1FE1D3A:29F6958:6B02391F
html-safe-nonce05f748e10cd712292523df97ec86e319ab1eaba36e2554f648be6b9763fe6338
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTRDOkE3MEE5OjFGRTFEM0E6MjlGNjk1ODo2QjAyMzkxRiIsInZpc2l0b3JfaWQiOiI1MjM2MTU2NTI1ODI0MDY0MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8260039ee072852bc4e13d5e94433ce046bfd9abd78bd54922b8242cc1f3af14
hovercard-subject-tagpull_request:3859587469
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/151437/files
twitter:imagehttps://avatars.githubusercontent.com/u/5383?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/5383?s=400&v=4
og:image:altPlease see #151436 for more details. The issue is fixed, drv_a is back: def gen(): while True: n = yield sum(range(n)) g = gen() next(g) def drv_a(): g.send(500) def drv_b(): ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/151437/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F151437%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F151437%2Ffiles
Sign uphttps://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/151437/files
Reloadhttps://github.com/python/cpython/pull/151437/files
Reloadhttps://github.com/python/cpython/pull/151437/files
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
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
pablogsalhttps://github.com/pablogsal
python:mainhttps://github.com/python/cpython/tree/main
maurycy:gh-151436https://github.com/maurycy/cpython/tree/gh-151436
Conversation 8 https://github.com/python/cpython/pull/151437
Commits 4 https://github.com/python/cpython/pull/151437/commits
Checks 77 https://github.com/python/cpython/pull/151437/checks
Files changed 8 https://github.com/python/cpython/pull/151437/files
gh-151436: Fix missing tstate->last_profiled_frame updates https://github.com/python/cpython/pull/151437/files#top
Show all changes 4 commits https://github.com/python/cpython/pull/151437/files
4eab5a0 up last_profiled_frame maurycy Jun 13, 2026 https://github.com/python/cpython/pull/151437/commits/4eab5a0bf7b98409d5544cfbf78f6e1fae82d601
4c94653 news maurycy Jun 13, 2026 https://github.com/python/cpython/pull/151437/commits/4c946536e9ba30767d36410d0527b0dc055071d9
1348756 gh-151436: Add macro for last_profiled_frame updates pablogsal Jun 17, 2026 https://github.com/python/cpython/pull/151437/commits/1348756c07ac0501fab5b46700da002ec804d5b7
21ac917 Merge branch 'main' into gh-151436 pablogsal Jun 17, 2026 https://github.com/python/cpython/pull/151437/commits/21ac917c890053921cb28b9682ef9fabb65961c7
Clear filters https://github.com/python/cpython/pull/151437/files
Please reload this pagehttps://github.com/python/cpython/pull/151437/files
Please reload this pagehttps://github.com/python/cpython/pull/151437/files
pycore_interpframe.h https://github.com/python/cpython/pull/151437/files#diff-a6652fbbdfbbc0185be9175f6e7219e704d7a86a874020f3ee99f70955892cff
2026-06-13-11-57-48.gh-issue-151436.UEDowO.rst https://github.com/python/cpython/pull/151437/files#diff-745f8508e6ca7d049700e12ff9c120ac46d53729948f09b5419093739cc39a71
test_cases.c.h https://github.com/python/cpython/pull/151437/files#diff-2852a58ed53ab1473b74dbdc4165885a9b74865b6d71e48fa4813d6289fa1838
genobject.c https://github.com/python/cpython/pull/151437/files#diff-2a0c449b68605ebd0872fd232e60ce7e838a77782a6d2e364764f99514fb508a
bytecodes.c https://github.com/python/cpython/pull/151437/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
ceval.c https://github.com/python/cpython/pull/151437/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
executor_cases.c.h https://github.com/python/cpython/pull/151437/files#diff-a1c3430c42a66c16e6d2e154491a6da993b187b27c628545a12a02c7b2a06b81
generated_cases.c.h https://github.com/python/cpython/pull/151437/files#diff-4ef46fa654f95502e49a24f7dc8ee31a4cac9b3433fe9cd2b2d4dd78cfbad448
Include/internal/pycore_interpframe.hhttps://github.com/python/cpython/pull/151437/files#diff-a6652fbbdfbbc0185be9175f6e7219e704d7a86a874020f3ee99f70955892cff
View file https://github.com/maurycy/cpython/blob/21ac917c890053921cb28b9682ef9fabb65961c7/Include/internal/pycore_interpframe.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/151437/{{ revealButtonHref }}
https://github.com/python/cpython/pull/151437/files#diff-a6652fbbdfbbc0185be9175f6e7219e704d7a86a874020f3ee99f70955892cff
https://github.com/python/cpython/pull/151437/files#diff-a6652fbbdfbbc0185be9175f6e7219e704d7a86a874020f3ee99f70955892cff
Misc/NEWS.d/next/Library/2026-06-13-11-57-48.gh-issue-151436.UEDowO.rsthttps://github.com/python/cpython/pull/151437/files#diff-745f8508e6ca7d049700e12ff9c120ac46d53729948f09b5419093739cc39a71
View file https://github.com/maurycy/cpython/blob/21ac917c890053921cb28b9682ef9fabb65961c7/Misc/NEWS.d/next/Library/2026-06-13-11-57-48.gh-issue-151436.UEDowO.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/151437/{{ revealButtonHref }}
Modules/_testinternalcapi/test_cases.c.hhttps://github.com/python/cpython/pull/151437/files#diff-2852a58ed53ab1473b74dbdc4165885a9b74865b6d71e48fa4813d6289fa1838
View file https://github.com/maurycy/cpython/blob/21ac917c890053921cb28b9682ef9fabb65961c7/Modules/_testinternalcapi/test_cases.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/151437/files
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L214
Objects/genobject.chttps://github.com/python/cpython/pull/151437/files#diff-2a0c449b68605ebd0872fd232e60ce7e838a77782a6d2e364764f99514fb508a
View file https://github.com/maurycy/cpython/blob/21ac917c890053921cb28b9682ef9fabb65961c7/Objects/genobject.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/151437/{{ revealButtonHref }}
https://github.com/python/cpython/pull/151437/files#diff-2a0c449b68605ebd0872fd232e60ce7e838a77782a6d2e364764f99514fb508a
https://github.com/python/cpython/pull/151437/files#diff-2a0c449b68605ebd0872fd232e60ce7e838a77782a6d2e364764f99514fb508a
https://github.com/python/cpython/pull/151437/files#diff-2a0c449b68605ebd0872fd232e60ce7e838a77782a6d2e364764f99514fb508a
https://github.com/python/cpython/pull/151437/files#diff-2a0c449b68605ebd0872fd232e60ce7e838a77782a6d2e364764f99514fb508a
https://github.com/python/cpython/pull/151437/files#diff-2a0c449b68605ebd0872fd232e60ce7e838a77782a6d2e364764f99514fb508a
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L222
Python/bytecodes.chttps://github.com/python/cpython/pull/151437/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
View file https://github.com/maurycy/cpython/blob/21ac917c890053921cb28b9682ef9fabb65961c7/Python/bytecodes.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/151437/{{ revealButtonHref }}
https://github.com/python/cpython/pull/151437/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
https://github.com/python/cpython/pull/151437/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
https://github.com/python/cpython/pull/151437/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
https://github.com/python/cpython/pull/151437/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L223
Python/ceval.chttps://github.com/python/cpython/pull/151437/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
View file https://github.com/maurycy/cpython/blob/21ac917c890053921cb28b9682ef9fabb65961c7/Python/ceval.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/151437/{{ revealButtonHref }}
https://github.com/python/cpython/pull/151437/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
https://github.com/python/cpython/pull/151437/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
https://github.com/python/cpython/pull/151437/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
Python/executor_cases.c.hhttps://github.com/python/cpython/pull/151437/files#diff-a1c3430c42a66c16e6d2e154491a6da993b187b27c628545a12a02c7b2a06b81
View file https://github.com/maurycy/cpython/blob/21ac917c890053921cb28b9682ef9fabb65961c7/Python/executor_cases.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/151437/files
Python/generated_cases.c.hhttps://github.com/python/cpython/pull/151437/files#diff-4ef46fa654f95502e49a24f7dc8ee31a4cac9b3433fe9cd2b2d4dd78cfbad448
View file https://github.com/maurycy/cpython/blob/21ac917c890053921cb28b9682ef9fabb65961c7/Python/generated_cases.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/151437/files
Please reload this pagehttps://github.com/python/cpython/pull/151437/files
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.