Comments (5)
Hi there, speaking of that test (tests/dump-memory_leak.phpt
), compiling fails that particular test for me on some builds and passes on others, consistently.
- EL6 PHP 7.0: PASS
- EL6 PHP 7.1: FAIL
- EL6 PHP 7.2: FAIL
- EL6 PHP 7.3: PASS
- EL7 PHP 7.0: PASS
- EL7 PHP 7.1: PASS
- EL7 PHP 7.2: PASS
- EL7 PHP 7.3: FAIL
An example fail output from EL6 PHP 7.2:
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped : 0
Exts tested : 15
---------------------------------------------------------------------
Number of tests : 12 1
Tests skipped : 11 ( 91.7%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 1 ( 8.3%) (100.0%)
Expected fail : 0 ( 0.0%) ( 0.0%)
Tests passed : 0 ( 0.0%) ( 0.0%)
---------------------------------------------------------------------
Time taken : 2 seconds
=====================================================================
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
meminfo_dump check there's no memory leak [tests/dump-memory_leak.phpt]
=====================================================================
edit: added php 7.3 to results
from php-meminfo.
Thanks @squio for this report,
We have some tests to make sure we don't leak: https://github.com/BitOne/php-meminfo/blob/master/extension/php7/tests/dump-memory_leak.phpt
But it seems it's not sufficient enough.
Do you have the same problem on a more recent version of PHP? Can you try without xdebug enabled? And finally, do you have any code that you can provide so I can do some testing?
Thank you very much!
from php-meminfo.
@jc21 I am having the same problem on CentOS 6.9 running PHP 7.1.11. Tried it on a Docker container based on php:7.1-apache
based on Debian 8 and it works, all tests passing. I will try to run some more tests to see if it is CentOS specific.
I was already having this issue from my PHP routines, which led me to try out this repo. The exact same amount of memory is leaking in the test (2097152 bytes), so I am thinking this might be something OS or PHP specific.
from php-meminfo.
I've implemented the builds on a different hardware and now I'm getting different results:
- EL6 PHP 7.0: PASS
- EL6 PHP 7.1: FAIL
- EL6 PHP 7.2: FAIL
- EL6 PHP 7.3: FAIL (different)
- EL7 PHP 7.0: PASS
- EL7 PHP 7.1: PASS
- EL7 PHP 7.2: PASS
- EL7 PHP 7.3: PASS (different)
So my best guess is that this test is defunct in some way ¯_(ツ)_/¯
from php-meminfo.
I managed to build a Docker image that is able to reproduce this issue.
docker pull gusantoniassi/php-meminfo-memory-leak-bug
docker run -it --rm gusantoniassi/php-meminfo-memory-leak-bug bash
cd /opt/php-meminfo/extension/php7
make test
# test dump-memory_leak.phpt should fail
As you can see from the Dockerfile the installation is pretty minimal, so I believe it is either an issue with EL6 or with the remirepo.net
's PHP packages.
from php-meminfo.
Related Issues (20)
- Header : signed integer overflow
- Invalid JSON for FFI objects HOT 1
- The frame label is not correct when there are more than two frames
- Segfault with PHP 7.4 due to https://github.com/BitOne/php-meminfo/pull/106 fix HOT 1
- segfault using it with swoole HOT 1
- Treemap Visualization of Heap Dump
- [Feature request] Allow to automatically create a dump on memory limit HOT 4
- Malformed UTF-8 characters, possibly incorrectly encoded HOT 2
- Please release a PHP 8-compatible version
- A way to diff two dumps HOT 1
- Odd behaviour resulting in SIGSEGV HOT 3
- New tag for PHP 8 ? HOT 1
- Wrong result with Fibers PHP 8.1
- Some zvals are missing in memory dump for classes with the __debugInfo magic.
- pthreads and meminfo HOT 1
- PHP 7.3 support HOT 3
- Provide a simpler view for the reference path
- PHPStorm stub HOT 1
- Memory leak not displayed in the dump HOT 6
- Make fails on PHP 7.3 in Linux HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-meminfo.