[php-src] Issue #8496: zend_gc_delref: Assertion `p->refcount > 0' failed during composer update of phpspec
| From: | mbeccati | Date: | Thu, 05 May 2022 07:50:55 +0000 |
| Subject: | [php-src] Issue #8496: zend_gc_delref: Assertion `p->refcount > 0' failed during composer update of phpspec | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-241414@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8496
Author: mbeccati
### Description
PHP 8.0 latest from git has started failing 3 days ago on my CI when building phpspec:
https://revive.beccati.com/bamboo/browse/PHP-PHPSPEC-PHP80-2890
The following code:
```php
git clone git@github.com:phpspec/phpspec.git
cd phpspec
composer update --prefer-dist
```
With phpspec at commit https://github.com/phpspec/phpspec/commit/55f26c90f2270162f4663df461ffb45d0d212b6e
Composer version 2.3.5 2022-04-13 16:43:00 (same with 2.3.3)
php-src was at commit 82dae61c04205e2a09df005b00bc7398aa586023, with no apparent changes since the
day before. Still failing today. PHP 7.3, 7.4 and 8.1 builds are passing.
Resulted in this output:
```
...
72/72 [============================] 100%
1 package suggestions were added by new dependencies, use
composer suggest to see
details.
Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
Generating autoload files
51 packages you are using are looking for funding.
Use the composer fund command to find out more!
php: /home/atlassian/bamboo/local-working-dir/PHP-SRC10-BUIL/Zend/zend_types.h:1172: zend_gc_delref:
Assertion `p->refcount > 0' failed.
Aborted (core dumped)
```
But I expected no assertion failure.
### PHP Version
PHP 8.0.20 (git)
### Operating System
Ubuntu 20.04.2 LTS