Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate an assertion error in zend_string_destroy #6

Open
lisachenko opened this issue Oct 1, 2019 · 1 comment
Open

Investigate an assertion error in zend_string_destroy #6

lisachenko opened this issue Oct 1, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@lisachenko
Copy link
Owner

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.

@lisachenko lisachenko added the bug Something isn't working label Oct 1, 2019
@lisachenko
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant