#39037 [NEW]: Memory leaks when using curl_multi
| From: | eugen at id dot com dot ua | Date: | Wed, 04 Oct 2006 14:08:49 +0000 |
| Subject: | #39037 [NEW]: Memory leaks when using curl_multi | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-103083@lists.php.net to get a copy of this message | ||
From: eugen at id dot com dot ua
Operating system: Fedora Core 5
PHP version: 5.1.6
PHP Bug Type: cURL related
Bug description: Memory leaks when using curl_multi
Description:
------------
Possible memory leaks when using curl_multi_* functions.
I start 10 tasks with curl_multi and at completion of one of them add a
new task. The use of memory is gradually increased thus, although $GLOBALS
has a permanent size approximately.
In particular, at the call of curl_close() or curl_multi_remove_handle()
memory is not freed (I guess it should be...)
Reproduce code:
---------------
http://www.follow.net.ua/bug.phps
(see MEMORY_IS_NOT_RELEASED_HERE string near the end of file).
Expected result:
----------------
Downloading queue of documents with 10 threads
Actual result:
--------------
Gradual increasing of memory usage (sizeof $GLOBALS is *NOT* increasing)
--
Edit bug report at http://bugs.php.net/?id=39037&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39037&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39037&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39037&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39037&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=39037&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39037&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39037&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39037&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39037&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39037&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=39037&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=39037&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39037&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39037&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39037&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39037&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39037&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39037&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39037&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39037&r=mysqlcfg