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
Domain: github.com
{"@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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9348b40a-bcaa-1c48-81ec-bdabff186b01 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 87EA:9F506:9A826F:CCDA18:6969912A |
| html-safe-nonce | d0bb95522cdb556c5b5a080e61c86bc24e4bc1d4e1e38d9aa4ded474aadd652c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0VBOjlGNTA2OjlBODI2RjpDQ0RBMTg6Njk2OTkxMkEiLCJ2aXNpdG9yX2lkIjoiNDAyMDk2NjA5NTQ2NTcyMDc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6540befef8196dfac5f25a3e30b58fafd98e85c7d42bc6788bfa82efa36f32e2 |
| hovercard-subject-tag | issue:1460273452 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/99701/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d7cabcd9ab9447d6716b9f18933e17dbdc5d705215fb8a121c89b386d13d81cd/python/cpython/issues/99701 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d7cabcd9ab9447d6716b9f18933e17dbdc5d705215fb8a121c89b386d13d81cd/python/cpython/issues/99701 |
| og:image:alt | 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 @... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mdboom |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width