php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78039 Huge memory leak when soap fault
Submitted: 2019-05-20 09:59 UTC Modified: 2019-07-15 13:23 UTC
Votes:2
Avg. Score:3.5 ± 0.5
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: n0dwis at gmail dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 7.2.18 OS: Alpine Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2019-05-20 09:59 UTC] n0dwis at gmail dot com
Description:
------------
When Soap call finished with error memory_get_usage shows increasing memory usage to 30Mb. This memory don't free in next requests.
This is short log
Before call soap 8MB
Soap fault
After call soap 46MB
Before call soap 46MB
Soap fault
After call soap 72MB
Before call soap 72MB
Soap fault
After call soap 100MB
Before call soap 100MB
Soap fault
After call soap 128MB

And this is log without failing. Memory leak exist too but not so big
Before call soap 8MB
After call soap 36MB
Before call soap 38MB
After call soap 38MB
Before call soap 38MB
After call soap 38MB
Before call soap 38MB
After call soap 40MB
Before call soap 38MB
After call soap 40MB
Before call soap 40MB
After call soap 40MB
Before call soap 40MB
After call soap 40MB
Before call soap 38MB
After call soap 40MB
Before call soap 38MB
After call soap 40MB
Before call soap 40MB
After call soap 40MB
Before call soap 40MB
After call soap 40MB
Before call soap 38MB
After call soap 40M

This behaviour is in a php docker container 7.2.9 and 7.2.18


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-05-20 09:59 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2019-05-20 09:59 UTC] requinix@php.net
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 <?php and ends 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.


 [2019-05-30 21:04 UTC] n0dwis at gmail dot com
-Status: Feedback +Status: Open
 [2019-05-30 21:04 UTC] n0dwis at gmail dot com
I tried but I can't reproduce it in test environment. It's no any leak if I use simple test Soap services. This happen only in our production environment.
I understand it hard to figure out the bug, but I can't provide more information. Sorry.
 [2019-07-15 13:23 UTC] nikic@php.net
I've done some changes in 7.4 that may fix or reduce this leak.
 [2019-08-15 00:21 UTC] rrpds1994 at gmail dot com
The following pull request has been associated:

Patch Name: Fix #77728: pgort140.DLL missing
On GitHub:  https://github.com/php/web-rmtools/pull/6
Patch:      https://github.com/php/web-rmtools/pull/6.patch
 [2019-08-15 00:24 UTC] rrpds1994 at gmail dot com
The following pull request has been associated:

Patch Name: improves lookup-hack wrt. mysqli_stmt and mysqli_driver (fixes #66340)
On GitHub:  https://github.com/php/systems/pull/4
Patch:      https://github.com/php/systems/pull/4.patch
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Aug 21 00:01:34 2019 UTC