Bug #81371 [Com]: SIGABRT after some page refreshes | memory leak in filter.c
| From: | expertblogseo at gmail dot com | Date: | Wed, 05 Apr 2023 05:41:16 +0000 |
| Subject: | Bug #81371 [Com]: SIGABRT after some page refreshes | memory leak in filter.c | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-244107@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=81371&edit=1
ID: 81371
Comment by: expertblogseo at gmail dot com
Reported by: philippreddigau at gmail dot com
Summary: SIGABRT after some page refreshes | memory leak in
filter.c
Status: Open
Type: Bug
Package: JIT
Operating System: docker alpine Linux a4632490c7be
PHP Version: 8.0.9 and before
Block user comment: N
Private report: N
New Comment:
Seo Expert Blog is online platform sharing latest tips about, digital marketing, seo, smo, tech news
etc. More info to visit:(https://seoexpertblog.com)github.com
Previous Comments:
------------------------------------------------------------------------
[2021-08-18 08:00:39] philippreddigau at gmail dot com
Seems not to be a new issue can reproduce it on 8.0.4 as well
------------------------------------------------------------------------
[2021-08-18 07:36:36] philippreddigau at gmail dot com
Description:
------------
With JIT enable php-fpm aborts after some refreshes (2 to 5 times) and keeps crashing after the
first crash.
We compiled https://hub.docker.com/_/php
alpine-fpm with --enable-debug to get an idea but sadly no crash dumps are generated.
Custom extensions (+the all ready included ones)
- pecl redis
- iconv mbstring mysqli pdo_mysql curl session zip intl opcache gd imap
GD is configured with:
--with-freetype=/usr/include/ --with-jpeg=/usr/include/
IMAP is configured with:
--with-imap-ssl --with-kerberos
Config changes:
opcache.jit_buffer_size=100M
opcache.jit = tracing
opcache.memory_consumption = 128
opcache.enable = 1
opcache.revalidate_freq = 0
opcache.validate_timestamps = 0
opcache.save_comments = 1
session.save_handler = redis
session.save_path = tcp://redis:6379
session.name = SID
Test script:
---------------
---
not possible at this time, since no crash dumps are generated
---
any help appreciated to generate the dumps.
actually last attempt is:
command: >
sh -c "echo '/tmp/core.%h.%e.%t' > /proc/sys/kernel/core_pattern
&&
ulimit -c unlimited &&
echo -e '\nrlimit_core = unlimited' >> /usr/local/etc/php-fpm.conf
&&
cat /usr/local/etc/php-fpm.conf &&
php-fpm"
Actual result:
--------------
[18-Aug-2021 06:45:02] NOTICE: fpm is running, pid 1
[18-Aug-2021 06:45:02] NOTICE: ready to handle connections
172.22.0.12 - 18/Aug/2021:06:45:14 +0000 "GET /index.php" 200
[Wed Aug 18 06:45:16 2021] Script: '-'
/usr/src/php/ext/filter/filter.c(425) : Freeing 0x00007f70e6404000 (8 bytes), script=-
Last leak repeated 5 times
=== Total 6 memory leaks detected ===
172.22.0.12 - 18/Aug/2021:06:45:16 +0000 "GET /index.php" 200
[Wed Aug 18 06:45:16 2021] Script: '-'
/usr/src/php/ext/filter/filter.c(425) : Freeing 0x00007f70e6404000 (8 bytes), script=-
Last leak repeated 5 times
=== Total 6 memory leaks detected ===
172.22.0.12 - 18/Aug/2021:06:45:17 +0000 "GET /index.php" 200
[Wed Aug 18 06:45:18 2021] Script: '-'
/usr/src/php/ext/filter/filter.c(425) : Freeing 0x00007f70e6404000 (8 bytes), script=-
Last leak repeated 5 times
=== Total 6 memory leaks detected ===
Assertion failed: ((execute_data)->opline) >= ((execute_data)->func)->op_array.opcodes
&& ((execute_data)->opline) < ((execute_data)->func)->op_array.opcodes +
((execute_data)->func)->op_array.last (./jit/zend_jit_trace.c: zend_jit_trace_exit: 7487)
[18-Aug-2021 06:45:18] WARNING: [pool www] child 11 exited on signal 6 (SIGABRT) after 15.996866
seconds from start
[18-Aug-2021 06:45:18] NOTICE: [pool www] child 19 started
Assertion failed: ((execute_data)->opline) >= ((execute_data)->func)->op_array.opcodes
&& ((execute_data)->opline) < ((execute_data)->func)->op_array.opcodes +
((execute_data)->func)->op_array.last (./jit/zend_jit_trace.c: zend_jit_trace_exit: 7487)
[18-Aug-2021 06:45:19] WARNING: [pool www] child 12 exited on signal 6 (SIGABRT) after 16.880647
seconds from start
[18-Aug-2021 06:45:19] NOTICE: [pool www] child 20 started
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81371&edit=1