Skip to content

Fibers are broken on alpine x86 with clang #10398

Closed
@arnaud-lb

Description

@arnaud-lb

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions