Title: Parser stack overflow on WASI with `--with-pydebug` · Issue #131770 · python/cpython · GitHub
Open Graph Title: Parser stack overflow on WASI with `--with-pydebug` · Issue #131770 · python/cpython
X Title: Parser stack overflow on WASI with `--with-pydebug` · Issue #131770 · python/cpython
Description: Bug report Bug description: $ python Tools/wasm/wasi.py configure-build-python -- --with-pydebug ... $ python Tools/wasm/wasi.py make-build-python ... $ python Tools/wasm/wasi.py configure-host -- --with-pydebug ... $ python Tools/wasm/w...
Open Graph Description: Bug report Bug description: $ python Tools/wasm/wasi.py configure-build-python -- --with-pydebug ... $ python Tools/wasm/wasi.py make-build-python ... $ python Tools/wasm/wasi.py configure-host -- ...
X Description: Bug report Bug description: $ python Tools/wasm/wasi.py configure-build-python -- --with-pydebug ... $ python Tools/wasm/wasi.py make-build-python ... $ python Tools/wasm/wasi.py configure-host -- ...
Opengraph URL: https://github.com/python/cpython/issues/131770
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Parser stack overflow on WASI with `--with-pydebug`","articleBody":"# Bug report\n\n### Bug description:\n\n```pytb\n$ python Tools/wasm/wasi.py configure-build-python -- --with-pydebug\n...\n$ python Tools/wasm/wasi.py make-build-python\n...\n$ python Tools/wasm/wasi.py configure-host -- --with-pydebug\n...\n$ python Tools/wasm/wasi.py make-host\n...\n$ wasmtime run --dir .::/ cross-build/wasm32-wasip1/python.wasm -m test.test_compile\nTraceback (most recent call last):\n File \"/Lib/runpy.py\", line 189, in _run_module_as_main\n mod_name, mod_spec, code = _get_module_details(mod_name, _Error)\n ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^\n File \"/Lib/runpy.py\", line 159, in _get_module_details\n code = loader.get_code(mod_name)\n File \"\u003cfrozen importlib._bootstrap_external>\", line 896, in get_code\n File \"\u003cfrozen importlib._bootstrap_external>\", line 826, in source_to_code\n File \"\u003cfrozen importlib._bootstrap>\", line 488, in _call_with_frames_removed\nMemoryError: Parser stack overflowed - Python source too complex to parse\n```\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\n_No response_\n\n**NOTE**\n\nThe failing tests have shifted; see https://github.com/python/cpython/issues/131770#issuecomment-2856268358\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-131844\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/FFY00","@type":"Person","name":"FFY00"},"datePublished":"2025-03-26T15:41:21Z","url":"https://github.com/python/cpython/issues/131770"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:b38b2e92-de08-a18c-a3c6-5afaa6fad5c2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBBA:213839:3E17900:4F41747:6B0207FA |
| html-safe-nonce | e303dc18085c972f6fb69a49ede333580f3fa78299d3ca04c591db5e624a98e7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkJBOjIxMzgzOTozRTE3OTAwOjRGNDE3NDc6NkIwMjA3RkEiLCJ2aXNpdG9yX2lkIjoiNjQzODg0MjAzOTM5NTI4OTA4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3b14abe25a78b2a3a100afe5feae838bc1cf47bdf93bc9affae913c85be2ae59 |
| hovercard-subject-tag | issue:2950064201 |
| 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/131770/issue_layout |
| twitter:image | https://opengraph.githubassets.com/26632b8111f3ec4313c8b408d10fd7a7956743e63f8f7ba9806d79266feb4ce6/python/cpython/issues/131770 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/26632b8111f3ec4313c8b408d10fd7a7956743e63f8f7ba9806d79266feb4ce6/python/cpython/issues/131770 |
| og:image:alt | Bug report Bug description: $ python Tools/wasm/wasi.py configure-build-python -- --with-pydebug ... $ python Tools/wasm/wasi.py make-build-python ... $ python Tools/wasm/wasi.py configure-host -- ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | FFY00 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width