Skip to content

Parser stack overflow on WASI with --with-pydebug#131770

@FFY00

Description

@FFY00

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/wasi.py make-host ... $ wasmtime run --dir .::/ cross-build/wasm32-wasip1/python.wasm -m test.test_compile Traceback (most recent call last): File "/Lib/runpy.py", line 189, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ File "/Lib/runpy.py", line 159, in _get_module_details code = loader.get_code(mod_name) File "<frozen importlib._bootstrap_external>", line 896, in get_code File "<frozen importlib._bootstrap_external>", line 826, in source_to_code File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removedMemoryError: Parser stack overflowed - Python source too complex to parse

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

NOTE

The failing tests have shifted; see #131770 (comment)

Linked PRs

Metadata

Metadata

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions