|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20084 curl_exec crashes apache thread
Submitted: 2002-10-25 07:02 UTC Modified: 2002-11-10 18:26 UTC
From: anton at concord dot ru Assigned:
Status: No Feedback Package: cURL related
PHP Version: 4.2.3 OS: FreeBSD 4.3, 4.5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
8 + 11 = ?
Subscribe to this entry?

 [2002-10-25 07:02 UTC] anton at concord dot ru
I use php_curl module, library version 7.10.1
I send around 100 GET requests on one site  for example like this:
for ($i=0;$i<100;$i++) {
  if (!$ch=curl_init()) break;
  error_log("curl start");
  error_log("curl end");
I use FreeBSD 4.3 and FreeBSD 4.5 with Apache 1.3.26 and php 4.2.3 as apache module.
I included output before curl_exec and after it into php error. On 50-55 times apache thread crashes with message: "child pid 51696 exit signal Segmentation fault (11)." May be memory leak exists deep inside of curl library? Last message in php error log is: "curl start".
I think so, because i used next example where curl handle is only one.
if (!$ch=curl_init()) exit;
for ($i=0;$i<100;$i++) {
  error_log("curl start");
  error_log("curl end");
The result was same.

Thanks in advance.
Anton Kalmykov


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-25 12:28 UTC]
Please try using this CVS snapshot:
For Windows:

I can not reproduce this.

 [2002-11-10 18:26 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 07:01:30 2024 UTC