Bug #81364 [NEW]: Segfault running PHPStan test suite with JIT enabled
| From: | smokey101stair at gmail dot com | Date: | Mon, 16 Aug 2021 01:25:19 +0000 |
| Subject: | Bug #81364 [NEW]: Segfault running PHPStan test suite with JIT enabled | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-235833@lists.php.net to get a copy of this message | ||
From: smokey101stair at gmail dot com
Operating system: Ubuntu 20.04/WSL2
PHP version: 8.1.0beta2
Package: JIT
Bug Type: Bug
Bug description:Segfault running PHPStan test suite with JIT enabled
Description:
------------
PHP segfaults while running PHPStan testsuite with the JIT enabled.
PHP 8.1.0beta2 (cli) (built: Aug 15 2021 19:45:43) (NTS DEBUG)
Copyright (c) The PHP Group
Zend Engine v4.1.0-dev, Copyright (c) Zend Technologies
with Zend OPcache v8.1.0beta2, Copyright (c), by Zend Technologies
opcache.enable_cli=1
opcache.memory_consumption=256
opcache.max_accelerated_files=20000
opcache.jit=1255
opcache.jit_buffer_size=256M
memory_limit=-1
Steps to reproduce:
1) git clone -b jit --single-branch
https://github.com/TRowbotham/phpstan-src.git
2) cd phpstan-src
3) composer update
4) make tests
Actual result:
--------------
#0 __GI_raise (sig=sig@entry=6) at
../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007f4efd8db859 in __GI_abort () at abort.c:79
#2 0x00007f4efd8db729 in __assert_fail_base (fmt=0x7f4efda71588
"%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
assertion=0x7f4efa9d4621 "var_info & (1 << var_type)",
file=0x7f4efa9d3240
"/home/trevor/.phpbrew/build/8.1.0beta2-debug/ext/opcache/jit/zend_jit_x86.dasc",
line=14933,
function=<optimized out>) at assert.c:92
#3 0x00007f4efd8ecf36 in __GI___assert_fail (assertion=0x7f4efa9d4621
"var_info & (1 << var_type)",
file=0x7f4efa9d3240
"/home/trevor/.phpbrew/build/8.1.0beta2-debug/ext/opcache/jit/zend_jit_x86.dasc",
line=14933,
function=0x7f4efa9d7f30 <__PRETTY_FUNCTION__.28793>
"zend_jit_fetch_indirect_var") at assert.c:101
#4 0x00007f4efa9766b8 in zend_jit_fetch_indirect_var
(Dst=0x7ffd8c062128, opline=0x42a30328, var_type=0 '\000',
var_info_ptr=0x7ffd8c0620a4, var_addr_ptr=0x7ffd8c062130,
add_indirect_guard=true)
at
/home/trevor/.phpbrew/build/8.1.0beta2-debug/ext/opcache/jit/zend_jit_x86.dasc:14933
#5 0x00007f4efa9a0b8a in zend_jit_trace (trace_buffer=0x7ffd8c066550,
parent_trace=0, exit_num=0)
at ext/opcache/jit/zend_jit_trace.c:4444
#6 0x00007f4efa9b2f1a in zend_jit_compile_root_trace
(trace_buffer=0x7ffd8c066550, opline=0x42a30578, offset=3168)
at ext/opcache/jit/zend_jit_trace.c:6498
#7 0x00007f4efa9b4f21 in zend_jit_trace_hot_root
(execute_data=0x7f4efaa18940, opline=0x42a30578)
at ext/opcache/jit/zend_jit_trace.c:6991
#8 0x000000005040f5c7 in ?? ()
#9 0x0000000040855030 in ?? ()
#10 0x00007f4efaa185c0 in ?? ()
#11 0x0000000000000000 in ?? ()
--
Edit bug report at https://bugs.php.net/bug.php?id=81364&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81364&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81364&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81364&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81364&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81364&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81364&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81364&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81364&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81364&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81364&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81364&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81364&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81364&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81364&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81364&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81364&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81364&r=mysqlcfg