Repository navigation
third_party: bump llama.cpp to db7b34770 — a failed mtmd chunk returns instead of continuing into a null slot.task (Fixes #1489) - #1512
Conversation
…s instead of continuing into a null slot.task (Fixes #1489) The pin was at 6ea38d045 (fork #243), which predates the fix, so the crash this issue reports still reached every engine user: a failed CLIP image encode printed its error, sent the HTTP 500, and then SIGSEGV'd, because the error branch called `slot.release()` (which nulls `slot.task` through `reset()`) and then `continue`d into a loop whose head dereferences `slot.task->n_tokens()`. Two fork commits since the old pin: db7b34770 server: return instead of continuing after a failed mtmd chunk, because release() nulls slot.task (engine #1489) (#246) c94b3cc97 hrx: chunk a batched prefill matmul above the tile's 2048-token range (#244) Verified before this bump, on the repro in #1489 (Qwen3-VL-2B + mmproj, 64x64 PNG, -ngl 99 --device HRX0): with the fix the same failure path delivers HTTP 500 and the server stays alive; without it the process dies with exit 139 in `pre_decode()::{lambda(server_slot&)#5}`.
|
#1512 ready for review at Three things worth a reviewer's attention:
No regression test in this PR on purpose: the repro needs a GPU and ~2 GB of weights, so it is not a ctest row as written; the script with the acceptance assertions is at |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY at e2c9b29b6d531726fe7108754796327d7f730248
third_party/llama.cpp 6ea38d0457 -> db7b34770fda2e956b7adc0cc3df8b57d973576d
registry/architectures.json same, so --check-pins stays honest
db7b34770 "server: return instead of continuing after a failed mtmd chunk, because …"
That is #246 — the release() → null slot.task → SIGSEGV fix I verdicted an hour ago, now merged into the fork branch and pinned. Both files move together, which is the property that keeps the registry's provenance meaningful.
A crash fix is the right reason to move a pin promptly, and this one is a two-line change to the server, so the bump carries a small delta rather than a branch resync.
Not run: a build at the new pin (it is a pin file; the commit it names is the reviewed one).
Fixes #1489. The engine pin was
6ea38d045(fork #243), which predates the fix, so the crash that issue reports still reached every user of theengine: a failed CLIP image encode printed its error, sent the HTTP 500, and then SIGSEGV'd.
What the bump carries
Verified before bumping, not assumed
Same repro as the issue (Qwen3-VL-2B Q4_K_M +
mmproj-Qwen3VL-2B-Instruct-F16, one 64×64 PNG,-ngl 99 --device HRX0, onegpu-holdticket per arm), on a build of thetree that carries the fix:
ROPE matcher rejected→sched_graph_compute failed -1→failed to encode mtmd batch … res = 1→send_errorHTTP 500#0 pre_decode()::{lambda(server_slot&)#5}+6858HTTP 500with the same bodyThe fault itself, for the record:
release()reachesreset(), which doestask_prev = std::move(task); task.reset();, soslot.taskbecomes null; the errorbranch then
continued into a loop whose head readsslot.task->n_tokens(). The disassembly at the fault offset shows exactly that —call server_slot::release(),then
mov 0xf0(%rbx),%r14, thenmov 0x9e0(%r14),%rcxfaulting withr14 == null.Registry
scripts/registry-regen.shafter the bump: one line changes (the pin), counts stayhrx 298 / npu 9 / mapped 298, and none of the 34 reviewed significantclasses becomes mapped without a reason.
tools/check_pins.py origin/main→ok third_party/llama.cpp: 6ea38d045 -> db7b34770 is ahead.tools/copyright.py --checkclean. Two files, two lines.
Not in this PR
No regression test: the repro needs a GPU and ~2 GB of weights, so it is not a ctest row as written. I have the script with the acceptance assertions in it
(HTTP 5xx and process alive) at
~/work/zarch/proof/i1489-repro.sh, and offered in #1489 to land thedevice_route.sh-style version if the server lane wantsone — deliberately not bundled here, because a pin bump should be a pin bump.
Refs #1489, #1467 (the capability gap that triggers it, untouched here)