Bug #72576 [Opn->Fbk]: Memory leak or potential segfaul in LibXML
| From: | cmb@php.net | Date: | Sat, 31 Mar 2018 12:12:21 +0000 |
| Subject: | Bug #72576 [Opn->Fbk]: Memory leak or potential segfaul in LibXML | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-214549@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72576&edit=1
ID: 72576
Updated by: cmb@php.net
Reported by: eugen dot mayer at kontextwork dot de
Summary: Memory leak or potential segfaul in LibXML
-Status: Open
+Status: Feedback
Type: Bug
Package: XML related
Operating System: Linux, Debian Jessie
PHP Version: 7.0.8
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with ,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
BTW: the valgrind report shows memory leaks, but I cannot see
anything regarding a segfault.
Previous Comments:
------------------------------------------------------------------------
[2016-07-11 12:23:58] eugen dot mayer at kontextwork dot de
Description:
------------
When using this Jessie-Setup with PHP 7.0.8, disabling all extensions leaving it with:
php -m
[PHP Modules]
Core
date
filter
hash
libxml
openssl
pcntl
pcre
Reflection
session
SPL
standard
zlib
Using valgrind, i get a memory leak https://gist.github.com/EugenMayer/bdfe97f551caf6923ba5b911b7959476
Even though the linked repo has memcached it its name, its not memcached related. I was hunting a
memcached igbinary bug, but this crossed our setup recently.
Test script:
---------------
git clone https://github.com/EugenMayer/deb-surg-org-tests
cd deb-surg-org-tests/memcached
docker-compose build
docker run -i -t eugenmayer/deb-surg-org-tests:memcached valgrind --leak-check=full
--leak-check=full --show-leak-kinds=all /usr/bin/php7.0 -S localhost:8085
CTRL+C
Expected result:
----------------
Not having a Segfault, like running the same with php5.5
git clone https://github.com/EugenMayer/deb-surg-org-tests
cd deb-surg-org-tests/memcached
docker-compose build
docker run -i -t eugenmayer/deb-surg-org-tests:memcached valgrind --leak-check=full
--leak-check=full --show-leak-kinds=all /usr/bin/php5.5 -S localhost:8085
CTRL+C
valgrind --leak-check=full /usr/bin/php7.0 -S localhost:8085
==18== Memcheck, a memory error detector
==18== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==18== Using Valgrind-3.10.0 and LibVEX; rerun with -h for copyright info
==18== Command: /usr/bin/php7.0 -S localhost:8085
==18==
PHP 7.0.8-2+0~20160628130014.3+jessie~1.gbp5338fb Development Server started at Mon Jul 11 09:47:52
2016
Listening on http://localhost:8085
Document root is /etc/php/7.0/cli/conf.d
Press Ctrl-C to quit.
Actual result:
--------------
https://gist.github.com/EugenMayer/bdfe97f551caf6923ba5b911b7959476
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72576&edit=1