php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81371 SIGABRT after some page refreshes | memory leak in filter.c
Submitted: 2021-08-18 07:36 UTC Modified: 2021-08-23 14:35 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: philippreddigau at gmail dot com Assigned:
Status: Open Package: JIT
PHP Version: 8.0.9 and before OS: docker alpine Linux a4632490c7be
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: philippreddigau at gmail dot com
New email:
PHP Version: OS:

 

 [2021-08-18 07:36 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-08-18 08:00 UTC] philippreddigau at gmail dot com
-PHP Version: 8.0.9 +PHP Version: 8.0.9 and before
 [2021-08-18 08:00 UTC] philippreddigau at gmail dot com
Seems not to be a new issue can reproduce it on 8.0.4 as well
 [2021-08-23 14:35 UTC] cmb@php.net
-Summary: SEGABRT after some page refreshes | memory leak in filter.c +Summary: SIGABRT after some page refreshes | memory leak in filter.c
 [2023-04-05 05:41 UTC] expertblogseo at gmail dot com
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 19:01:28 2024 UTC