php.net |  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: 5.2.5.5.
Submitted: 2008-04-22 10:23 UTC Modified: 2008-05-01 01:00 UTC
Votes:5
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
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: dmitrij at stepanov dot lv
New email:
PHP Version: OS:

 

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-23 02:24 UTC] felipe@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 12:01:27 2024 UTC