Segfault / Assertion Failure with PHP 7.3

Issue #35 resolved
kelunik created an issue

With PHP 7.3 the same code that works on PHP 7.2 and below segfaults: https://travis-ci.org/amphp/amp/jobs/532471945#L1459

#1  0x00007ffff39e3801 in __GI_abort () at abort.c:79
#2  0x00007ffff39d339a in __assert_fail_base (
    fmt=0x7ffff3b5a7d8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", 
    assertion=assertion@entry=0x555556753c08 "(!(((zend_uintptr_t)((executor_globals.objects_store).object_buckets[object->handle])) & (1<<0)))", 
    file=file@entry=0x555556753b88 "/home/kelunik/.php-build/release/Zend/zend_objects_API.c", line=line@entry=160, 
    function=function@entry=0x555556753ca0 <__PRETTY_FUNCTION__.14247> "zend_objects_store_del") at assert.c:92
#3  0x00007ffff39d3412 in __GI___assert_fail (
    assertion=0x555556753c08 "(!(((zend_uintptr_t)((executor_globals.objects_store).object_buckets[object->handle])) & (1<<0)))", 
    file=0x555556753b88 "/home/kelunik/.php-build/release/Zend/zend_objects_API.c", line=160, 
    function=0x555556753ca0 <__PRETTY_FUNCTION__.14247> "zend_objects_store_del")
    at assert.c:101
#4  0x0000555555e835fe in zend_objects_store_del (object=0x7fffeb5fb010)
    at /home/kelunik/.php-build/release/Zend/zend_objects_API.c:160
#5  0x00007fffeb9e0043 in zend_object_release (obj=0x7fffeb5fb010)
    at /home/kelunik/.phpenv/versions/7.3.3/include/php/Zend/zend_objects_API.h:77
#6  0x00007fffeb9e11dd in php_ev_object_free_storage (object=0x7fffeb5fb010)
    at /home/kelunik/.pecl-ev-build/source/php7/ev.c:631
#7  0x00007fffeb9e122f in php_ev_loop_free_storage (object=0x7fffeb5fb010)
    at /home/kelunik/.pecl-ev-build/source/php7/ev.c:647
#8  0x0000555555e83764 in zend_objects_store_del (object=0x7fffeb5fb010)
    at /home/kelunik/.php-build/release/Zend/zend_objects_API.c:184
#9  0x0000555555e2ab88 in zend_object_destroy_wrapper (obj=0x7fffeb5fb010)
    at /home/kelunik/.php-build/release/Zend/zend_variables.c:95
#10 0x0000555555e2a9f8 in rc_dtor_func (p=0x7fffeb5fb010)
    at /home/kelunik/.php-build/release/Zend/zend_variables.c:65
#11 0x0000555555e7c1cb in i_zval_ptr_dtor (zval_ptr=0x7fffeb44a528, 
    __zend_filename=0x555556753070 "/home/kelunik/.php-build/release/Zend/zend_objects.c", 
    __zend_lineno=55) at /home/kelunik/.php-build/release/Zend/zend_variables.h:44
#12 0x0000555555e7c4a8 in zend_object_std_dtor (object=0x7fffeb44a480)
    at /home/kelunik/.php-build/release/Zend/zend_objects.c:55
#13 0x0000555555e67e2d in zend_gc_collect_cycles ()
    at /home/kelunik/.php-build/release/Zend/zend_gc.c:1397
#14 0x00007fffec087477 in xdebug_gc_collect_cycles ()

Comments (4)

  1. Log in to comment