Codeception: PHP 7 + coverage tests using C3 on Travis = Segmentation fault
Extracted from #2712
I launch 2 commands in a row on Travis
$ php vendor/bin/codecept run acceptance --env firefox
$ php vendor/bin/codecept run api,integration,unit -vvv --coverage --coverage-xml --coverage-html
The second one will fail with this error message
[GuzzleHttp\Exception\ConnectException]
cURL error 7: couldn’t connect to host
in tests/_output/phpbuiltinserver.errors.txt, I get:
[Wed Jan 13 14:36:32 2016] Failed to listen on localhost:8000 (reason: Address already in use) [Wed Jan 13 14:36:40 2016] ::1:48142 [200]: /c3/report/clear
or
[Wed Jan 20 11:28:02 2016] ::1:50413 [200]: /index.php/apps/gallery/files/list?location=&mediatypes=image%2Fpng%3Bimage%2Fjpeg%3Bimage%2Fgif%3Bapplication%2Fpostscript&features=&etag [Wed Jan 20 11:28:10 2016] ::1:50425 [200]: /c3/report/clear
This does not happen on older version of PHP
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 32 (13 by maintainers)
Hi! I’ve been debugging a Segmentation Fault during remote code coverage today and finally got it working. I just disabled the opcache extension (not just enable_cli, but enable too). Maybe can help someone facing the same problem.
Probably related to this bug in xdebug: https://bugs.xdebug.org/view.php?id=1263