René's URL Explorer Experiment


Title: BOLT optimizations fail on Linux aarch64 · Issue #128884 · python/cpython · GitHub

Open Graph Title: BOLT optimizations fail on Linux aarch64 · Issue #128884 · python/cpython

X Title: BOLT optimizations fail on Linux aarch64 · Issue #128884 · python/cpython

Description: Bug report Bug description: When running the --pgo test suite with a BOLT instrumented binary, the interpreter crashes with ./python -m test --pgo --rerun --verbose3 --timeout= python: ../cpython-ro-srcdir/Python/generated_cases.c.h:1074...

Open Graph Description: Bug report Bug description: When running the --pgo test suite with a BOLT instrumented binary, the interpreter crashes with ./python -m test --pgo --rerun --verbose3 --timeout= python: ../cpython-r...

X Description: Bug report Bug description: When running the --pgo test suite with a BOLT instrumented binary, the interpreter crashes with ./python -m test --pgo --rerun --verbose3 --timeout= python: ../cpython-r...

Opengraph URL: https://github.com/python/cpython/issues/128884

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BOLT optimizations fail on Linux aarch64","articleBody":"# Bug report\n\n### Bug description:\n\nWhen running the `--pgo` test suite with a BOLT instrumented binary, the interpreter crashes with\n\n```\n./python -m test --pgo --rerun --verbose3 --timeout=\npython: ../cpython-ro-srcdir/Python/generated_cases.c.h:1074: _PyEval_EvalFrameDefault: Assertion `tp-\u003etp_alloc == PyType_GenericAlloc' failed.\nAborted (core dumped)\n```\n\nI find this surprising since we include `_PyEval_EvalFrameDefault` in the BOLT skip functions — but am not familiar with the details.\n\nThe following patch successfully worked around that error\n\n```diff\ndiff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h\nindex 810beb61d0d..d24add0afab 100644\n--- a/Python/generated_cases.c.h\n+++ b/Python/generated_cases.c.h\n@@ -1071,7 +1071,7 @@\n                 DEOPT_IF(FT_ATOMIC_LOAD_UINT32_RELAXED(tp-\u003etp_version_tag) != type_version, CALL);\n                 assert(tp-\u003etp_new == PyBaseObject_Type.tp_new);\n                 assert(tp-\u003etp_flags \u0026 Py_TPFLAGS_HEAPTYPE);\n-                assert(tp-\u003etp_alloc == PyType_GenericAlloc);\n+                assert(tp-\u003etp_alloc == PyBaseObject_Type.tp_alloc);\n                 PyHeapTypeObject *cls = (PyHeapTypeObject *)callable_o;\n                 PyFunctionObject *init_func = (PyFunctionObject *)FT_ATOMIC_LOAD_PTR_ACQUIRE(cls-\u003e_spec_cache.init);\n                 PyCodeObject *code = (PyCodeObject *)init_func-\u003efunc_code;\n```\n\nThen, the profiling test run succeeded, but BOLT crashed during the apply step.\n\n```\n# Run bolt against the merged data to produce an optimized binary.\nfor bin in python; do \\\n  /usr/lib/llvm-19/bin/llvm-bolt \"${bin}.prebolt\" -o \"${bin}.bolt\" -data=\"${bin}.fdata\" -update-debug-sections -skip-funcs=_PyEval_EvalFrameDefault,sre_ucs1_match/1,sre_ucs2_match/1,sre_ucs4_match/1  -reorder-blocks=ext-tsp -reorder-functions=cdsort -split-functions -icf=1 -inline-all -split-eh -reorder-functions-use-hot-size -peepholes=none -jump-tables=aggressive -inline-ap -indirect-call-promotion=all -dyno-stats -use-gnu-stack -frame-opt=hot ; \\\n  mv \"${bin}.bolt\" \"${bin}\"; \\\ndone\nBOLT-INFO: Target architecture: aarch64\nBOLT-INFO: BOLT version: \u003cunknown\u003e\nBOLT-INFO: first alloc address is 0x400000\nBOLT-INFO: enabling relocation mode\nBOLT-INFO: pre-processing profile using branch profile reader\nBOLT-INFO: number of removed linker-inserted veneers: 0\nBOLT-INFO: 8500 out of 12058 functions in the binary (70.5%) have non-empty execution profile\nBOLT-INFO: 41 functions with profile could not be optimized\nBOLT-INFO: profile for 1 objects was ignored\nBOLT-INFO: removed 1 empty block\nBOLT-INFO: ICF folded 678 out of 12439 functions in 5 passes. 0 functions had jump tables.\nBOLT-INFO: Removing all identical functions will save 46.23 KB of code space. Folded functions were called 3909549484 times based on profile.\nBOLT-INFO: ICP Total indirect calls = 1808544446, 153 callsites cover 99% of all indirect calls\n #0 0x0000aacc1be768cc (/usr/lib/llvm-19/bin/llvm-bolt+0x1ae68cc)\n #1 0x0000aacc1be74b80 (/usr/lib/llvm-19/bin/llvm-bolt+0x1ae4b80)\n #2 0x0000aacc1be77174 (/usr/lib/llvm-19/bin/llvm-bolt+0x1ae7174)\n #3 0x0000ff03feee37e0 (linux-vdso.so.1+0x7e0)\n #4 0x0000aacc1c397200 (/usr/lib/llvm-19/bin/llvm-bolt+0x2007200)\n #5 0x0000aacc1c39aa1c (/usr/lib/llvm-19/bin/llvm-bolt+0x200aa1c)\n #6 0x0000aacc1c39a9e4 (/usr/lib/llvm-19/bin/llvm-bolt+0x200a9e4)\n #7 0x0000aacc1c39a9e4 (/usr/lib/llvm-19/bin/llvm-bolt+0x200a9e4)\n #8 0x0000aacc1bf1ebc4 (/usr/lib/llvm-19/bin/llvm-bolt+0x1b8ebc4)\n #9 0x0000aacc1bf21328 (/usr/lib/llvm-19/bin/llvm-bolt+0x1b91328)\n#10 0x0000aacc1becfe3c (/usr/lib/llvm-19/bin/llvm-bolt+0x1b3fe3c)\n#11 0x0000aacc1aadf2f0 (/usr/lib/llvm-19/bin/llvm-bolt+0x74f2f0)\n#12 0x0000ff03fe8684c4 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:74:3\n#13 0x0000ff03fe868598 call_init ./csu/../csu/libc-start.c:128:20\n#14 0x0000ff03fe868598 __libc_start_main ./csu/../csu/libc-start.c:347:5\n#15 0x0000aacc1aadd4f0 (/usr/lib/llvm-19/bin/llvm-bolt+0x74d4f0)\nPLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.\nStack dump:\n0.\tProgram arguments: /usr/lib/llvm-19/bin/llvm-bolt python.prebolt -o python.bolt -data=python.fdata -update-debug-sections -skip-funcs=_PyEval_EvalFrameDefault,sre_ucs1_match/1,sre_ucs2_match/1,sre_ucs4_match/1 -reorder-blocks=ext-tsp -reorder-functions=cdsort -split-functions -icf=1 -inline-all -split-eh -reorder-functions-use-hot-size -peepholes=none -jump-tables=aggressive -inline-ap -indirect-call-promotion=all -dyno-stats -use-gnu-stack -frame-opt=hot\nSegmentation fault (core dumped)\n```\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux","author":{"url":"https://github.com/zanieb","@type":"Person","name":"zanieb"},"datePublished":"2025-01-15T15:13:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/128884/cpython/issues/128884"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a9374d3b-834b-641a-7b8d-a2b8b6621644
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAA44:25C52D:AE9990:E1ECF8:696B22D2
html-safe-nonce3bbfbdf84d8681a46bd7048869333d09fd2c2eb35f747e74aca543ac8acac60d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTQ0OjI1QzUyRDpBRTk5OTA6RTFFQ0Y4OjY5NkIyMkQyIiwidmlzaXRvcl9pZCI6IjQ2ODUwMDQ5NzYxNDcwOTQ1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac86e14194aeb2891a98e2c6dbf2aee8033952b393503f1a933ac65c42a5969ccf
hovercard-subject-tagissue:2790119951
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/cpython/128884/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d460996fc5b68b2684cecd14910b759ae85c45ced8e221c8da24d36d20bfeb91/python/cpython/issues/128884
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d460996fc5b68b2684cecd14910b759ae85c45ced8e221c8da24d36d20bfeb91/python/cpython/issues/128884
og:image:altBug report Bug description: When running the --pgo test suite with a BOLT instrumented binary, the interpreter crashes with ./python -m test --pgo --rerun --verbose3 --timeout= python: ../cpython-r...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamezanieb
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/128884#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F128884
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%2Fissues%2F128884
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%2Fcpython
Reloadhttps://github.com/python/cpython/issues/128884
Reloadhttps://github.com/python/cpython/issues/128884
Reloadhttps://github.com/python/cpython/issues/128884
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/128884
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/issues/128884
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
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/128884
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/128884
BOLT optimizations fail on Linux aarch64https://github.com/python/cpython/issues/128884#top
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/zanieb
https://github.com/zanieb
zaniebhttps://github.com/zanieb
on Jan 15, 2025https://github.com/python/cpython/issues/128884#issue-2790119951
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
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.