Closed
Description
Description
Found while looking at #9735 (comment)
Most fibers tests fail when building with clang on alpine x86 in non-debug.
This Dockerfile allows to reproduce the issue:
FROM i386/alpine:3.17.1
RUN apk add gcc clang autoconf make bison re2c git musl-dev
RUN git clone https://github.com/php/php-src --branch master --depth 1
WORKDIR php-src
RUN ./buildconf --force && \
CC=clang \
CXX=clang++ \
./configure --disable-all --with-pic --build i586-alpine-linux-musl && \
make -j$(nproc)
RUN TESTS=Zend/tests/fibers make test || true
CMD bash
Also happens in an alpine VM:
CC=clang CXX=clang++ ./configure --disable-all
TESTS=Zend/tests/fibers make test
Tests pass when building with gcc, or with -O0.
PHP Version
8.1 f673449
Operating System
Alpine 3.17.1 x86