wodby / drupal-php

PHP docker container image for Drupal
https://wodby.com/stacks/drupal
MIT License
60 stars 80 forks source link

Getting segmentation fault error while trying to generate code coverage with PHPUnit #57

Closed mxr576 closed 5 years ago

mxr576 commented 6 years ago

I am getting Segmentation fault when I am trying to generate code coverage by using the drupal-php:7.1-dev-4.5.0 image. It seems there is no issue if I use drupal-php:7.2-dev-4.5.0 image so maybe this is caused by some pre-installed extension?

vendor/bin/phpunit -c core -v --debug --filter testForm BrowserTestBaseTest core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php --coverage-php=/var/www/html/coverage.cov

mxr576 commented 6 years ago

So it failed several times on a project but now it is working on an other one. Am using the same containers so this is weird. I am trying to figure out why it is failed in one place not the other one and describe how this can be reproduced.

csandanov commented 6 years ago

Thanks for reporting this, it would be really helpful if you provide steps how to reproduce it. Also, try using wodby/php images with -debug tag to get more details, I guess you have a core dump https://bugs.php.net/bugs-generating-backtrace.php

csandanov commented 6 years ago

Also, as a quick guess try disabling apcu via PHP_APCU_ENABLED=0 when you get a segfault, see if it helps.