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

PHP 8.1: PHPUnit\Framework\Exception: Aborted (core dumped) #4822

Closed
ostrolucky opened this issue Nov 14, 2021 · 4 comments
Closed

PHP 8.1: PHPUnit\Framework\Exception: Aborted (core dumped) #4822

ostrolucky opened this issue Nov 14, 2021 · 4 comments

Comments

@ostrolucky
Copy link
Contributor

Q A
PHPUnit version 9.x, 10.x
PHP version 8.1.0-dev (389b2a446370f8391cedd598bfd27f8120778722)
Installation Method Composer

Summary

Looks like doctrine-bundle tests under PHP 8.1 usually fail. See https://github.com/doctrine/DoctrineBundle/runs/4203967904?check_suite_focus=true

Problem is sometimes gone when I rebuild the job

Possibly related: #4622

@ostrolucky ostrolucky added the type/bug Something is broken label Nov 14, 2021
@sebastianbergmann
Copy link
Owner

sebastianbergmann commented Nov 14, 2021

You have found a problem in the PHP runtime that leads to a segmentation fault. An issue like this has to be reported at https://bugs.php.net/report.php using a minimal, self-contained, reproducing test case.

Please note that a test case that needs to be run through PHPUnit does not qualify as either "minimal" or "self-contained" when reporting bugs for the PHP runtime. Best practices for reporting bugs in PHP are documented here.

@sebastianbergmann sebastianbergmann removed the type/bug Something is broken label Nov 14, 2021
@ostrolucky
Copy link
Contributor Author

Could be also issue in pcov, setup-php, some weird thing phpunit does and so on, like you mentioned here #4622 I am not going to do the work of creating minimal reproducer at the moment, but thought it would still be good to have a bug report about this somewhere.

@ostrolucky
Copy link
Contributor Author

Looks like it's this bug https://bugs.php.net/bug.php?id=81612 and there is a fix for it here krakjoe/pcov#75

@ezraobb
Copy link

ezraobb commented Dec 12, 2023

Removing processIsolation attribute in phpunit.xml fixed it for me.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants