Repository navigation
tests: GLM Metal fixtures start with no DFlash2 drafter - #4299
Merged
Merged
Conversation
This was referenced Nov 21, 2026
#3920 added Engine.dflash (default null). The residency-owner and draft-source fixtures build the engine as undefined and set fields one by one, so dflash held the undefined pattern: Backend.facts() and Engine.ctx() read it as a drafter and crashed (the macOS nightly's native and deferred host checks on main). Set it to null in all three fixtures.
ashhart
force-pushed
the
lead/glm-fixtures-dflash-null
branch
from
November 21, 2026 11:42
3b24f99 to
28886f3
Compare
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.
Main's macOS nightly host checks crash in three GLM Metal test fixtures since #3920 added the DFlash2 drafter field
Engine.dflash.The fixtures build
glm.engine.Engineasundefinedand set the fields they need one by one.dflashwas never set, so it held the undefined byte pattern, andBackend.facts()andEngine.ctx()treated it as a loaded drafter:residency owner GLM: actual arena slots tower and snapshots match live unique allocations: segmentation fault inEngine.ctxthroughkept.saveresidency owner GLM: zero and a failed bound never publish a set or keepalive scratch: the samedraft sources: Metal GLM and GLM DSA follow actual MTP weights: trap inBackend.factsThis sets
e.dflash = nullin the three fixtures. Tests only; no engine code changes.Checked on macOS:
zig build test-qwen27-facts-host test-metal-residency-owners-hostgoes from 91/93 (2 crashed) on main to 93/93.