View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002139||Xdebug||Code Coverage||public||2022-11-23 22:06||2022-11-24 17:32|
|Platform||Github Action||OS||Ubuntu||OS Version||22.04|
|Summary||0002139: PHP crash on generating coverage report using PHPUnit|
I am generating a code coverage in the CI using setup-php action and I got an segmentation fault while generating coverage.
|Steps To Reproduce|
/usr/bin/php -d memory_limit=-1 --configuration phpunit.xml.dist --exclude-group needsWebserver,quarantined --testsuite storefront --coverage-cobertura phpunit.coverage.storefront.xml
0x0000555555875f2c in ?? ()
We use also Library https://github.com/dg/bypass-finals which does Crazy stuff with file stream wrapper. Maybe that triggers it?
|Tags||No tags attached.|
Program received signal SIGSEGV, Segmentation fault.
Back trace with symbols.
Created also a Coredump using GDB if it helps, but it is 4,7GB
Yeah, don't send me that core dump :-) I'll see if I can reproduce this tomorrow. Can you add your php -i output though please as an attachment?
Here is the PHP info http://sprunge.us/WfxR0P. Thanks! :)
I had to start the phpunit run differently:
XDEBUG_MODE=coverage php -d memory_limit=-1 ./vendor/bin/phpunit --configuration phpunit.xml.dist --exclude-group needsWebserver,quarantined --testsuite storefront --coverage-cobertura phpunit.coverage.storefront.xml
It's been running for a while now, but no crash yet. From your backtrace I can see it's on request shutdown... so I am going to have to wait for that.