René's URL Explorer Experiment


Title: Bolt instrumentation missing `-update-debug-sections` · Issue #128437 · python/cpython · GitHub

Open Graph Title: Bolt instrumentation missing `-update-debug-sections` · Issue #128437 · python/cpython

X Title: Bolt instrumentation missing `-update-debug-sections` · Issue #128437 · python/cpython

Description: Bug report Bug description: The following warning is displayed during BOLT instrumentation BOLT-WARNING: debug info will be stripped from the binary. Use -update-debug-sections to keep it. The flag is provided during "apply" cpython/conf...

Open Graph Description: Bug report Bug description: The following warning is displayed during BOLT instrumentation BOLT-WARNING: debug info will be stripped from the binary. Use -update-debug-sections to keep it. The flag...

X Description: Bug report Bug description: The following warning is displayed during BOLT instrumentation BOLT-WARNING: debug info will be stripped from the binary. Use -update-debug-sections to keep it. The flag...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bolt instrumentation missing `-update-debug-sections`","articleBody":"# Bug report\n\n### Bug description:\n\nThe following warning is displayed during BOLT instrumentation\n\n```\nBOLT-WARNING: debug info will be stripped from the binary. Use -update-debug-sections to keep it.\n```\n\nThe flag is provided during \"apply\"\n\nhttps://github.com/python/cpython/blob/81376fef76a53fb79893bfa9c9db18d97c228fbe/configure.ac#L2184\n\nbut not during \"instrumentation\"\n\nhttps://github.com/python/cpython/blob/81376fef76a53fb79893bfa9c9db18d97c228fbe/configure.ac#L2170\n\nReproduced with\n\n```\nmake clean\n\nexport CC=clang\nexport CXX=clang++\n\n./configure py_cv_module__openssl=n/a py_cv_module__hashlib=n/a py_cv_module__gdbm=n/a py_cv_module__tkinter=n/a \\\n    --without-ensurepip \\\n    --enable-optimizations --enable-bolt\n\nmake -j8\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eAdditional logs\u003c/summary\u003e\n\u003cpre\u003e\n...\nmake profile-bolt-stamp\nmake[1]: Entering directory '/big/workspace/cpython'\n# Ensure a pristine, pre-BOLT copy of the binary and no profile data from last run.\nfor bin in python; do \\\n  prebolt=\"${bin}.prebolt\"; \\\n  if [ -e \"${prebolt}\" ]; then \\\n    echo \"Restoring pre-BOLT binary ${prebolt}\"; \\\n    mv \"${bin}.prebolt\" \"${bin}\"; \\\n  fi; \\\n  cp \"${bin}\" \"${prebolt}\"; \\\n  rm -f ${bin}.bolt.*.fdata ${bin}.fdata; \\\ndone\n# Instrument each binary.\nfor bin in python; do \\\n  /usr/bin/llvm-bolt \"${bin}\" -instrument -instrumentation-file-append-pid -instrumentation-file=/big/workspace/cpython/${bin}.bolt -o ${bin}.bolt_inst ; \\\n  mv \"${bin}.bolt_inst\" \"${bin}\"; \\\ndone\nBOLT-INFO: Target architecture: x86_64\nBOLT-INFO: BOLT version: 6a0964d75628b15bafd078342120888c0e6d126f\nBOLT-INFO: first alloc address is 0x400000\nBOLT-INFO: creating new program header table at address 0xa00000, offset 0x600000\nBOLT-WARNING: debug info will be stripped from the binary. Use -update-debug-sections to keep it.\nBOLT-INFO: enabling relocation mode\nBOLT-INFO: forcing -jump-tables=move for instrumentation\nBOLT-INFO: enabling lite mode\nBOLT-INFO: 0 out of 7748 functions in the binary (0.0%) have non-empty execution profile\nBOLT-INFO: validate-mem-refs updated 2 object references\nBOLT-INSTRUMENTER: Number of indirect call site descriptors: 1995\nBOLT-INSTRUMENTER: Number of indirect call target descriptors: 7719\nBOLT-INSTRUMENTER: Number of function descriptors: 7719\nBOLT-INSTRUMENTER: Number of branch counters: 150867\nBOLT-INSTRUMENTER: Number of ST leaf node counters: 47195\nBOLT-INSTRUMENTER: Number of direct call counters: 0\nBOLT-INSTRUMENTER: Total number of counters: 198062\nBOLT-INSTRUMENTER: Total size of counters: 1584496 bytes (static alloc memory)\nBOLT-INSTRUMENTER: Total size of string table emitted: 166904 bytes in file\nBOLT-INSTRUMENTER: Total size of descriptors: 10927480 bytes in file\nBOLT-INSTRUMENTER: Profile will be saved to file /big/workspace/cpython/python.bolt\nBOLT-INFO: 66759 instructions were shortened\nBOLT-INFO: removed 84 empty blocks\nBOLT-INFO: UCE removed 838 blocks and 51008 bytes of code\nBOLT-INFO: padding code to 0x1600000 to accommodate hot text\nBOLT-INFO: output linked against instrumentation runtime library, lib entry point is 0x18e0950\nBOLT-INFO: clear procedure is 0x18dc390\nBOLT-INFO: patched build-id (flipped last bit)\nBOLT-INFO: setting _end to 0x190247c\nBOLT-INFO: setting _end to 0x190247c\nBOLT-INFO: setting __bolt_runtime_start to 0x18e0900\nBOLT-INFO: setting __bolt_runtime_fini to 0x18e0950\nBOLT-INFO: setting __hot_start to 0xc00000\nBOLT-INFO: setting __hot_end to 0x14b3986\n# Run instrumented binaries to collect data.\n./python -m test --pgo --timeout=\n...\n\u003c/pre\u003e\n\u003c/details\u003e\n\nThis was patched downstream in `python-build-standalone` https://github.com/astral-sh/python-build-standalone/pull/463 — I'm interesting in upstreaming that patch.\n\nA simple patch like\n\n```diff\ndiff --git a/configure.ac b/configure.ac\nindex ee034e5a962..d0245debd5b 100644\n--- a/configure.ac\n+++ b/configure.ac\n@@ -2167,7 +2167,7 @@ AC_ARG_VAR(\n AC_MSG_CHECKING([BOLT_INSTRUMENT_FLAGS])\n if test -z \"${BOLT_INSTRUMENT_FLAGS}\"\n then\n-  BOLT_INSTRUMENT_FLAGS=\n+  BOLT_INSTRUMENT_FLAGS=\"-update-debug-sections\"\n fi\n AC_MSG_RESULT([$BOLT_INSTRUMENT_FLAGS])\n ```\n \n is sufficient — but downstream a `BOLT_COMMON_FLAGS` variable was added which was useful for subsequent fixes.\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-128455\n* gh-128512\n* gh-128513\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/zanieb","@type":"Person","name":"zanieb"},"datePublished":"2025-01-03T07:56:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/128437/cpython/issues/128437"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:938641e3-b222-9918-6300-043936bc2768
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA1A2:296AF5:25723A1:332FF49:696AC9AD
html-safe-nonce1bbe1216394eaae269a318831a6c0388f6512eadb2e160941cf1c2b8c41c2bfe
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUEyOjI5NkFGNToyNTcyM0ExOjMzMkZGNDk6Njk2QUM5QUQiLCJ2aXNpdG9yX2lkIjoiNjYyODE4ODk0MTA4Mjg3MjIzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac027f2cb5b44bb34f3a7bd2923eae1a6966aefedccabd786c5cbc2f6ee40afe02
hovercard-subject-tagissue:2767138170
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/128437/issue_layout
twitter:imagehttps://opengraph.githubassets.com/922b3f31392c22c8e3eeb700096beec6fc2940eeb381290441c98a2182af7df7/python/cpython/issues/128437
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/922b3f31392c22c8e3eeb700096beec6fc2940eeb381290441c98a2182af7df7/python/cpython/issues/128437
og:image:altBug report Bug description: The following warning is displayed during BOLT instrumentation BOLT-WARNING: debug info will be stripped from the binary. Use -update-debug-sections to keep it. The flag...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamezanieb
hostnamegithub.com
expected-hostnamegithub.com
Nonec785f4ce187e9e7331257791b36ddee01625bb8e292a9b4fe2c16d4c006abf5d
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
releasec718a376fcf780eb22089171adb84a543f660bf7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/128437#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F128437
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%2F128437
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/128437
Reloadhttps://github.com/python/cpython/issues/128437
Reloadhttps://github.com/python/cpython/issues/128437
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/128437
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/128437
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/128437
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/128437
#128455https://github.com/python/cpython/pull/128455
Bolt instrumentation missing -update-debug-sectionshttps://github.com/python/cpython/issues/128437#top
#128455https://github.com/python/cpython/pull/128455
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 3, 2025https://github.com/python/cpython/issues/128437#issue-2767138170
cpython/configure.achttps://github.com/python/cpython/blob/81376fef76a53fb79893bfa9c9db18d97c228fbe/configure.ac#L2184
81376fehttps://github.com/python/cpython/commit/81376fef76a53fb79893bfa9c9db18d97c228fbe
cpython/configure.achttps://github.com/python/cpython/blob/81376fef76a53fb79893bfa9c9db18d97c228fbe/configure.ac#L2170
81376fehttps://github.com/python/cpython/commit/81376fef76a53fb79893bfa9c9db18d97c228fbe
astral-sh/python-build-standalone#463https://github.com/astral-sh/python-build-standalone/pull/463
gh-128437: Add BOLT_COMMON_FLAGS with -update-debug-sections #128455https://github.com/python/cpython/pull/128455
[3.13] gh-128437: Add BOLT_COMMON_FLAGS with -update-debug-sections (gh-128455) #128512https://github.com/python/cpython/pull/128512
[3.12] gh-128437: Add BOLT_COMMON_FLAGS with -update-debug-sections (gh-128455) #128513https://github.com/python/cpython/pull/128513
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.