Skip to content

swoole causes PHP 8.0.1 JIT enable to fail. #3986

@Alion548

Description

@Alion548

Please answer these questions before submitting your issue. Thanks!

  1. What did you do? If possible, provide a simple script for reproducing the error.
PHP Warning:  JIT is incompatible with third party extensions that setup user opcode handlers. JIT disabled. in Unknown on line 0

The error disappears when the swoole extension is disabled.

  1. What version of Swoole are you using (show your php --ri swoole)?
php --ri swoole
PHP Warning:  JIT is incompatible with third party extensions that setup user opcode handlers. JIT disabled. in Unknown on line 0

swoole

Swoole => enabled
Author => Swoole Team <team@swoole.com>
Version => 4.6.0
Built => Jan  8 2021 06:02:04
coroutine => enabled
epoll => enabled
eventfd => enabled
signalfd => enabled
cpu_affinity => enabled
spinlock => enabled
rwlock => enabled
openssl => OpenSSL 1.1.1i FIPS  8 Dec 2020
dtls => enabled
http2 => enabled
zlib => 1.2.11
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
async_redis => enabled

Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => On => On
swoole.unixsock_buffer_size => 8388608 => 8388608
  1. What is your machine environment used (show your uname -a & php -v & gcc -v) ?
uname -a
Linux Fedora 33 5.10.5-xanmod1 #1 SMP Thu Jan 7 09:12:41 CST 2021 x86_64 x86_64 x86_64 GNU/Linux

php -v
PHP Warning:  JIT is incompatible with third party extensions that setup user opcode handlers. JIT disabled. in Unknown on line 0
PHP 8.0.1 (cli) (built: Jan  8 2021 06:00:24) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.1, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.1, Copyright (c), by Zend Technologies
zend_extension = opcache.so

opcache.enable = 1
opcache.enable_cli = 1
opcache.validate_timestamps = 1
; opcache.save_comments = 1
opcache.revalidate_freq = 15
opcache.max_accelerated_files = 1024
opcache.memory_consumption = 64
opcache.interned_strings_buffer = 8

opcache.jit = 1205
opcache.jit_buffer_size = 64M
GCC Extended Parameters

ENV CC="ccache gcc"
ENV CFLAGS="-fpic -fpie -O3 -march=native -mno-avx"
ENV CXX="ccache g++"
ENV CXXFLAGS="-fpic -fpie -O3 -march=native -mno-avx"
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions