Closed
Labels
3.15bugs and security fixesbugs and security fixes3.16new features, bugs and security fixesnew features, bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-JITtype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Description
Crash report
What happened?
./configure --enable-experimental-jit --with-assertions
make -j$(nproc)
On 3.15.0b4 and main (9adef68), this results in a _bootstrap_python that crashes on assertions:
$ make
./_bootstrap_python ./Programs/_freeze_module.py abc ./Lib/abc.py Python/frozen_modules/abc.h
_bootstrap_python: Python/pystate.c:925: interpreter_clear: Assertion `cold->vm_data.valid' failed.
make: *** [Makefile:1907: Python/frozen_modules/abc.h] Aborted (core dumped)
make: *** Deleting file 'Python/frozen_modules/abc.h'
For some files, I'm also/instead seeing:
_bootstrap_python: Python/pystate.c:933: interpreter_clear: Assertion `cold_dynamic->vm_data.valid' failed.
Bisect points to 4fa80ce which seems a huge change:
commit 4fa80ce74c6d9f5159bdc5ec3596a194f0391e21
Author: Ken Jin <kenjin@python.org>
AuthorDate: 2025-11-13 19:08:32 +0100
Commit: GitHub <noreply@github.com>
CommitDate: 2025-11-13 19:08:32 +0100
gh-139109: A new tracing JIT compiler frontend for CPython (GH-140310)
CPython versions tested on:
3.15, CPython main branch
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
No response
Linked PRs
Metadata
Metadata
Assignees
Labels
3.15bugs and security fixesbugs and security fixes3.16new features, bugs and security fixesnew features, bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-JITtype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Activity
Fidget-Spinner commentedon Jul 18, 2026
@markshannon fancy fixing this bug?
BHUVANSH855 commentedon Jul 19, 2026
Hi! I'd like to investigate this issue. I'll start by reproducing the crash using the reported JIT + assertions configuration, trace where
vm_data.validbecomes invalid during interpreter shutdown, and identify the root cause. If I find a fix, I'll open a PR and link it here.[-]JIT build crashes on assertions (since 3.15): `Python/pystate.c:925: interpreter_clear: Assertion `cold->vm_data.valid' failed.`[/-][+]JIT build crashes on assertions (since 3.15): `Python/pystate.c:925: interpreter_clear: Assertion 'cold->vm_data.valid' failed.`[/+]pythongh-154014: Remove stray formatting changes
pythongh-154014: Add NEWS entry
pythongh-154014: Add regression test
pythongh-154014: Initialize cold executor vm_data.code
pythongh-154014: Free unregistered cold executors directly
pythongh-154014: Use internal executor free helper
gh-154014: Initialize cold executor vm_data fields (GH-154142)
[3.15] gh-154014: Initialize cold executor vm_data fields (GH-154142) (…
mgorny commentedon Jul 22, 2026
Thank you! I've started testing it yesterday, and didn't see any issues so far.