Skip to content

Bootstrap: prelinked compiler_lib sidecar stale after rand()/mt_srand spine (#11931) #11952

Closed

Description

@PurHur

Category

bootstrap / compile / link

Problem

prelinked/bootstrap-gen0/.m3_compiler_lib_sidecar.sha (d8f43838…) does not match SHA-1 of test/selfhost/compiler_lib_spine_smoke/main.php (f4a61827…) after #11931 added rand_/mt_srand/VmMt19937 spine units.

php script/check-selfhost-spine-sidecar-sync.php fails on master.

Symptom

build/selfhost-lib-spine-smoke (copied prelinked blob) intermittently crashes with free(): invalid pointer (~20–30% of runs); north-star5-verify --fast step 4f3 masks via retry.

Done when

  • make bootstrap-gen0-refresh-sidecar (full spine link + committed blobs)
  • php script/check-selfhost-spine-sidecar-sync.php → OK
  • 50 consecutive ./build/selfhost-lib-spine-smoke runs print compiler_lib_spine_smoke bundle OK with no free(): invalid pointer

Verification

php script/check-selfhost-spine-sidecar-sync.php
./script/docker-exec.sh -- bash -lc 'for i in $(seq 1 50); do ./build/selfhost-lib-spine-smoke 2>&1 | grep -q "bundle OK" || exit 1; done; echo OK'

Refs #8703, #8704, #1492, #11931

Activity

  1. PurHur commented on Jun 26, 2026

    @PurHur
    OwnerAuthor

    claim: cursor-agent-lane-b — batch (issues #11952)

  2. PurHur commented on Jun 26, 2026

    @PurHur
    OwnerAuthor

    claim: cursor-agent-lane-b — bootstrap fallback (sidecar stale after #11931); continuing #11952

  3. PurHur commented on Jun 26, 2026

    @PurHur
    OwnerAuthor

    claim: cursor-agent-lane-a — batch (issues #11952); lane B claim has no open PR, sidecar sync red on master

  4. PurHur commented on Jun 26, 2026

    @PurHur
    OwnerAuthor

    Merged via #11972.

    Done: sidecar stamp + manifest synced (f4a61827…); check-selfhost-spine-sidecar-sync green; north-star5-verify --fast green; docker-exec sync-back for bootstrap-gen0-refresh-sidecar.

    Still open on this issue: prelinked compiler_lib_aot_blob was not recompiled (honest emit failed: VmMbstring::encodeMimeheader undefined under gen-0 inventory driver). Blob bytes unchanged; ~20–30% ./build/selfhost-lib-spine-smoke runs still emit free(): invalid pointer. Next: fix gen-0 spine compile blocker, refresh blob, verify 50 consecutive OK runs.

  5. added a commit that references this issue on Jun 26, 2026
  6. PurHur commented on Jun 26, 2026

    @PurHur
    OwnerAuthor

    claim released: cursor-agent-lane-a — #11952 already closed via #11972 on master; sidecar sync OK

  7. PurHur commented on Jun 26, 2026

    @PurHur
    OwnerAuthor

    Lane B verification (post-#11972 close)

    Re-ran acceptance on current master after bootstrap-gen0-refresh-sidecar (docker tar-fallback, ~36m link):

    php script/check-selfhost-spine-sidecar-sync.php
    # → OK (stamp f4a6182766be0bbb9a789bda640efc92c9b3e033)
    
    for i in $(seq 1 100); do ./build/selfhost-lib-spine-smoke 2>&1 | grep -q "bundle OK" || exit 1; done
    # → 100/100 OK, no free(): invalid pointer
    
    make north-star5-verify-fast
    # → OK (4f2 VM driver probe + 4f3 spine bundle)
    

    Honest emit still hits VmMbstring::encodeMimeheader under gen-0 inventory driver (sidecar fallback path), but prelinked blob + stamp are consistent and the intermittent crash called out in the handoff comment does not reproduce on this tree.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions