Skip to content

Fix zend_mm_chunk_alloc_mmap_failure.phpt after OOM became abort() - #25260

Open
Marti2203 wants to merge 1 commit into
php:masterfrom
Marti2203:fix-mmap-failure-test-termsig
Open

Marti2203 wants to merge 1 commit into
php:masterfrom
Marti2203:fix-mmap-failure-test-termsig

Conversation

@Marti2203

Copy link
Copy Markdown
Contributor

Fixes the zend_mm_chunk_alloc_mmap_failure.phpt failure reported in GH-25237.

The test came with GH-24542, which targeted PHP-8.4. There, zend_out_of_memory() exits with status 1. On master it calls abort() since GH-22637, so run-tests.php appends Termsig=6 after Out of memory, and the expectation did not allow it. The test only runs on non-PIE builds, so CI skips it and the failure did not show up there.

The expectation now accepts Out of memory followed by Termsig=6, or allocation succeeded. I checked the new pattern against both outputs; the old one rejects the abort output. PHP-8.4 and PHP-8.5 still exit with status 1, so they need no change.

Sorry for the breakage, I should have checked the test on master before it was merged up.

On master, zend_out_of_memory() calls abort() since phpGH-22637, so
run-tests.php appends "Termsig=6" after "Out of memory". The test was
written on PHP-8.4, where the process still exits with status 1.

The test only runs on non-PIE builds, so CI skips it.
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.

1 participant