Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail with PHP 8.1 on GitHub Actions #4622

Closed
sebastianbergmann opened this issue Mar 13, 2021 · 5 comments
Closed

Tests fail with PHP 8.1 on GitHub Actions #4622

sebastianbergmann opened this issue Mar 13, 2021 · 5 comments
Labels
type/build-automation Issues related to PHPUnit's build automation (GitHub Actions, etc.)

Comments

@sebastianbergmann
Copy link
Owner

sebastianbergmann commented Mar 13, 2021

The builds with PHP 8.1 on GitHub Actions currently fail because PHP prints

malloc_consolidate(): invalid chunk size
Aborted (core dumped)

which leads to PHPT test failing as their assertions operate on PHP output:

I cannot reproduce this locally using PHP 8.1 built from source by myself.

I do not know whether this is an issue in PHP 8.1 itself, whether this is an issue in @shivammathur / setup-php, or whether something weird is going on in the Linux container used on GitHub Actions.

@sebastianbergmann sebastianbergmann added the type/build-automation Issues related to PHPUnit's build automation (GitHub Actions, etc.) label Mar 13, 2021
@shivammathur
Copy link
Contributor

shivammathur commented Mar 13, 2021

@sebastianbergmann I have added the commit hash in logs for PHP 8.1 on ubuntu (shivammathur/setup-php#433)
PHP 8.1 is build from master branch without any patches. The libraries used are from ppa:ondrej/php.
So the bug should be in PHP 8.1 or some library version incompatibility that got introduced recently.

I have rebuilt PHP 8.1 with debugging symbols, so please try to generate the backtrace in your workflow.

@shivammathur
Copy link
Contributor

@sebastianbergmann
This is failing when pcov is enabled.
https://github.com/shivammathur/test-setup-php/runs/2104382772?check_suite_focus=true#step:7:75

I'm not familiar with pcov internals, so not sure how to patch this. I would suggest reporting this upstream and switching to Xdebug for coverage on PHP 8.1 till this is fixed.

@sebastianbergmann
Copy link
Owner Author

This is failing when pcov is enabled.

Thanks! I am now able to reproduce this locally.

@sebastianbergmann
Copy link
Owner Author

@krakjoe Would you like me to open a ticket for PCOV? If so, what information do you need beside what's already here? Thanks!

@sebastianbergmann
Copy link
Owner Author

I opened krakjoe/pcov#59.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/build-automation Issues related to PHPUnit's build automation (GitHub Actions, etc.)
Projects
None yet
Development

No branches or pull requests

2 participants