z-engine
z-engine copied to clipboard
Investigate an assertion error in zend_string_destroy
trafficstars
Test suite fails in PHP 7.4.0RC3 debug build with message:
php-src/Zend/zend_variables.c:64: zend_string_destroy: Assertion `!(zval_gc_flags((str)->gc.u.type_info) & (1<<6))' failed.
Need to fix this assertion error.
I don't know ways to debug this issue, it's too complex right now.
I have a guess, that I'm using immutable strings from PHP. For example, immutable method names in tests and steal pointer to them to use in misc areas of code instead of crafting zend_string entry by hand. Probably, at the end of request GC tries to clean something (hashtable?) and assertion fails.