|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44797 php_curl.dll crash. Offset: 00018ed8. ModName: php_curl.dll ModVer:
Submitted: 2008-04-22 10:23 UTC Modified: 2008-05-01 01:00 UTC
Avg. Score:4.0 ± 1.5
Reproduced:4 of 4 (100.0%)
Same Version:3 (75.0%)
Same OS:4 (100.0%)
From: dmitrij at stepanov dot lv Assigned:
Status: No Feedback Package: cURL related
PHP Version: 5.2.5 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: dmitrij at stepanov dot lv
New email:
PHP Version: OS:


 [2008-04-22 10:23 UTC] dmitrij at stepanov dot lv
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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-23 02:24 UTC]
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.

 [2008-05-01 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Oct 04 13:01:26 2023 UTC