Repository navigation
Set of opcache tests fail zts+aarch64 8.4.1 #16902
Copy link
Copy link
Closed
Description
Description
Building ZTS packages for Alpinelinux for 8.4.1 I got a set of failed tests and all of them related to opcache
ref https://gitlab.alpinelinux.org/alpine/aports/-/jobs/1615413
# JIT and OpCache related tests to disable
ext/opcache/tests/bug81272.phpt
ext/opcache/tests/gh16186_001.phpt
ext/opcache/tests/gh16186_002.phpt
ext/opcache/tests/jit/assign_obj_002.phpt
ext/opcache/tests/jit/bool_not_001.phpt
ext/opcache/tests/jit/bug77857.phpt
ext/opcache/tests/jit/bug79888.phpt
ext/opcache/tests/jit/bug80634.phpt
ext/opcache/tests/jit/bug80745.phpt
ext/opcache/tests/jit/bug80786.phpt
ext/opcache/tests/jit/bug80802.phpt
ext/opcache/tests/jit/bug80839.phpt
ext/opcache/tests/jit/bug80861.phpt
ext/opcache/tests/jit/bug80959.phpt
ext/opcache/tests/jit/bug81051.phpt
ext/opcache/tests/jit/bug81225.phpt
ext/opcache/tests/jit/bug81225_2.phpt
ext/opcache/tests/jit/bug81226.phpt
ext/opcache/tests/jit/bug81249.phpt
ext/opcache/tests/jit/bug81255.phpt
ext/opcache/tests/jit/bug81256.phpt
ext/opcache/tests/jit/bug81409.phpt
ext/opcache/tests/jit/cast_001.phpt
ext/opcache/tests/jit/defined_001.phpt
ext/opcache/tests/jit/fetch_dim_r_005.phpt
ext/opcache/tests/jit/fetch_obj_005.phpt
ext/opcache/tests/jit/gh12380.phpt
ext/opcache/tests/jit/gh15490.phpt
ext/opcache/tests/jit/gh8461-001.phpt
ext/opcache/tests/jit/gh8461-002.phpt
ext/opcache/tests/jit/gh8461-003.phpt
ext/opcache/tests/jit/gh8461-004.phpt
ext/opcache/tests/jit/gh8461-005.phpt
ext/opcache/tests/jit/gh8461-006.phpt
ext/opcache/tests/jit/gh8461-007.phpt
ext/opcache/tests/jit/gh8461-008.phpt
ext/opcache/tests/jit/gh8591-001.phpt
ext/opcache/tests/jit/gh8591-002.phpt
ext/opcache/tests/jit/gh8591-003.phpt
ext/opcache/tests/jit/gh8591-004.phpt
ext/opcache/tests/jit/gh8591-005.phpt
ext/opcache/tests/jit/gh8591-006.phpt
ext/opcache/tests/jit/hot_func_002.phpt
ext/opcache/tests/jit/ignored_opcodes.phpt
ext/opcache/tests/jit/init_fcall_003.phpt
ext/opcache/tests/jit/loop_002.phpt
ext/opcache/tests/jit/mod_003.phpt
ext/opcache/tests/jit/mul_005.phpt
ext/opcache/tests/jit/oss-fuzz-64727.phpt
ext/opcache/tests/jit/reg_alloc_004.phpt
ext/opcache/tests/jit/trampoline_001.phpt
ext/opcache/tests/jit/trampoline_002.phpt
PHP Version
PHP 8.4.1
Operating System
Alpinelinux
Reactions are currently unavailable
Activity
andypost commentedon Nov 23, 2024
it fail only on aarch64
andypost commentedon Nov 23, 2024
ndossche commentedon Nov 23, 2024
Hm, this could be related to the TSRM cache tcb offset, if this is not fully supported on ARM64+MUSL.
Just to be clear: this does work on versions lower than 8.4 ? Does a debug build give any assertion failure?
andypost commentedon Nov 23, 2024
Previously I did not build zts so no previous state, debug
-gwas added but I did not debug yet, strange that it pass on loongarch64 and armv7/hf(32-bit)andypost commentedon Nov 23, 2024
building with
--enable-debug-assertionsandypost commentedon Nov 23, 2024
Yes, there's assertions now
andypost commentedon Nov 23, 2024
all of them are the same!
ndossche commentedon Nov 24, 2024
Thanks! Right, so my suspicion that this is missing MUSL TSRM TLS support is right.
Annoyingly I don't have Arm64 hardware, but I can look into this maybe via emulation...
23 remaining items
ndossche commentedon Nov 25, 2024
@andypost I fixed the ZTS issue, hence this issue was closed.
About your other two issues:
ndossche commentedon Nov 25, 2024
@andypost I can reproduce that FFI issue but have not fully understood it yet. I know that the reason for the crash is that
is_zend_ptr()for some reason returned 1 instead of 0, I'm debugging further...Fix is_zend_ptr() huge block comparison
ndossche commentedon Nov 25, 2024
@andypost I have identified the problem and propose this patch: #16938
Fix is_zend_ptr() huge block comparison
ndossche commentedon Nov 26, 2024
@andypost Everything you reported, including that gdbm issue, should now be fixed in the next releases of 8.2,8.3,8.4.
andypost commentedon Nov 26, 2024
@nielsdos Thank you a lot!
I'm waiting for RC1 releases to start with ZTS!