Closed
Description
Crash report
What happened?
The JIT on Windows on Arm (tested on Windows 11 Pro) is broken. It builds successfully but then the first test fails straightaway crashing the binary.
Also if I run the REPL and start typing commands, it stays alive for a few seconds and then dies.
When Python is built without the JIT, the test suite passes.
PS C:\Users\ent-user\cpython> .\PCbuild\build.bat -p ARM64 --experimental-jit
....
....
Generating code
Finished generating code
python.vcxproj -> C:\Users\ent-user\cpython\PCbuild\arm64\python.exe
Wrote C:\Users\ent-user\cpython\PCbuild\arm64\LICENSE.txt
Generating code
Finished generating code
pythonw.vcxproj -> C:\Users\ent-user\cpython\PCbuild\arm64\pythonw.exeBuild succeeded.C:\Users\ent-user\cpython\Python\optimizer_symbols.c(487,20): warning C4244: 'return': conversion from 'Py_ssize_t' to
'int', possible loss of data [C:\Users\ent-user\cpython\PCbuild\pythoncore.vcxproj]
1 Warning(s)
0 Error(s)Time Elapsed 00:02:07.70
PS C:\Users\ent-user\cpython> .\python.bat -m test
Running Release|ARM64 interpreter...
== CPython 3.14.0a4+ (heads/main:d7672e5d5a, Feb 10 2025, 15:21:49) [MSC v.1940 64 bit (ARM64)]
== Windows-11-10.0.26100-SP0 little-endian
== Python build: release with_assert
== cwd: C:\Users\ent-user\cpython\build\test_python_worker_5516æ
== CPU count: 8
== encodings: locale=cp1252 FS=utf-8
== resources: all test resources are disabled, use -u option to unskip tests
Using random seed: 1919085789
0:00:00 Run 484 tests sequentially in a single process
0:00:00 [ 1/484] test.test_asyncio.test_base_events
Windows fatal exception: access violation
Thread 0x0000093c (most recent call first):
File "C:\Users\ent-user\cpython\Lib\linecache.py", line 75 in checkcache
File "C:\Users\ent-user\cpython\Lib\traceback.py", line 487 in _extract_from_extended_frame_gen
File "C:\Users\ent-user\cpython\Lib\traceback.py", line 445 in extract
File "C:\Users\ent-user\cpython\Lib\asyncio\format_helpers.py", line 80 in extract_stack
File "C:\Users\ent-user\cpython\Lib\asyncio\events.py", line 55 in __init__
File "C:\Users\ent-user\cpython\Lib\asyncio\events.py", line 123 in __init__
File "__init__", line ??? in __init__
File "C:\Users\ent-user\cpython\Lib\asyncio\base_events.py", line 875 in call_soon_threadsafe
File "C:\Users\ent-user\cpython\Lib\asyncio\base_events.py", line 2062 in set_debug
File "C:\Users\ent-user\cpython\Lib\test\test_asyncio\test_base_events.py", line 310 in check_thread
File "C:\Users\ent-user\cpython\Lib\test\test_asyncio\test_base_events.py", line 340 in check_in_thread
File "C:\Users\ent-user\cpython\Lib\threading.py", line 996 in run
File "C:\Users\ent-user\cpython\Lib\threading.py", line 1054 in _bootstrap_inner
File "C:\Users\ent-user\cpython\Lib\threading.py", line 1016 in _bootstrap
Thread 0x00003824 (most recent call first):
File "C:\Users\ent-user\cpython\Lib\test\libregrtest\win_utils.py", line 47 in _update_load
Current thread 0x00001db8 (most recent call first):
File "C:\Users\ent-user\cpython\Lib\asyncio\base_events.py", line 1965 in _run_once
File "C:\Users\ent-user\cpython\Lib\asyncio\base_events.py", line 677 in run_forever
File "C:\Users\ent-user\cpython\Lib\asyncio\base_events.py", line 706 in run_until_complete
File "C:\Users\ent-user\cpython\Lib\test\test_asyncio\test_base_events.py", line 353 in test_thread
File "C:\Users\ent-user\cpython\Lib\test\test_asyncio\test_base_events.py", line 360 in test_check_thread
File "C:\Users\ent-user\cpython\Lib\unittest\case.py", line 606 in _callTestMethod
File "C:\Users\ent-user\cpython\Lib\unittest\case.py", line 660 in run
File "C:\Users\ent-user\cpython\Lib\unittest\case.py", line 716 in __call__
File "C:\Users\ent-user\cpython\Lib\unittest\suite.py", line 122 in run
File "C:\Users\ent-user\cpython\Lib\unittest\suite.py", line 84 in __call__
File "C:\Users\ent-user\cpython\Lib\unittest\suite.py", line 122 in run
File "C:\Users\ent-user\cpython\Lib\unittest\suite.py", line 84 in __call__
File "C:\Users\ent-user\cpython\Lib\test\libregrtest\testresult.py", line 148 in run
File "C:\Users\ent-user\cpython\Lib\test\libregrtest\single.py", line 84 in _run_suite
File "C:\Users\ent-user\cpython\Lib\test\libregrtest\single.py", line 42 in run_unittest
File "C:\Users\ent-user\cpython\Lib\test\libregrtest\single.py", line 162 in test_func
File "C:\Users\ent-user\cpython\Lib\test\libregrtest\single.py", line 118 in regrtest_runner
File "C:\Users\ent-user\cpython\Lib\test\libregrtest\single.py", line 165 in _load_run_test
File "C:\Users\ent-user\cpython\Lib\test\libregrtest\single.py", line 210 in _runtest_env_changed_exc
File "C:\Users\ent-user\cpython\Lib\test\libregrtest\single.py", line 319 in _runtest
File "C:\Users\ent-user\cpython\Lib\test\libregrtest\single.py", line 348 in run_single_test
File "C:\Users\ent-user\cpython\Lib\test\libregrtest\main.py", line 378 in run_test
File "C:\Users\ent-user\cpython\Lib\test\libregrtest\main.py", line 412 in run_tests_sequentially
File "C:\Users\ent-user\cpython\Lib\test\libregrtest\main.py", line 559 in _run_tests
File "C:\Users\ent-user\cpython\Lib\test\libregrtest\main.py", line 594 in run_tests
File "C:\Users\ent-user\cpython\Lib\test\libregrtest\main.py", line 766 in main
File "C:\Users\ent-user\cpython\Lib\test\libregrtest\main.py", line 774 in main
File "C:\Users\ent-user\cpython\Lib\test\__main__.py", line 2 in <module>
File "<frozen runpy>", line 88 in _run_code
File "<frozen runpy>", line 198 in _run_module_as_main
PS C:\Users\ent-user\cpython>
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Output from running 'python -VV' on the command line:
.\python.bat -VV
Running Release|ARM64 interpreter...
Python 3.14.0a4+ (heads/main:d7672e5d5a, Feb 10 2025, 15:21:49) [MSC v.1940 64 bit (ARM64)]