René's URL Explorer Experiment


Title: BOLT fails with `--enabled-shared` on LLVM 19 with "unable to get new address" · Issue #128472 · python/cpython · GitHub

Open Graph Title: BOLT fails with `--enabled-shared` on LLVM 19 with "unable to get new address" · Issue #128472 · python/cpython

X Title: BOLT fails with `--enabled-shared` on LLVM 19 with "unable to get new address" · Issue #128472 · python/cpython

Description: Bug report Bug description: As originally reported in astral-sh/python-build-standalone#463 LLVM 19.x has a hard error when handling PIC compiled functions containing computed gotos. It appears prior versions of LLVM could silently have ...

Open Graph Description: Bug report Bug description: As originally reported in astral-sh/python-build-standalone#463 LLVM 19.x has a hard error when handling PIC compiled functions containing computed gotos. It appears pri...

X Description: Bug report Bug description: As originally reported in astral-sh/python-build-standalone#463 LLVM 19.x has a hard error when handling PIC compiled functions containing computed gotos. It appears pri...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BOLT fails with `--enabled-shared` on LLVM 19 with \"unable to get new address\"","articleBody":"# Bug report\r\n\r\n### Bug description:\r\n\r\nAs originally reported in https://github.com/astral-sh/python-build-standalone/pull/463\r\n\r\n\u003e LLVM 19.x has a hard error when handling PIC compiled functions containing computed gotos. It appears prior versions of LLVM could silently have buggy behavior in this scenario. We need to skip functions with computed gotos to allow LLVM 19.x to work with BOLT.\r\n\r\nThis results in an error like\r\n\r\n```\r\nBOLT-ERROR: unable to get new address corresponding to input address 0x1af0fa in function _PyEval_EvalFrameDefault.localalias/1(*3). Consider adding this function to --skip-funcs=...\r\n```\r\n\r\nReproduced with\r\n\r\n```\r\n./configure \\\r\n    py_cv_module__openssl=n/a \\\r\n    py_cv_module__hashlib=n/a \\\r\n    py_cv_module__gdbm=n/a \\\r\n    --without-ensurepip \\\r\n    --enable-shared \\\r\n    --enable-optimizations \\\r\n    --enable-bolt\r\n```\r\n\r\nWithout `--enable-shared`, the failure doesn't occur.\r\n\r\nThere's an upstream fix in progress at https://github.com/llvm/llvm-project/pull/120267 — I'm not sure when it will be available. In the meantime, we should skip the functions. The patch fixing this will extend the common flags proposed in #128455, e.g., https://github.com/zanieb/cpython/commit/5448cd91c1cb65a7bd3ee3a0d70e63f6dba0db57\r\n\r\nSee also, commentary at https://github.com/python/cpython/issues/124948#issuecomment-2566703343\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003eAdditional logs\u003c/summary\u003e\r\n\u003cpre\u003e\r\nBOLT-INFO: Target architecture: x86_64\r\nBOLT-INFO: BOLT version: 6a0964d75628b15bafd078342120888c0e6d126f\r\nBOLT-INFO: first alloc address is 0x400000\r\nBOLT-INFO: creating new program header table at address 0x600000, offset 0x200000\r\nBOLT-WARNING: debug info will be stripped from the binary. Use -update-debug-sections to keep it.\r\nBOLT-INFO: enabling relocation mode\r\nBOLT-INFO: forcing -jump-tables=move for instrumentation\r\nBOLT-INFO: enabling lite mode\r\nBOLT-INFO: 0 out of 6 functions in the binary (0.0%) have non-empty execution profile\r\nBOLT-INSTRUMENTER: Number of indirect call site descriptors: 2\r\nBOLT-INSTRUMENTER: Number of indirect call target descriptors: 4\r\nBOLT-INSTRUMENTER: Number of function descriptors: 4\r\nBOLT-INSTRUMENTER: Number of branch counters: 1\r\nBOLT-INSTRUMENTER: Number of ST leaf node counters: 4\r\nBOLT-INSTRUMENTER: Number of direct call counters: 0\r\nBOLT-INSTRUMENTER: Total number of counters: 5\r\nBOLT-INSTRUMENTER: Total size of counters: 40 bytes (static alloc memory)\r\nBOLT-INSTRUMENTER: Total size of string table emitted: 47 bytes in file\r\nBOLT-INSTRUMENTER: Total size of descriptors: 356 bytes in file\r\nBOLT-INSTRUMENTER: Profile will be saved to file /fast/workspace/cpython/python.bolt\r\nBOLT-INFO: padding code to 0xa00000 to accommodate hot text\r\nBOLT-INFO: output linked against instrumentation runtime library, lib entry point is 0xa06950\r\nBOLT-INFO: clear procedure is 0xa02390\r\nBOLT-INFO: patched build-id (flipped last bit)\r\nBOLT-INFO: setting _end to 0xa0a0bc\r\nBOLT-INFO: setting _end to 0xa0a0bc\r\nBOLT-INFO: setting __bolt_runtime_start to 0xa06900\r\nBOLT-INFO: setting __bolt_runtime_fini to 0xa06950\r\nBOLT-INFO: setting __hot_start to 0x800000\r\nBOLT-INFO: setting __hot_end to 0x80014c\r\nBOLT-INFO: shared object or position-independent executable detected\r\nBOLT-INFO: Target architecture: x86_64\r\nBOLT-INFO: BOLT version: 6a0964d75628b15bafd078342120888c0e6d126f\r\nBOLT-INFO: first alloc address is 0x0\r\nBOLT-INFO: creating new program header table at address 0x600000, offset 0x600000\r\nBOLT-WARNING: debug info will be stripped from the binary. Use -update-debug-sections to keep it.\r\nBOLT-INFO: enabling relocation mode\r\nBOLT-INFO: forcing -jump-tables=move for instrumentation\r\nBOLT-INFO: enabling lite mode\r\nBOLT-WARNING: Failed to analyze 1381 relocations\r\nBOLT-INFO: 0 out of 7363 functions in the binary (0.0%) have non-empty execution profile\r\nBOLT-INSTRUMENTER: Number of indirect call site descriptors: 1508\r\nBOLT-INSTRUMENTER: Number of indirect call target descriptors: 7281\r\nBOLT-INSTRUMENTER: Number of function descriptors: 7281\r\nBOLT-INSTRUMENTER: Number of branch counters: 82352\r\nBOLT-INSTRUMENTER: Number of ST leaf node counters: 43921\r\nBOLT-INSTRUMENTER: Number of direct call counters: 0\r\nBOLT-INSTRUMENTER: Total number of counters: 126273\r\nBOLT-INSTRUMENTER: Total size of counters: 1010184 bytes (static alloc memory)\r\nBOLT-INSTRUMENTER: Total size of string table emitted: 186842 bytes in file\r\nBOLT-INSTRUMENTER: Total size of descriptors: 8306748 bytes in file\r\nBOLT-INSTRUMENTER: Profile will be saved to file /fast/workspace/cpython/libpython3.14.so.1.0.bolt\r\nBOLT-INFO: 62323 instructions were shortened\r\nBOLT-INFO: removed 156 empty blocks\r\nBOLT-INFO: UCE removed 1608 blocks and 99444 bytes of code\r\nBOLT-INFO: padding code to 0x1000000 to accommodate hot text\r\nBOLT-INFO: output linked against instrumentation runtime library, lib entry point is 0x11be950\r\nBOLT-INFO: clear procedure is 0x11ba390\r\nBOLT-INFO: patched build-id (flipped last bit)\r\nBOLT-INFO: setting __bolt_runtime_start to 0x11be900\r\nBOLT-INFO: setting __bolt_runtime_fini to 0x11be950\r\nBOLT-INFO: setting __hot_start to 0x800000\r\nBOLT-INFO: setting __hot_end to 0xe1e116\r\nBOLT-ERROR: unable to get new address corresponding to input address 0x1af0fa in function _PyEval_EvalFrameDefault.localalias/1(*3). Consider adding this function to --skip-funcs=...\r\n\u003c/pre\u003e\r\n\u003c/details\u003e\r\n\r\n\r\n### CPython versions tested on:\r\n\r\nCPython main branch\r\n\r\n### Operating systems tested on:\r\n\r\nLinux\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-128511\n* gh-128572\n* gh-128573\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/zanieb","@type":"Person","name":"zanieb"},"datePublished":"2025-01-04T07:04:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/128472/cpython/issues/128472"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:685fe6ea-39e1-b1b5-2c56-ef7baa9321bd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id956A:3A35C6:439C38:5BD513:696AA8A0
html-safe-nonceef8aaf60e40b0de148c942de1af5cf947d58b8e8ea1949b35bc66cd9edeff254
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTZBOjNBMzVDNjo0MzlDMzg6NUJENTEzOjY5NkFBOEEwIiwidmlzaXRvcl9pZCI6Ijg4MjQ1MTAyODQyNDg1NTc3MjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb3c5ca2fd4a32e0e00010007d3f933f9ca0167c47a0eec3204756ec4a3c9a7fe
hovercard-subject-tagissue:2768550676
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/128472/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6d01ad520fbbfa254e51c9713e87d3b1da1bacd6277d038a835a45bcee65e05b/python/cpython/issues/128472
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6d01ad520fbbfa254e51c9713e87d3b1da1bacd6277d038a835a45bcee65e05b/python/cpython/issues/128472
og:image:altBug report Bug description: As originally reported in astral-sh/python-build-standalone#463 LLVM 19.x has a hard error when handling PIC compiled functions containing computed gotos. It appears pri...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamezanieb
hostnamegithub.com
expected-hostnamegithub.com
None3eaf9b8cf1badcd7041a8ad480b9d9b28bea0ef1cc821ca9ff20f2cc7f4fe4b9
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
releasedd9a979046e6382bd084e2bd873bf65f797125ff
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/128472#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F128472
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%2F128472
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/128472
Reloadhttps://github.com/python/cpython/issues/128472
Reloadhttps://github.com/python/cpython/issues/128472
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/128472
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/128472
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/128472
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/128472
#128511https://github.com/python/cpython/pull/128511
BOLT fails with --enabled-shared on LLVM 19 with "unable to get new address"https://github.com/python/cpython/issues/128472#top
#128511https://github.com/python/cpython/pull/128511
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 4, 2025https://github.com/python/cpython/issues/128472#issue-2768550676
astral-sh/python-build-standalone#463https://github.com/astral-sh/python-build-standalone/pull/463
llvm/llvm-project#120267https://github.com/llvm/llvm-project/pull/120267
#128455https://github.com/python/cpython/pull/128455
zanieb@5448cd9https://github.com/zanieb/cpython/commit/5448cd91c1cb65a7bd3ee3a0d70e63f6dba0db57
#124948 (comment)https://github.com/python/cpython/issues/124948#issuecomment-2566703343
gh-128472: Add -skip-funcs to BOLT options to fix computed goto errors #128511https://github.com/python/cpython/pull/128511
[3.12] gh-128472: Add -skip-funcs to BOLT options to fix computed goto errors (gh-128511) #128572https://github.com/python/cpython/pull/128572
[3.13] gh-128472: Add -skip-funcs to BOLT options to fix computed goto errors (gh-128511) #128573https://github.com/python/cpython/pull/128573
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.