[php-src] Issue #10398: Fibers are broken on alpine x86 with clang
| From: | arnaud-lb | Date: | Sat, 21 Jan 2023 12:26:17 +0000 |
| Subject: | [php-src] Issue #10398: Fibers are broken on alpine x86 with clang | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-243512@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/10398
Author: arnaud-lb
### Description
Found while looking at https://github.com/php/php-src/issues/9735#issuecomment-1399194785
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 f6734495f7581b821a8c098badcf4e5d0e8125e4
### Operating System
Alpine 3.17.1 x86