From:             eugen dot mayer at kontextwork dot de
Operating system: Linux, Debian Jessie
PHP version:      7.0.8
Package:          PECL
Bug Type:         Bug
Bug description:Memory leak or potential segfaul in LibXML

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 bug report at https://bugs.php.net/bug.php?id=72576&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=72576&r=trysnapshot54
Try a snapshot (PHP 5.5):   
https://bugs.php.net/fix.php?id=72576&r=trysnapshot55
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=72576&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=72576&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=72576&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=72576&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=72576&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=72576&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=72576&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=72576&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=72576&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=72576&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=72576&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72576&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=72576&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=72576&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=72576&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72576&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=72576&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=72576&r=mysqlcfg


-- 
PECL development discussion Mailing List (http://pecl.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to