Bug #80916 [Opn->Csd]: Assertion failure with function JIT

From: Date: Mon, 29 Mar 2021 20:51:31 +0000
Subject: Bug #80916 [Opn->Csd]: Assertion failure with function JIT
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233058@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80916&edit=1

 ID:                 80916
 User updated by:    derkontrollfreak+9hy5l at gmail dot com
 Reported by:        derkontrollfreak+9hy5l at gmail dot com
 Summary:            Assertion failure with function JIT
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            JIT
 Operating System:   Debian 10.9 x86_64
 PHP Version:        8.0.4RC1
 Block user comment: N
 Private report:     N

 New Comment:

Sorry, I just realized the bug has already been fixed in the current PHP-8.0 branch.


Previous Comments:
------------------------------------------------------------------------
[2021-03-29 20:03:18] derkontrollfreak+9hy5l at gmail dot com

Description:
------------
PHP 8.0.4RC1 (cli) ( NTS DEBUG ) crashes when running the test script with function JIT enabled.

I also tested with PHP 8.1.0-dev (master-Git-2021-03-29) which does not seem to have this bug. It
shows the expected result.

Configure Command
=================
./configure --prefix=/dev/shm/test/php-8.0.4RC1 --disable-all --enable-debug --enable-opcache
--enable-opcache-jit

Command
=======
php -d zend_extension=opcache -d opcache.enable_cli=on -d opcache.jit_buffer_size=64M -d
opcache.jit=function test.php


Test script:
---------------
<?php

class Test
{
    public $test = null;

    function test()
    {
        var_dump($this->test . number_format(0));
    }
}

(new Test())->test();


Expected result:
----------------
STDOUT
======
string(1) "0"


Actual result:
--------------
STDERR
======
php: /dev/shm/test/php-src/Zend/zend_variables.c:65: zend_string_destroy: Assertion
`zend_gc_refcount(&(str)->gc) == 0' failed.

Backtrace
=========
#0  0x00007f1f99ad27bb in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f1f99abd535 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f1f99abd40f in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007f1f99acb102 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#4  0x00005593b5b38145 in zend_string_destroy (str=0x7f1f99858680)
    at /dev/shm/test/php-src/Zend/zend_variables.c:65
#5  0x00005593b5b3809f in rc_dtor_func (p=0x7f1f99858680)
    at /dev/shm/test/php-src/Zend/zend_variables.c:57
#6  0x00000000485b83c6 in ?? ()
#7  0x00007f1f998592a0 in ?? ()
#8  0x00007f1f99814020 in ?? ()
#9  0x0000000000000000 in ?? ()



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=80916&edit=1


Thread (2 messages)

« previous php.bugs (#233058) next »