Skip to content

Release v1.1.0: fix examples 001-SimpleWeb AOT smoke (exit 139 segfault after c:main_after_init; re-#18832) #29001

Description

@PurHur

Category

Foundation · Pillar 2 ship / examples AOT smoke · (re-#18832, re-#13995)

Problem

Pillar 1 quick readiness is green on tip (user_release_ready: yes), but ./script/release-readiness.sh --full --jsonuser_release_ready: no because examples-aot-smoke fails on 001-SimpleWeb with exit 139 (segfault) after c:main_after_init.

000-HelloWorld passes; capability-matrix and examples-web-smoke are green on the same tip.

Observed (2026-08-08, Docker ./script/docker-exec.sh, master @ d0b2bc4585):

examples-aot-smoke: 000-HelloWorld: ok
examples-aot-smoke: 001-SimpleWeb: binary exited 139
phpc: fatal signal (segfault) after c:main_after_init
Repro Zend AOT (this tip)
examples/001-SimpleWeb via examples-aot-smoke.sh n/a (smoke harness) exit 139 segfault

TRY_FIRST (this workspace)

Gate Status Symptom
docker info green OK
php script/bootstrap-inventory.php --check green OK 7248/7248
./script/release-readiness.sh --json (quick) green user_release_ready: yes (369 fresh / 0 stale)
make bootstrap-selfhost-link green (partial honesty) OK /compiler/build/selfhost via Zend gen-0 fallback (#21855 stale native driver)
./script/release-readiness.sh --full --json red first fail: examples-aot-smoke
capability-matrix --check green 1173 builtins
examples-web-smoke green OK
gen-0 provenance stale (warn) cc281e13c + 23 lowering commits; unverified-restamp — not this ticket

Repro

./script/docker-exec.sh -- bash -lc './script/examples-aot-smoke.sh'
# or narrow:
./script/docker-exec.sh -- bash -lc './phpc build -o /tmp/simpleweb examples/001-SimpleWeb && /tmp/simpleweb'

PHP implementation target

  • AOT / CGI env init path for examples/001-SimpleWeb (QUERY_STRING / $_GET / request bootstrap) — fix the segfault, do not skip the smoke
  • Prefer PHP lowering / lib/Web/ / JIT helpers over new C runtime

Done when

  • ./script/examples-aot-smoke.sh green for 000–009 (including 001-SimpleWeb)
  • ./script/release-readiness.sh --full --jsonuser_release_ready: yes on tip (other full gates already green this run)
  • No restamp-only / smoke-skip “fix”

Parent roadmap: #78 · meta: #8739 (reopen on tag day)

Metadata

Metadata

Assignees

No one assigned

    Labels

    IMPORTANTCritical patharea:webWeb / CGI / superglobalsbugSomething isn't workingimplementation-readySpec complete: repro, php-src ref, done-when — safe for workers to claimphase-0:FoundationPhase 0 – foundation & DevExreleaseUser-facing release trackingrelease-blockerBlocks tagged user release

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions