Bug #81371 [NEW]: SEGABRT after some page refreshes | memory leak in filter.c
| From: | philippreddigau at gmail dot com | Date: | Wed, 18 Aug 2021 07:36:36 +0000 |
| Subject: | Bug #81371 [NEW]: SEGABRT after some page refreshes | memory leak in filter.c | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-235919@lists.php.net to get a copy of this message | ||
From: philippreddigau at gmail dot com
Operating system: docker alpine Linux a4632490c7be
PHP version: 8.0.9
Package: JIT
Bug Type: Bug
Bug description:SEGABRT after some page refreshes | memory leak in filter.c
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 bug report at https://bugs.php.net/bug.php?id=81371&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81371&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81371&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81371&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81371&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81371&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81371&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81371&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81371&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81371&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81371&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81371&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81371&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81371&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81371&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81371&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81371&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81371&r=mysqlcfg