Bug #71930 [NEW]: _zval_dtor_func: Assertion `(arr)->gc.refcount <= 1' failed

From: Date: Thu, 31 Mar 2016 09:29:28 +0000
Subject: Bug #71930 [NEW]: _zval_dtor_func: Assertion `(arr)->gc.refcount <= 1' failed
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200251@lists.php.net to get a copy of this message
From: mbeccati Operating system: PHP version: 7.0Git-2016-03-31 (Git) Package: Reproducible crash Bug Type: Bug Bug description:_zval_dtor_func: Assertion `(arr)->gc.refcount <= 1' failed 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 bug report at https://bugs.php.net/bug.php?id=71930&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71930&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71930&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71930&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71930&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71930&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71930&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71930&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71930&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71930&r=support Expected behavior: https://bugs.php.net/fix.php?id=71930&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71930&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71930&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71930&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71930&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71930&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71930&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71930&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71930&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71930&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71930&r=mysqlcfg

« previous php.bugs (#200251) next »