cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

From: <noreply_at_sourceforge.net>
Date: Fri, 25 Oct 2002 05:08:54 -0700

Bugs item #628591, was opened at 2002-10-25 05:08
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=628591&group_id=976

Category: client module
Group: crash
Status: Open
Resolution: None
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

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=628591&group_id=976

-------------------------------------------------------
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
Received on 2002-10-25