René's URL Explorer Experiment


Title: Some DTrace probes are broken in 3.11 · Issue #98894 · python/cpython · GitHub

Open Graph Title: Some DTrace probes are broken in 3.11 · Issue #98894 · python/cpython

X Title: Some DTrace probes are broken in 3.11 · Issue #98894 · python/cpython

Description: Crash report I've been using eBPF with the static markers in Python 3.10 and wanted to try out 3.11 now that it is released. But it seems that the function__entry and line markers are broken in 3.11. The function__entry probe simply does...

Open Graph Description: Crash report I've been using eBPF with the static markers in Python 3.10 and wanted to try out 3.11 now that it is released. But it seems that the function__entry and line markers are broken in 3.1...

X Description: Crash report I've been using eBPF with the static markers in Python 3.10 and wanted to try out 3.11 now that it is released. But it seems that the function__entry and line markers are broken in...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Some DTrace probes are broken in 3.11","articleBody":"\u003c!--\r\n  Use this template for hard crashes of the interpreter, segmentation faults, failed C-level assertions, and similar.\r\n  Do not submit this form if you encounter an exception being unexpectedly raised from a Python function.\r\n  Most of the time, these should be filed as bugs, rather than crashes.\r\n\r\n  The CPython interpreter is itself written in a different programming language, C.\r\n  For CPython, a \"crash\" is when Python itself fails, leading to a traceback in the C stack.\r\n--\u003e\r\n\r\n# Crash report\r\nI've been using eBPF with the static markers in Python 3.10 and wanted to try out 3.11 now that it is released.\r\n\r\nBut it seems that the `function__entry` and `line` markers are broken in 3.11.\r\n\r\nThe `function__entry` probe simply does not fire into the eBPF program.\r\nThe `line` probe crashes the interpreter. \r\n\r\nI'm using BCC to load the eBPF program like this:\r\n```\r\n#!/usr/bin/python3\r\n\r\nimport argparse\r\nfrom bcc import BPF, USDT\r\n\r\nparser = argparse.ArgumentParser()\r\nparser.add_argument(\"pid\", type=int)\r\nargs = parser.parse_args()\r\n\r\nprogram = \"\"\"\r\nint trace_entry(struct pt_regs *ctx) {\r\n    bpf_trace_printk(\"Entry:\");\r\n\r\n    return 0;\r\n}\r\n\r\nint trace_return(struct pt_regs *ctx) {\r\n    bpf_trace_printk(\"Return:\");\r\n\r\n    return 0;\r\n}\r\n\r\nint trace_line(struct pt_regs *ctx) {\r\n    bpf_trace_printk(\"Line:\");\r\n\r\n    return 0;\r\n}\r\n\"\"\"\r\n\r\nusdt = USDT(pid=args.pid)\r\nusdt.enable_probe_or_bail(\"python:function__entry\", 'trace_entry')\r\nusdt.enable_probe_or_bail(\"python:function__return\", 'trace_return')\r\nusdt.enable_probe_or_bail(\"python:line\", 'trace_line')\r\n\r\nbpf = BPF(text=program, usdt_contexts=[usdt] if usdt else [], debug=0)\r\n\r\ntry:\r\n    bpf.trace_print()\r\nexcept KeyboardInterrupt:\r\n    exit()\r\n```\r\n\r\nIf I don't enable the `line` probe this is the output:\r\n\r\n```\r\n❯ sudo ./ebpf-test.py 80715\r\nb'          python-80715   [001] d...1  6539.145626: bpf_trace_printk: Return:'\r\n```\r\nThe entry message is never printed.\r\n\r\n\r\n# Error messages\r\nWith the  `line` probe enabled, this is the crash error:\r\n```\r\n❯ ./python\r\nPython 3.11.0+ (heads/3.11:57dd11038f, Oct 31 2022, 10:30:28) [GCC 11.3.0] on linux\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e print(\"Hello world!\")\r\npython: Python/ceval.c:5620: _PyEval_EvalFrameDefault: Assertion `cframe.use_tracing' failed.\r\n[1]    80398 IOT instruction (core dumped)  ./python\r\n```\r\n# Expected result\r\nRunning the same test in 3.10.6 I get this result, as expected:\r\n```\r\n❯ python3                      \r\nPython 3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0] on linux\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e print(\"Hello world!\")\r\nHello world!\r\n```\r\n```\r\n❯ sudo ./ebpf-test.py 81962\r\nb'         python3-81962   [003] d...1  6907.857690: bpf_trace_printk: Entry:'\r\nb'         python3-81962   [003] d...1  6907.857710: bpf_trace_printk: Line:'\r\nb'         python3-81962   [003] d...1  6907.857765: bpf_trace_printk: Return:'\r\n```\r\n\r\n\r\n# Your environment\r\n\r\nI used the head of the 3.11 branch with `./configure --with-dtrace --with-pydebug`\r\nOn Ubuntu 22.04.\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-125019\n* gh-139334\n* gh-142397\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/Elias-elastisys","@type":"Person","name":"Elias-elastisys"},"datePublished":"2022-10-31T09:50:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/98894/cpython/issues/98894"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4a95e041-cf2a-5442-a1aa-c30ba5704ec8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCFCA:27E9DD:148CF0:1D12DB:696A0E6B
html-safe-nonce44a7d5c9f52e0a3379fc494264cfa471a8171d455077bc66bb6296f4c153df43
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkNBOjI3RTlERDoxNDhDRjA6MUQxMkRCOjY5NkEwRTZCIiwidmlzaXRvcl9pZCI6Ijc4NTE3NzU3MTc0NDE1NzI5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaccb57b1611ca6ad0d2894b880f6e5ef59676df2738b959489f167e21aa4d28062
hovercard-subject-tagissue:1429561873
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/98894/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7579efbc657c8c1f4527f1ded6e01c4843883d4f51f78b5b7ac988f67fba4565/python/cpython/issues/98894
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7579efbc657c8c1f4527f1ded6e01c4843883d4f51f78b5b7ac988f67fba4565/python/cpython/issues/98894
og:image:altCrash report I've been using eBPF with the static markers in Python 3.10 and wanted to try out 3.11 now that it is released. But it seems that the function__entry and line markers are broken in 3.1...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameElias-elastisys
hostnamegithub.com
expected-hostnamegithub.com
None699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595
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
release7266b2d935baa1c6474b16dd9feaa5ca30607261
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/98894#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F98894
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%2F98894
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/98894
Reloadhttps://github.com/python/cpython/issues/98894
Reloadhttps://github.com/python/cpython/issues/98894
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/98894
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/98894
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/98894
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/98894
Some DTrace probes are broken in 3.11https://github.com/python/cpython/issues/98894#top
3.11only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.11%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%22
https://github.com/Elias-elastisys
https://github.com/Elias-elastisys
Elias-elastisyshttps://github.com/Elias-elastisys
on Oct 31, 2022https://github.com/python/cpython/issues/98894#issue-1429561873
GH-98894: Fix function__return and function__entry dTrace probe missing after GH-103083 #125019https://github.com/python/cpython/pull/125019
gh-98894: Update DTrace Docs in instrumentation.rst #139334https://github.com/python/cpython/pull/139334
gh-98894: Restore function entry/exit DTrace probes #142397https://github.com/python/cpython/pull/142397
3.11only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.11%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%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.