Skip to content

(JIT?) PHP-FPM 8.1.2 segfault on Linux amd64 #8125

Closed
@zebroid

Description

@zebroid

Description

uname -a

Linux host 5.10.0-11-amd64 #1 SMP Debian 5.10.92-1 (2022-01-18) x86_64 GNU/Linux

php-fpm8.1 -v

PHP 8.1.2 (fpm-fcgi) (built: Jan 27 2022 12:22:31)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
with Zend OPcache v8.1.2, Copyright (c), by Zend Technologies

(gdb) bt
#0  0x000055ad42b112c0 in zendi_try_get_long (op=0x1e3, failed=0xe) at ./Zend/zend_operators.c:279
#1  0x000055ad42b10663 in zendi_try_convert_scalar_to_number (holder=0x7fffd0e08290, op=0x0) at ./Zend/zend_operators.c:273
#2  mul_function_slow (result=0x4f77c190da5de100, op1=0x0, op2=0x7fb394c143c0) at ./Zend/zend_operators.c:1149
#3  0x000055ad42b3cbd7 in zend_mul_helper_SPEC (op_1=0x7fb394c143a0, op_2=0x7fb394c143f0) at ./Zend/zend_vm_execute.h:488
#4  0x000055ad42b7a85d in execute_ex (ex=0x1e3) at ./Zend/zend_vm_execute.h:56581
#5  0x000055ad42b833cd in zend_execute (op_array=0x7fb394c6b000, return_value=0x0) at ./Zend/zend_vm_execute.h:59673
#6  0x000055ad42b15c1d in zend_execute_scripts (type=type@entry=8, retval=retval@entry=0x0, file_count=file_count@entry=3) at ./Zend/zend.c:1761
#7  0x000055ad42ab18d1 in php_execute_script (primary_file=primary_file@entry=0x7fffd0e0a950) at ./main/main.c:2535
#8  0x000055ad4296089d in main (argc=<optimized out>, argv=<optimized out>) at ./sapi/fpm/fpm/fpm_main.c:1914

Directive	Local Value	Master Value
opcache.blacklist_filename	no value	no value
opcache.consistency_checks	0	0
opcache.dups_fix	Off	Off
opcache.enable	On	On
opcache.enable_cli	Off	Off
opcache.enable_file_override	Off	Off
opcache.error_log	/var/log/php/php8.1-errors.log	/var/log/php/php8.1-errors.log
opcache.file_cache	no value	no value
opcache.file_cache_consistency_checks	On	On
opcache.file_cache_only	Off	Off
opcache.file_update_protection	2	2
opcache.force_restart_timeout	180	180
opcache.huge_code_pages	On	On
opcache.interned_strings_buffer	5	5
opcache.jit	1255	1255
opcache.jit_bisect_limit	0	0
opcache.jit_blacklist_root_trace	16	16
opcache.jit_blacklist_side_trace	8	8
opcache.jit_buffer_size	2M	2M
opcache.jit_debug	256	256
opcache.jit_hot_func	127	127
opcache.jit_hot_loop	64	64
opcache.jit_hot_return	8	8
opcache.jit_hot_side_exit	8	8
opcache.jit_max_exit_counters	8192	8192
opcache.jit_max_loop_unrolls	8	8
opcache.jit_max_polymorphic_calls	2	2
opcache.jit_max_recursive_calls	2	2
opcache.jit_max_recursive_returns	2	2
opcache.jit_max_root_traces	1024	1024
opcache.jit_max_side_traces	128	128
opcache.jit_prof_threshold	0.005	0.005
opcache.lockfile_path	/tmp	/tmp
opcache.log_verbosity_level	2	2
opcache.max_accelerated_files	1023	1023
opcache.max_file_size	0	0
opcache.max_wasted_percentage	5	5
opcache.memory_consumption	32	32
opcache.opt_debug_level	0	0
opcache.optimization_level	0x7FFEBFFF	0x7FFEBFFF
opcache.preferred_memory_model	no value	no value
opcache.preload	no value	no value
opcache.preload_user	www-data	www-data
opcache.protect_memory	Off	Off
opcache.record_warnings	Off	Off
opcache.restrict_api	no value	no value
opcache.revalidate_freq	2	2
opcache.revalidate_path	Off	Off
opcache.save_comments	Off	Off
opcache.use_cwd	On	On
opcache.validate_permission	Off	Off
opcache.validate_root	Off	Off
opcache.validate_timestamps	Off	Off

Opcode Caching	Up and Running
Optimization	Enabled
SHM Cache	Enabled
File Cache	Disabled
JIT	On
Startup	OK
Shared memory model	mmap
Cache hits	68840
Cache misses	89
Used memory	18632560
Free memory	14921872
Wasted memory	0
Interned Strings Used memory	1181640
Interned Strings Free memory	3012200
Cached scripts	88
Cached keys	94
Max keys	1979
OOM restarts	0
Hash keys restarts	0
Manual restarts	0

PHP Version

PHP 8.1.2

Operating System

Debain 11

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