php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58703 memory leak in concurrent task interface
Submitted: 2009-05-25 10:06 UTC Modified: 2009-07-01 23:52 UTC
From: dennis at blogma dot de Assigned:
Status: Closed Package: gearman (PECL)
PHP Version: 5.2.8 OS: Mac OS X
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: dennis at blogma dot de
New email:
PHP Version: OS:

 

 [2009-05-25 10:06 UTC] dennis at blogma dot de
Description:
------------
after runTasks() the task object is never freed, causing a 
memory leak.

run the included sample client and watch the process size. On 
my system is grows roughly by 1MB every second.


The same bug is currently in the perl interface and I have no 
idea how to fix it. ;-)

Reproduce code:
---------------
<?php
$gmc= new GearmanClient();
$gmc->addServer();

while (1) {
	$task= $gmc->addTask("reverse", "this is a test", NULL);	
	$gmc->runTasks();
}

exit;
?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-01 23:52 UTC] contact at jamesluedke dot com
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/gearman

This bug should be fixed in the new release.

-jluedke
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri May 29 10:01:26 2020 UTC