Skip to content

Fix AOT compile SIGSEGV: standalone var_dump/print_r LLVM path (#16565) - #16573

Merged
PurHur merged 1 commit into
masterfrom
agent/runtime-php-incdec-null-sigsegv
Jul 5, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/runtime-php-incdec-null-sigsegv

Conversation

@PurHur

@PurHur PurHur commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #16565

Verification

./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && php bin/vm.php test/repro/maintainer_gap_incdec_null_aot_compile.php'
# 1|NULL

./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && php bin/compile.php test/repro/maintainer_gap_incdec_null_aot_compile.php -o /tmp/t.bin; echo compile:$?'
# compile:0  (was 139)

./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && ./phpc build test/repro/maintainer_gap_incdec_null_aot_compile.php -o /tmp/t.bin; echo phpc:$?'
# phpc:0  (was 139)

PHP_COMPILER_CI_SINGLE_CONTAINER=0 ./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && vendor/bin/phpunit --filter "VarDumpRuntimeShrinkTest|StringPrintRVarDumpRuntimeStandaloneTest|NullIncDecTest"'
# OK (9 tests, 26 assertions)

Note: FunctionStaticJitCompileTest / phpunit --filter FunctionStatic still SIGSEGV on master (pre-existing LLVM issue in function-static init path; separate from var_dump nested compile).

Made with Cursor

…6565)

Nested JIT compile of VarDumpJitHelper/PrintRJitHelper pulls VmVarDump/VmPrintR
and crashes LLVM 9 during user-script AOT builds. Route LOAD_TYPE_STANDALONE
through the restored StringVarDumpJit/StringPrintRJit monoliths; embed/self-host
keeps the php-in-PHP VarDumpJitHelper bridge.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit a5befaf into master Jul 5, 2026
@PurHur
PurHur deleted the agent/runtime-php-incdec-null-sigsegv branch July 5, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compiler SIGSEGV: ++/-- lowering crashes on null locals and under the FunctionStatic phpunit filter

1 participant