From: chaz at chaz6 dot com
Operating system: Linux x86_64
PHP version: 8.0.3
Package: hash related
Bug Type: Bug
Bug description:Assertion failure in Zend/zend_hash.c:731
Description:
------------
Note there is a similar bug (https://bugs.php.net/bug.php?id=79785) but
this was closed as a duplicate, as was the original, but this crash
occurs with the latest stable version.
The error message:-
Zend/zend_hash.c:731: zval *_zend_hash_add_or_update_i(HashTable *,
zend_string *, zval *, uint32_t): Assertion
`(zend_gc_refcount(&(ht)->gc) == 1) || ((ht)->u.flags & (1<<6))'
failed.
gdb backtrace:-
#0 0x00007ffff58353d7 in raise () from /lib64/libc.so.6
#1 0x00007ffff5836ac8 in abort () from /lib64/libc.so.6
#2 0x00007ffff582e1a6 in __assert_fail_base () from /lib64/libc.so.6
#3 0x00007ffff582e252 in __assert_fail () from /lib64/libc.so.6
#4 0x0000000000afcc04 in _zend_hash_add_or_update_i (ht=0x1637560
<zend_empty_array>, key=0x40240578, pData=0x1a20998 <executor_globals>,
flag=8) at Zend/zend_hash.c:731
#5 0x0000000000afcb1a in zend_hash_add_new (ht=0x1637560
<zend_empty_array>, key=0x40240578, pData=0x1a20998 <executor_globals>)
at Zend/zend_hash.c:911
#6 0x00007ffff377fc7d in zend_jit_hash_lookup_w (ht=0x1637560
<zend_empty_array>, str=0x40240578) at
ext/opcache/jit/zend_jit_helpers.c:311
#7 0x00000000494fd8cc in ?? ()
#8 0x00007fffe64cdc00 in ?? ()
#9 0x0000000041058710 in ?? ()
#10 0x00007ffff3815880 in ?? ()
#11 0x0000000000000000 in ?? ()
Steps to reproduce:-
$ composer create-project drupal-composer/drupal-project:9.x-dev
drupal-project --no-interaction
$ cd drupal-project/web
$ php core/scripts/drupal quick-start
Select an installation profile [Install with commonly used features
pre-configured.]:
[standard ] Install with commonly used features pre-configured.
[minimal ] Build a custom site without pre-configured functionality.
Suitable for advanced users.
[demo_umami] Install an example site that shows off some of Drupalâs
capabilities.
> demo_umami
6/17
[ââââââââââââââââââââââââââââ]
Set up database
php: /home/build/src/php-8.0.3/Zend/zend_hash.c:731: zval
*_zend_hash_add_or_update_i(HashTable *, zend_string *, zval *,
uint32_t): Assertion `(zend_gc_refcount(&(ht)->gc) == 1) ||
((ht)->u.flags & (1<<6))' failed.
Aborted (core dumped)
--
Edit bug report at https://bugs.php.net/bug.php?id=80883&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80883&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80883&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80883&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80883&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80883&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80883&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80883&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80883&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80883&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80883&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80883&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80883&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80883&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80883&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80883&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80883&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80883&r=mysqlcfg