cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-628591 ] php with curl crashes apache thread

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 21 Mar 2006 11:42:14 -0800

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:
&lt;?
for ($i=0;$i&lt;60;$i++) {
  if (!$ch=curl_init()) break;
  curl_setopt($ch,CURLOPT_URL,&quot;http://www.cnn.com&quot;);
  error_log(&quot;curl start&quot;);
  curl_exec($ch);
  error_log(&quot;curl end&quot;);
}
curl_close($ch);
?&gt;
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: &quot;child pid 51696 exit signal Segmentation
fault (11). I think memory leak exists deep inside of curl
library&quot;. Last message in php error log is: &quot;curl start&quot;.

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
&lt;?
for ($i=0;$i&lt;60;$i++) {
  if (!$ch=curl_init()) break;
  curl_setopt($ch,CURLOPT_URL,&quot;http://www.cnn.com&quot;);
  error_log(&quot;curl start&quot;);
  curl_exec($ch);
  error_log(&quot;curl end&quot;);
  curl_close($ch);
}
?&gt;

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=628591&group_id=976
Received on 2006-03-21

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET