Edge case where process doesn't end until core-agent is killed #153
Labels
bug
Something isn't working
nice to have
This is a "nice to have" feature - not a critical requirement
I've uncovered a weird edge case using tooling that results in the PHP process not ending until
core-agent
is killed.Currently, reliable reproduction can be done with:
composer require --dev infection/infection
infection.json.dist
:Running Infection works all fine (e.g.
vendor/bin/infection --threads=8 --log-verbosity=none
), except after printing the output it just hangs. Runningps ax | grep core-agent
shows multiple core agents running, and trace-level debug doesn't show anything untoward:If I disable xdebug (
sudo phpdismod xdebug
) and re-run withvendor/bin/infection --threads=8 --log-verbosity=none --initial-tests-php-options="-d zend_extension=xdebug.so"
it actually works.I've seen some weird interaction between xdebug and the core-agent before, but dismissed it as I figured it was just some race condition, but this is a reliable reproduction case.
It's unclear exactly what interaction is causing this behaviour, and it's also unclear as to whether this would cause problems in the real world. If I discover any more cases again, I'll document them here and hopefully some light can be shed on this.
The text was updated successfully, but these errors were encountered: