From: dmitrij at stepanov dot lv Operating system: Windows XP PHP version: 5.2.5 PHP Bug Type: cURL related Bug description: php_curl.dll crash. Offset: 00018ed8. ModName: php_curl.dll ModVer: 5.2.5.5.
Description: ------------ My configuration: Windows XP, PHP 5.2.5. cURL extension periodically is crashing at offset 00018ed8. I use both curl_* and curl_multi_*. Also, cURL extension has memory leaks. After about 30 minutes of intensive use of cURL functions, i get memory usage over 1G. Reproduce code: --------------- i create 12 handles with curl_init(), configure them, create one curl_multi_init() handle, pass all 12 handles to multi handle with curl_multi_add_handle() and call curl_multi_exec(). after successful execution of requests, i curl_multi_remove_handle() all handles from multi handle, close them with curl_close(), and close multi handle with curl_multi_close(). After repeating this sequence 100 - 200 times, i get lotsa memory leaks and even crash. Expected result: ---------------- No memory leaks. No crash. Actual result: -------------- Memory leaks, crash at offset 00018ed8 -- Edit bug report at http://bugs.php.net/?id=44797&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44797&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44797&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44797&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44797&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44797&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44797&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44797&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44797&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44797&r=support Expected behavior: http://bugs.php.net/fix.php?id=44797&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44797&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44797&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44797&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44797&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44797&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44797&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44797&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44797&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44797&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44797&r=mysqlcfg