Bugs item #628591, was opened at 2002-10-25 05:08
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=628591&group_id=976
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: client module
Group: crash
Status: Closed
Resolution: Invalid
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: php with curl crashes apache thread
Initial Comment:
I use php_curl module, library version 7.10.1
I send around 50-60 GET requests on one site for
example like this:
<?
for ($i=0;$i<60;$i++) {
if (!$ch=curl_init()) break;
curl_setopt($ch,CURLOPT_URL,"http://www.cnn.com");
error_log("curl start");
curl_exec($ch);
error_log("curl end");
}
curl_close($ch);
?>
I use FreeBSD 4.3 and FreeBSD 4.5 with Apache 1.3.26
and php 4.2.3.
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). I think memory leak exists deep inside of curl
library". Last message in php error log is: "curl start".
Thanks in advance.
Anton Kalmykov
anton_at_concord.ru
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2006-03-21 11:42
Message:
Logged In: NO
The Apache crashes on Windows Xp Professional, when I use
CURL through PHP
Apache 2.0.54
Php 4.4.0
Windows Xp professional with Service Pack2
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Date: 2002-10-28 03:34
Message:
Logged In: YES
user_id=1110
1, please post PHP/CURL problems on http://bugs.php.net
2, if you can provide an example of this problem using the C
interface (or the plain curl tool), then I'd be interested.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2002-10-25 05:13
Message:
Logged In: NO
Sorry, some errors in example. It was
<?
for ($i=0;$i<60;$i++) {
if (!$ch=curl_init()) break;
curl_setopt($ch,CURLOPT_URL,"http://www.cnn.com");
error_log("curl start");
curl_exec($ch);
error_log("curl end");
curl_close($ch);
}
?>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=628591&group_id=976
Received on 2006-03-21