FriendsOfBehat / SymfonyExtension

:musical_score: Extension integrating Behat with Symfony.
MIT License
472 stars 62 forks source link

Error when installing the package on Symfony 4.4 #135

Closed johnkrovitch closed 3 years ago

johnkrovitch commented 3 years ago

Hello,

when I try to install the package, I have a strange issue when clearing the cache (with the default composer script or with ca:cl).

When i run composer require -vvvv friends-of-behat/symfony-extension, I have the following error :

  [Symfony\Component\Process\Exception\RuntimeException]  
  The process has been signaled with signal "11".

Exception trace:
 () at phar:///usr/bin/composer/vendor/symfony/process/Process.php:366
 Symfony\Component\Process\Process->wait() at phar:///usr/bin/composer/vendor/symfony/process/Process.php:198
 Symfony\Component\Process\Process->run() at phar:///usr/bin/composer/src/Composer/Util/ProcessExecutor.php:118
 Composer\Util\ProcessExecutor->doExecute() at phar:///usr/bin/composer/src/Composer/Util/ProcessExecutor.php:62
 Composer\Util\ProcessExecutor->execute() at /var/www/html/vendor/symfony/flex/src/ScriptExecutor.php:58
 Symfony\Flex\ScriptExecutor->execute() at phar:///usr/bin/composer/src/Composer/Plugin/PluginManager.php(212) : eval()'d code:603
 Symfony\Flex\Flex_composer_tmp1->executeAutoScripts() at n/a:n/a
 call_user_func() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:173
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:86
 Composer\EventDispatcher\EventDispatcher->dispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:199
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:101
 Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar:///usr/bin/composer/src/Composer/Installer.php:345
 Composer\Installer->run() at phar:///usr/bin/composer/src/Composer/Command/RequireCommand.php:321
 Composer\Command\RequireCommand->doUpdate() at phar:///usr/bin/composer/src/Composer/Command/RequireCommand.php:240
 Composer\Command\RequireCommand->execute() at /var/www/html/vendor/symfony/flex/src/Command/RequireCommand.php:54
 Symfony\Flex\Command\RequireCommand->execute() at phar:///usr/bin/composer/vendor/symfony/console/Command/Command.php:245
 Symfony\Component\Console\Command\Command->run() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:835
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:185
 Symfony\Component\Console\Application->doRun() at phar:///usr/bin/composer/src/Composer/Console/Application.php:310
 Composer\Console\Application->doRun() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:117
 Symfony\Component\Console\Application->run() at phar:///usr/bin/composer/src/Composer/Console/Application.php:122
 Composer\Console\Application->run() at phar:///usr/bin/composer/bin/composer:63
 require() at /usr/bin/composer:24

And if I run composer require --no-scripts friends-of-behat/symfony-extension, and I run bin/console ca:cl -vvvv I have the error :

Segmentation fault (core dumped)

When I remove the package everything works fine. I do not know how to provide more useful data.

The project run on docker-compose with a php-7.4-fpm-alpine image, I try with composer 1 and 2 (no difference).

Anyone has an idea on this ?

Thanks .

johnkrovitch commented 3 years ago

Hi, it appears that the issue come from a dependency loop in the Symfony container, but not related to Behat. I dont know why the problem only happens when we install this extension, and not before.

Thank you !