|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2021-08-16 01:25 UTC] smokey101stair at gmail dot com
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 ?? ()
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 00:00:02 2025 UTC |
The composer update step fails for me: Problem 1 - phpstan/phpstan-deprecation-rules[dev-master, 0.12.6] require phpstan/phpstan ^0.12.60 -> found phpstan/phpstan[dev-master, 0.12.60, ..., 0.12.x-dev (alias of dev-master)] but these were not loaded, likely because it conflicts with another require. - phpstan/phpstan-deprecation-rules[0.12.3, ..., 0.12.4] require phpstan/phpstan ^0.12 -> found phpstan/phpstan[dev-master, 0.12.0, ..., 0.12.x-dev (alias of dev-master)] but these were not loaded, likely because it conflicts with another require. - phpstan/phpstan-deprecation-rules 0.12.5 requires phpstan/phpstan ^0.12.26 -> found phpstan/phpstan[dev-master, 0.12.26, ..., 0.12.x-dev (alias of dev-master)] but these were not loaded, likely because it conflicts with another require. - phpstan/phpstan-deprecation-rules 0.12.x-dev is an alias of phpstan/phpstan-deprecation-rules dev-master and thus requires it to be installed too. - Root composer.json requires phpstan/phpstan-deprecation-rules ^0.12.3 -> satisfiable by phpstan/phpstan-deprecation-rules[0.12.3, ..., 0.12.x-dev (alias of dev-master)].