pantheon-systems / docker-build-tools-ci

Dockerfile source for docker image pantheon-public/build-tools-ci on quay.io
34 stars 39 forks source link

8.x-php8.1: phpstan consumes memory uncontrollably, then gets SIGKILL #112

Open john-herreno-ds opened 1 year ago

john-herreno-ds commented 1 year ago

Image tag 8.x-php8.1 (hash b2aa85523e8e) causes a simple phpstan run to start consuming memory uncontrollably, and eventually gets SIGKILL'ed.

This only started to occur after that image version-hash was published; it is not reproducible using image php:8.1.19-apache-bullseye.

Minimal repro:

docker run --rm -it quay.io/pantheon-public/build-tools-ci:8.x-php8.1 /bin/bash
# Next commands inside the container
mkdir test && cd test
composer init --name=testing/test --type=project -n
composer require phpstan/phpstan:1.10.15 --dev
mkdir src; echo -ne "<?php\n\necho 'hi\\n';" > src/Test.php
php src/Test.php # Prints 'hi'
vendor/bin/phpstan --level 0 analyze src/Test.php