[php-src] Issue #10593: zend_objects_store_del assert
| From: | pepone | Date: | Tue, 14 Feb 2023 22:09:45 +0000 |
| Subject: | [php-src] Issue #10593: zend_objects_store_del assert | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-243729@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/10593
Author: pepone
### Description
I hit the assert in
zend_objects_API.c:195, this happens when an Array of objects is
destroyed, the objects were created by my extension. Any pointers on what could be the causes to hit
this?
```
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140737312945984) at
./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=140737312945984) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=140737312945984, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007ffff79aa476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4 0x00007ffff79907f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x00007ffff799071b in __assert_fail_base (fmt=0x7ffff7b45150 "%s%s%s:%u: %s%sAssertion
`%s' failed.\n%n", assertion=0x5555566c1098
"(!(((zend_uintptr_t)((executor_globals.objects_store).object_buckets[handle])) &
(1<<0)))",
file=0x5555566c1000 "/home/jose/php-src/Zend/zend_objects_API.c", line=195,
function=<optimized out>) at ./assert/assert.c:92
#6 0x00007ffff79a1e96 in __GI___assert_fail (assertion=0x5555566c1098
"(!(((zend_uintptr_t)((executor_globals.objects_store).object_buckets[handle])) &
(1<<0)))", file=0x5555566c1000 "/home/jose/php-src/Zend/zend_objects_API.c",
line=195,
function=0x5555566c1110 <__PRETTY_FUNCTION__.0> "zend_objects_store_del") at
./assert/assert.c:101
#7 0x0000555555b9350f in zend_objects_store_del (object=0x7ffff570ef00) at
/home/jose/php-src/Zend/zend_objects_API.c:195
#8 0x0000555555a91b69 in rc_dtor_func (p=0x7ffff570ef00) at
/home/jose/php-src/Zend/zend_variables.c:57
#9 0x0000555555b8b426 in i_zval_ptr_dtor (zval_ptr=0x7ffff57126b8) at
/home/jose/php-src/Zend/zend_variables.h:44
#10 0x0000555555b8b92c in zend_object_std_dtor (object=0x7ffff5712680) at
/home/jose/php-src/Zend/zend_objects.c:71
#11 0x0000555555b9357e in zend_objects_store_del (object=0x7ffff5712680) at
/home/jose/php-src/Zend/zend_objects_API.c:200
#12 0x0000555555a91b69 in rc_dtor_func (p=0x7ffff5712680) at
/home/jose/php-src/Zend/zend_variables.c:57
#13 0x0000555555aabfe1 in i_zval_ptr_dtor (zval_ptr=0x7ffff569a1d8) at
/home/jose/php-src/Zend/zend_variables.h:44
#14 0x0000555555ab1d73 in zend_array_destroy (ht=0x7ffff5747000) at
/home/jose/php-src/Zend/zend_hash.c:1761
#15 0x0000555555a91b69 in rc_dtor_func (p=0x7ffff5747000) at
/home/jose/php-src/Zend/zend_variables.c:57
#16 0x0000555555ac74dc in i_zval_ptr_dtor (zval_ptr=0x7ffff5618700) at
/home/jose/php-src/Zend/zend_variables.h:44
#17 0x0000555555ad3545 in i_free_compiled_variables (execute_data=0x7ffff5618510) at
/home/jose/php-src/Zend/zend_execute.c:3818
#18 0x0000555555b54b69 in execute_ex (ex=0x7ffff5618020) at
/home/jose/php-src/Zend/zend_vm_execute.h:56440
#19 0x0000555555b5a8c3 in zend_execute (op_array=0x7ffff56833c0, return_value=0x0) at
/home/jose/php-src/Zend/zend_vm_execute.h:60935
#20 0x0000555555a969a8 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at
/home/jose/php-src/Zend/zend.c:1845
#21 0x00005555559e8364 in php_execute_script (primary_file=0x7fffffffc9e0) at
/home/jose/php-src/main/main.c:2481
#22 0x0000555555c1a6c0 in do_cli (argc=16, argv=0x555556c37340) at
/home/jose/php-src/sapi/cli/php_cli.c:964
#23 0x0000555555c1b3b9 in main (argc=16, argv=0x555556c37340) at
/home/jose/php-src/sapi/cli/php_cli.c:1333
```
### PHP Version
PHP 8.3.0-dev
### Operating System
Ubuntu 22.04