Skip to content

Segfault when running Psalm with JIT on the official 8.3 alpine ZTS image #12884

Closed
@danog

Description

@danog

Description

The following Dockerfile:

FROM php:8.3-zts-alpine AS base

COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/

RUN install-php-extensions opcache

RUN apk add git unzip

RUN git clone https://github.com/WyriHaximus/php-test-utilities/ \
    && php -r "readfile('https://getcomposer.org/installer');" | php \
	&& mv composer.phar /usr/bin/composer 

WORKDIR /php-test-utilities
RUN composer install --ignore-platform-reqs || true

ENV PSALM_ALLOW_XDEBUG=1

RUN php -dopcache.enable_cli=true -dopcache.jit_buffer_size=64M -dopcache.jit=1205 -dopcache.optimization_level=0x7FFEBFFF vendor/bin/psalm --shepherd --stats --config=./etc/qa/psalm.xml --no-cache

ENTRYPOINT ["docker-php-entrypoint"]

Resulted in a segfault, but I expected no segfault.

Ping @dstogov @WyriHaximus @Girgias

PHP Version

PHP 8.3.0

Operating System

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions