php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62337 Randomly getting exhausted memory
Submitted: 2012-06-16 01:03 UTC Modified: 2020-11-01 04:22 UTC
Votes:17
Avg. Score:4.5 ± 0.9
Reproduced:14 of 15 (93.3%)
Same Version:7 (50.0%)
Same OS:6 (42.9%)
From: jrbasso at gmail dot com Assigned:
Status: No Feedback Package: SOAP related
PHP Version: 5.3.14 OS: Linux 3.2.12-3.2.4.amzn1.x86_64
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jrbasso at gmail dot com
New email:
PHP Version: OS:

 

 [2012-06-16 01:03 UTC] jrbasso at gmail dot com
Description:
------------
Randomly the SoapClient constructor is trying to allocate huge amounts of memory 
and causing the error Error: Allowed memory size of 268435456 bytes exhausted 
(tried to allocate 18446744072233156736 bytes)

The amount goes from 2GB to numbers like above.

This started to happen when we switched from 5.3.10 to 5.3.13 (and now 5.3.14).

I am not able to reproduce the error easily, once it do not happens in all the 
requests. The constructor is always called with the same parameters.

Soap configuration:
Soap Client	enabled
Soap Server	enabled

Directive	Local Value
soap.wsdl_cache	1
soap.wsdl_cache_dir	/tmp
soap.wsdl_cache_enabled	1
soap.wsdl_cache_limit	5
soap.wsdl_cache_ttl	86400


Test script:
---------------
$soap = new SoapClient('https://ics2ws.ic3.com/commerce/1.x/transactionProcessor/CyberSourceTransaction_1.47.wsdl', array('merchantId' => '???', 'transactionKey' => '???'));


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-12-05 11:28 UTC] benoit dot montuelle at gmail dot com
Hello, 

We run into a very similar issue on our CentOS 6.4 box (running PHP 5.3.3). 

The cause of error (in our case) was a disk partition full error leading to corrupted wsdl cache file. 

In the SoapClient constructor it then tries to allocate 4G of memory and get blocked by php ini directive.
 [2020-10-23 12:44 UTC] cmb@php.net
-Status: Open +Status: Feedback
 [2020-10-23 12:44 UTC] cmb@php.net
Does this still happen with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2020-10-23 21:21 UTC] jrbasso at gmail dot com
I'm not getting the error on 7.2 anymore.
 [2020-11-01 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 09:01:28 2024 UTC