René's URL Explorer Experiment


Title: Type punning (and strict aliasing) issue in Py_CLEAR() and Py_SETREF() macros: Python --enable-pystats is miscompiled · Issue #99701 · python/cpython · GitHub

Open Graph Title: Type punning (and strict aliasing) issue in Py_CLEAR() and Py_SETREF() macros: Python --enable-pystats is miscompiled · Issue #99701 · python/cpython

X Title: Type punning (and strict aliasing) issue in Py_CLEAR() and Py_SETREF() macros: Python --enable-pystats is miscompiled · Issue #99701 · python/cpython

Description: Bug report When building with --enable-pystats, the ensurepip step fails with a segmentation fault. The v3.11.0 tag works on this machine, main is currently broken. I have not yet bisected it. Cc @markshannon as the primary pystats autho...

Open Graph Description: Bug report When building with --enable-pystats, the ensurepip step fails with a segmentation fault. The v3.11.0 tag works on this machine, main is currently broken. I have not yet bisected it. Cc @...

X Description: Bug report When building with --enable-pystats, the ensurepip step fails with a segmentation fault. The v3.11.0 tag works on this machine, main is currently broken. I have not yet bisected it. Cc @...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Type punning (and strict aliasing) issue in Py_CLEAR() and Py_SETREF() macros: Python --enable-pystats is miscompiled","articleBody":"# Bug report\r\n\r\nWhen building with `--enable-pystats`, the `ensurepip` step fails with a segmentation fault.\r\nThe v3.11.0 tag works on this machine, `main` is currently broken.  I have not yet bisected it.\r\n\r\nCc @markshannon as the primary pystats author.\r\n\r\n# Your environment\r\n\r\nDebian bookworm, WSL\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003eOutput during build\u003c/summary\u003e\r\n\r\n```\r\nif test \"xupgrade\" != \"xno\"  ; then \\\r\n        case upgrade in \\                                                                                                               upgrade) ensurepip=\"--upgrade\" ;; \\\r\n                install|*) ensurepip=\"\" ;; \\\r\n        esac; \\                                                                                                                  ./python -E -m ensurepip \\\r\n                $ensurepip --root=/ ; \\\r\nfi\r\nLooking in links: /tmp/tmpnrufafo0\r\nProcessing /tmp/tmpnrufafo0/setuptools-65.5.0-py3-none-any.whl\r\nProcessing /tmp/tmpnrufafo0/pip-22.3.1-py3-none-any.whl\r\nInstalling collected packages: setuptools, pip                                                                          Traceback (most recent call last):\r\n  File \"\u003cfrozen runpy\u003e\", line 198, in _run_module_as_main\r\n  File \"\u003cfrozen runpy\u003e\", line 88, in _run_code\r\n  File \"/home/mdboom/Work/builds/cpython/Lib/ensurepip/__main__.py\", line 5, in \u003cmodule\u003e                                    sys.exit(ensurepip._main())                                                                                                      ^^^^^^^^^^^^^^^^^\r\n  File \"/home/mdboom/Work/builds/cpython/Lib/ensurepip/__init__.py\", line 286, in _main                                     return _bootstrap(\r\n           ^^^^^^^^^^^\r\n  File \"/home/mdboom/Work/builds/cpython/Lib/ensurepip/__init__.py\", line 202, in _bootstrap\r\n    return _run_pip([*args, *_PACKAGE_NAMES], additional_paths)                                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/home/mdboom/Work/builds/cpython/Lib/ensurepip/__init__.py\", line 103, in _run_pip\r\n    return subprocess.run(cmd, check=True).returncode                                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/home/mdboom/Work/builds/cpython/Lib/subprocess.py\", line 571, in run                                               raise CalledProcessError(retcode, process.args,                                                                     subprocess.CalledProcessError: Command '['/home/mdboom/Work/builds/cpython/python', '-W', 'ignore::DeprecationWarning', '-c', '\\nimport runpy\\nimport sys\\nsys.path = [\\'/tmp/tmpnrufafo0/setuptools-65.5.0-py3-none-any.whl\\', \\'/tmp/tmpnrufafo0/pip-22.3.1-py3-none-any.whl\\'] + sys.path\\nsys.argv[1:] = [\\'install\\', \\'--no-cache-dir\\', \\'--no-index\\', \\'--find-links\\', \\'/tmp/tmpnrufafo0\\', \\'--root\\', \\'/\\', \\'--upgrade\\', \\'setuptools\\', \\'pip\\']\\nrunpy.run_module(\"pip\", run_name=\"__main__\", alter_sys=True)\\n']' died with \u003cSignals.SIGSEGV: 11\u003e.\r\n```\r\n\u003c/details\u003e\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003eBacktrace from the segfault\u003c/summary\u003e\r\n\r\n```\r\n#0  tee_next (to=0x7ffff5ba9040) at ./Modules/itertoolsmodule.c:998\r\n#1  0x0000555555897f66 in filterfalse_next (lz=0x7ffff5c109d0) at ./Modules/itertoolsmodule.c:4198\r\n#2  0x00005555557caf4e in map_next (lz=0x7ffff5c12a10) at Python/bltinmodule.c:1359\r\n#3  0x000055555589b10a in chain_next (lz=0x7ffff5c10640) at ./Include/object.h:135\r\n#4  0x000055555589b10a in chain_next (lz=0x7ffff5c129b0) at ./Include/object.h:135\r\n#5  0x00005555556551d7 in _PyEval_EvalFrameDefault (tstate=\u003coptimized out\u003e, frame=0x7ffff7fb9bd8,\r\n    throwflag=\u003coptimized out\u003e) at ./Include/object.h:135\r\n#6  0x00005555556bf0bd in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=3, args=0x7fffffffd120,\r\n    callable=0x7ffff5c311c0, tstate=0x555555b98968 \u003c_PyRuntime+450344\u003e) at ./Include/internal/pycore_call.h:92\r\n#7  method_vectorcall (method=\u003coptimized out\u003e, args=0x7ffff5e11218, nargsf=\u003coptimized out\u003e, kwnames=0x0)\r\n    at Objects/classobject.c:89\r\n#8  0x0000555555656173 in do_call_core (use_tracing=\u003coptimized out\u003e, kwdict=0x0, callargs=0x7ffff5e11200,\r\n    func=0x7ffff72d1540, tstate=\u003coptimized out\u003e) at Python/ceval.c:2981\r\n#9  _PyEval_EvalFrameDefault (tstate=\u003coptimized out\u003e, frame=0x7ffff7fb9548, throwflag=\u003coptimized out\u003e)\r\n    at Python/generated_cases.c.h:3510\r\n#10 0x00005555557d3645 in _PyEval_EvalFrame (throwflag=\u003coptimized out\u003e, frame=\u003coptimized out\u003e, tstate=\u003coptimized out\u003e)\r\n    at ./Include/internal/pycore_ceval.h:88\r\n#11 _PyEval_Vector (args=0x0, argcount=0, kwnames=0x0, locals=0x7ffff7fb9308, func=0x7ffff7c65f80,\r\n    tstate=0x555555b98968 \u003c_PyRuntime+450344\u003e) at Python/ceval.c:2059\r\n#12 PyEval_EvalCode (co=co@entry=0x555555d4d720, globals=globals@entry=0x7ffff7a80040,\r\n    locals=locals@entry=0x7ffff7a80040) at Python/ceval.c:585\r\n#13 0x00005555557cc280 in builtin_exec_impl (module=\u003coptimized out\u003e, closure=\u003coptimized out\u003e, locals=0x7ffff7a80040,\r\n    globals=0x7ffff7a80040, source=0x555555d4d720) at Python/bltinmodule.c:1075\r\n#14 builtin_exec (module=\u003coptimized out\u003e, args=\u003coptimized out\u003e, nargs=\u003coptimized out\u003e, kwnames=\u003coptimized out\u003e)\r\n    at Python/clinic/bltinmodule.c.h:543\r\n#15 0x000055555571bd6b in cfunction_vectorcall_FASTCALL_KEYWORDS (func=0x7ffff7c242c0, args=0x7ffff7fb92d0,\r\n    nargsf=\u003coptimized out\u003e, kwnames=\u003coptimized out\u003e) at Objects/methodobject.c:438\r\n#16 0x00005555556bbd5c in _PyObject_VectorcallTstate (kwnames=0x7ffff7a80040, nargsf=\u003coptimized out\u003e,\r\n    args=0xfffc555598798768, callable=0x7ffff7c242c0, tstate=0x555555b98968 \u003c_PyRuntime+450344\u003e)\r\n    at ./Include/internal/pycore_call.h:92\r\n#17 PyObject_Vectorcall (callable=callable@entry=0x7ffff7c242c0, args=args@entry=0x7ffff7fb92d0,\r\n    nargsf=\u003coptimized out\u003e, kwnames=kwnames@entry=0x0) at Objects/call.c:301\r\n#18 0x0000555555651c3b in _PyEval_EvalFrameDefault (tstate=\u003coptimized out\u003e, frame=0x7ffff7fb9228,\r\n    throwflag=\u003coptimized out\u003e) at Python/generated_cases.c.h:2972\r\n#19 0x00005555557d3645 in _PyEval_EvalFrame (throwflag=\u003coptimized out\u003e, frame=\u003coptimized out\u003e, tstate=\u003coptimized out\u003e)\r\n    at ./Include/internal/pycore_ceval.h:88\r\n#20 _PyEval_Vector (args=0x0, argcount=0, kwnames=0x0, locals=0x7ffff7c580ee, func=0x7ffff7c65e40,\r\n    tstate=0x555555b98968 \u003c_PyRuntime+450344\u003e) at Python/ceval.c:2059\r\n#21 PyEval_EvalCode (co=co@entry=0x7ffff7c58030, globals=globals@entry=0x7ffff7c869c0,\r\n    locals=locals@entry=0x7ffff7c869c0) at Python/ceval.c:585\r\n#22 0x000055555582911c in run_eval_code_obj (locals=0x7ffff7c869c0, globals=0x7ffff7c869c0, co=0x7ffff7c58030,\r\n    tstate=0x555555b98968 \u003c_PyRuntime+450344\u003e) at Python/pythonrun.c:1702\r\n#23 run_mod (mod=\u003coptimized out\u003e, filename=filename@entry=0x7ffff7c8b870, globals=globals@entry=0x7ffff7c869c0,\r\n    locals=locals@entry=0x7ffff7c869c0, flags=flags@entry=0x7fffffffd798, arena=arena@entry=0x7ffff7bb3990)\r\n    at Python/pythonrun.c:1723\r\n#24 0x000055555582c192 in pyrun_file (flags=0x7fffffffd798, closeit=1, locals=0x7ffff7c869c0, globals=0x7ffff7c869c0,\r\n    start=257, filename=0x7ffff7c8b870, fp=\u003coptimized out\u003e) at Python/pythonrun.c:1617\r\n#25 _PyRun_SimpleFileObject (fp=fp@entry=0x555555c2f3a0, filename=filename@entry=0x7ffff7c8b870,\r\n    closeit=closeit@entry=1, flags=flags@entry=0x7fffffffd798) at Python/pythonrun.c:439\r\n#26 0x000055555582c810 in _PyRun_AnyFileObject (fp=0x555555c2f3a0, filename=filename@entry=0x7ffff7c8b870,\r\n    closeit=closeit@entry=1, flags=flags@entry=0x7fffffffd798) at Python/pythonrun.c:78\r\n```\r\n\u003c/details\u003e","author":{"url":"https://github.com/mdboom","@type":"Person","name":"mdboom"},"datePublished":"2022-11-22T17:22:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/99701/cpython/issues/99701"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9348b40a-bcaa-1c48-81ec-bdabff186b01
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id87EA:9F506:9A826F:CCDA18:6969912A
html-safe-nonced0bb95522cdb556c5b5a080e61c86bc24e4bc1d4e1e38d9aa4ded474aadd652c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0VBOjlGNTA2OjlBODI2RjpDQ0RBMTg6Njk2OTkxMkEiLCJ2aXNpdG9yX2lkIjoiNDAyMDk2NjA5NTQ2NTcyMDc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac6540befef8196dfac5f25a3e30b58fafd98e85c7d42bc6788bfa82efa36f32e2
hovercard-subject-tagissue:1460273452
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/99701/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d7cabcd9ab9447d6716b9f18933e17dbdc5d705215fb8a121c89b386d13d81cd/python/cpython/issues/99701
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d7cabcd9ab9447d6716b9f18933e17dbdc5d705215fb8a121c89b386d13d81cd/python/cpython/issues/99701
og:image:altBug report When building with --enable-pystats, the ensurepip step fails with a segmentation fault. The v3.11.0 tag works on this machine, main is currently broken. I have not yet bisected it. Cc @...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemdboom
hostnamegithub.com
expected-hostnamegithub.com
None3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751
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
releaseaf80af7cc9e3de9c336f18b208a600950a3c187c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/99701#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F99701
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%2F99701
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/99701
Reloadhttps://github.com/python/cpython/issues/99701
Reloadhttps://github.com/python/cpython/issues/99701
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/99701
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/99701
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/99701
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/99701
Type punning (and strict aliasing) issue in Py_CLEAR() and Py_SETREF() macros: Python --enable-pystats is miscompiledhttps://github.com/python/cpython/issues/99701#top
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/mdboom
https://github.com/mdboom
mdboomhttps://github.com/mdboom
on Nov 22, 2022https://github.com/python/cpython/issues/99701#issue-1460273452
@markshannonhttps://github.com/markshannon
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.