Bug #71930 [Opn]: _zval_dtor_func: Assertion `(arr)->gc.refcount <= 1' failed
| From: | nikic@php.net | Date: | Thu, 31 Mar 2016 10:02:19 +0000 |
| Subject: | Bug #71930 [Opn]: _zval_dtor_func: Assertion `(arr)->gc.refcount <= 1' failed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-200252@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71930&edit=1
ID: 71930
Updated by: nikic@php.net
Reported by: mbeccati@php.net
Summary: _zval_dtor_func: Assertion `(arr)->gc.refcount <= 1'
failed
Status: Open
Type: Bug
Package: Reproducible crash
PHP Version: 7.0Git-2016-03-31 (Git)
Block user comment: N
Private report: N
New Comment:
Can you please provide the backtrace for this assertion failure? That would be "bt" in
gdb.
Previous Comments:
------------------------------------------------------------------------
[2016-03-31 09:29:22] mbeccati@php.net
Description:
------------
I've just re-enabled php7 and master daily builds of phpspec and I am getting an assertion
failure. This was the first run in a long time, so I can't tell how recent is the commit
that's responsible for the failure on both 7.0 and 7.1.
Test script:
---------------
git clone git@github.com:phpspec/phpspec.git
cd phpspec
composer update --prefer-dist
php bin/phpspec run
Expected result:
----------------
no assertion failure
Actual result:
--------------
php: /.../Zend/zend_variables.c:43: _zval_dtor_func: Assertion `(arr)->gc.refcount <= 1'
failed.
Program received signal SIGABRT, Aborted.
0x00007ffff59b3cc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb)
(gdb) frame 4
#4 0x0000000000a1dd77 in _zval_dtor_func (p=0x7ffff0adc360, __zend_filename=0x108f700
"/.../Zend/zend_variables.c", __zend_lineno=246)
at /.../Zend/zend_variables.c:43
43 ZEND_ASSERT(GC_REFCOUNT(arr) <= 1);
(gdb) print *arr
$1 = {gc = {refcount = 783, u = {v = {type = 7 '\a', flags = 0 '\000', gc_info =
51251}, type_info = 3358785543}}, u = {v = {flags = 30 '\036', nApplyCount = 0
'\000', nIteratorsCount = 0 '\000', reserve = 0 '\000'}, flags = 30},
nTableMask = 4294967294, arData = 0x7ffff0cf4908, nNumUsed = 2, nNumOfElements = 2, nTableSize =
8, nInternalPointer = 0, nNextFreeElement = 2, pDestructor = 0xa1e500
<_zval_ptr_dtor_wrapper>}
(gdb)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71930&edit=1