Repository navigation
docs: JIT cache crash on runs that compile two or more modules (native_ts_graphics finding 7) - #548
Merged
Merged
Conversation
…e_ts_graphics finding 7) pre-alpha93's JIT cache (on by default) crashes with 0xC0000005 in a run that has to compile two or more modules, after writing the first one's object; each crashing run caches one more module, so a program of N modules runs on the N-th attempt. --jit-cache=false works. Repro: docs/bugs/ntg_jit_cache_import.ts (importing ntg_jit_cache_import_lib.ts), run without --jit-cache=false from an empty cache. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds issue 7 to
docs/bugs/native-ts-graphics-findings.md, with a two-file repro:ntg_jit_cache_import.ts, which importsntg_jit_cache_import_lib.ts.Build:
tslang version v0.0-pre-alpha93(2026-10-11), the first build with the JIT cache on by default.Repro:
Run from an empty cache: delete
docs/bugs/__jitfirst.Observed: an access violation (
0xC0000005) insidetslang.exebefore the program runs.--jit-cache=falseevery run works.Expected: 42 on the first run.
Impact: every native_ts_graphics example imports
core/input_pass.ts, which importscore/donut.ts. So every example crashed twice under the JIT before it ran. Itsrun_jit.batnow passes--jit-cache=false(ASDAlexander77/native_ts_graphics#34).🤖 Generated with Claude Code