|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-25 12:28 UTC] sniper@php.net
[2002-11-10 18:26 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 01:00:01 2025 UTC |
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; 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 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++) { curl_setopt($ch,CURLOPT_URL,"http://www.cnn.com"); error_log("curl start"); curl_exec($ch); error_log("curl end"); } curl_close($ch); ?> The result was same. Thanks in advance. Anton Kalmykov anton@concord.ru