You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
3 stack limit tests failing on Alpinelinux PHP 8.3 #12643
I could not reproduce this locally on Alpine 3.18 x86_64. I've configured php with CC=clang ./configure --disable-all --enable-zend-test --with-external-pcre.
The stack size in the error message Maximum call stack size of 81920 bytes reached during compilation looks suspicious. Either the stack size detection has gone wrong, or the stack size of the process is really small.
Thank you. I was able to reproduce the issue in a ppc64le VM on tests stack_limit_011.phpt and stack_limit_012.phpt.
These tests set a stack limit that is too low, so it is reached too soon on this arch.
The 81920 bytes in the error message is actually correct: this is 128KiB minus zend.reserved_stack_size (ZEND_ALLOCA_MAX_SIZE+16*1024 by default). The error message is confusing.
Activity
andypost commentedon Nov 10, 2023
Probably @arnaud-lb is the author
andypost commentedon Nov 10, 2023
One more test failed in CI (maybe because of some concurrency)
arnaud-lb commentedon Nov 10, 2023
I could not reproduce this locally on Alpine 3.18 x86_64. I've configured php with
CC=clang ./configure --disable-all --enable-zend-test --with-external-pcre.The stack size in the error message
Maximum call stack size of 81920 bytes reached during compilationlooks suspicious. Either the stack size detection has gone wrong, or the stack size of the process is really small.Could you share the output of these commands ?
andypost commentedon Nov 10, 2023
It is reproducible only on ppc64le arch, maybe because of byte-order
andypost commentedon Nov 10, 2023
The whole run with diff in https://gitlab.alpinelinux.org/alpine/aports/-/jobs/1176577
andypost commentedon Nov 10, 2023
Default musl value is 128kb (80k prior to 1.1.21) according to https://wiki.musl-libc.org/functional-differences-from-glibc.html#Thread-stack-size
arnaud-lb commentedon Nov 11, 2023
Thank you. I was able to reproduce the issue in a ppc64le VM on tests stack_limit_011.phpt and stack_limit_012.phpt.
These tests set a stack limit that is too low, so it is reached too soon on this arch.
The
81920 bytesin the error message is actually correct: this is128KiBminuszend.reserved_stack_size(ZEND_ALLOCA_MAX_SIZE+16*1024by default). The error message is confusing.Could you confirm that this branch resolves the issue? PHP-8.3...arnaud-lb:php-src:gh12643
Fix phpGH-12643: Stack limit tests failing on ppc64le
andypost commentedon Nov 11, 2023
Thank you a lot!
Tests passed https://gitlab.alpinelinux.org/alpine/aports/-/jobs/1178440
PS: good to know that bug was in tests)
[-]3 stack limit tests failing on Alpinelinux[/-][+]3 stack limit tests failing on Alpinelinux PHP 8.3[/+]bukka commentedon Nov 23, 2023
@arnaud-lb might be worth to create a PR and merge it...
Fix GH-12643: Stack limit tests failing on ppc64le
Merge branch 'PHP-8.3'
andypost commentedon Dec 10, 2023
Thank you