Skip to content

Assertion failure in Zend/zend_objects_API.c:189 #16632

@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
namespace A;
$handler = 'cdb';var_dump($handler);
$db_file = __DIR__.'/test.cdb';var_dump($db_file);
if (($db_file=dba_open($db_file, "r", $handler))!==FALSE) {
$a = dba_firstkey($db_file);var_dump($a);
$keys = $a;var_dump($keys);
for ($i=0; $i < strlen($keys); $i++) {
echo dba_fetch($key, $db_file);var_dump($key);
$key = substr($keys, $i, 1);var_dump($key);
}
}

Resulted in this output (JIT 1211):

...
NULL
/php-src/Zend/zend_objects_API.c:189: void zend_objects_store_del(zend_object *): Assertion `(!(((uintptr_t)((((zend_executor_globals *) (((char*) _tsrm_ls_cache)+(executor_globals_offset)))->objects_store).object_buckets[handle])) & (1<<0)))' failed.
Aborted (core dumped)

non-JIT:

...
NULL
string(1) "1"

PHP Version

nightly

Operating System

ubuntu 22.04

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions