Skip to content

0.25.0 follow-ups: aarch64 image SIGBUS with x86 MC (#100 fix not on arm64 hosts), darwin warm-prime gate noise, uncarried items #104

Backlog

Description

@Sunrisepeak

Follow-ups left after 0.25.0 (the fix for #100, engine mcppls-clangd 0.0.24 / clangd 23.1.0-mcppls.13). None blocks the release; this records them so they are not lost. Design and findings: .agents/docs/2026-11-26-issue-100-engine-batch-design.md (§12 findings, §13 release scope).

1. aarch64 hosts do not get the #100 fix (the one with user impact)

Linking X86Desc + X86AsmParser into clangd made the aarch64-openkal image end by SIGBUS in the server's CI (linux-arm64 and darwin-arm64: report, VS Code e2e, proot). The x86_64 images and the engine's own acceptance were fine. Stack: clangdMain -> startModuleMemoStore -> pthread_create -> __clone; okm_done at the start of .bss held the text 6_64/cl. The unmodified 0.0.23 image passes the same job. The root cause is not found (okrun's .okseg/.oksnap sealed segments or boot snapshot, openkal-musl, or the ThinLTO link are the suspects).

What shipped: the libraries are linked only where CMAKE_SYSTEM_PROCESSOR is not arm64, so arm64 hosts still report "MS-style inline assembly is not available" for modules that include <Windows.h> for 32-bit Windows targets. Documented in the CHANGELOGs and troubleshooting.

To do: find the cause (reproduce with qemu-aarch64 + the real okrun, symbolize via the .oke .symtab; a push-triggered probe workflow on the arm runner iterates in ~1.5 min), then drop the gate in patches/0049. Also worth a check for why the engine's acceptance did not catch an image that crashes at startup in the server's flow.

2. Engine main CI: warm-prime darwin-arm64 fails on measurement validity

On the engine's main CI after the 0.0.24 merge (run 45777892099) every job was green except warm-prime darwin-arm64: invalid measurement: cold CPU ratios of pairs [...] lie further than 0.03 from the median (3 attempts; medians 0.898 / 0.905 / 0.944, so no slowdown). It is macOS runner noise against the gate's "at most 2 stray pairs". Accepted as a known limit for this release. The aarch64 image is unchanged in size from 0.0.23, so there was no pairing run either, a departure from the engine's 0.0.21 pairing rule, flagged in the engine CHANGELOG. To do: a separate engine PR if the darwin gate should change (more pairs, or a rule that tolerates the noise); do not loosen it inside a feature change.

3. Not carried in this batch

4. Test coverage

compdb-clangxx-msvc-i686-windows-h (a real Windows SDK <Windows.h> for i686-pc-windows-msvc) is allowed to be unsupported on hosts without the SDK, so only the Windows runner exercises it. The portable compdb-i686-asm fixture covers the __asm module on every host (passed 6/6 against the shipped 0.25.0 server and payload on linux-x64).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions