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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 02 12:01:29 2025 UTC