From: [EMAIL PROTECTED] Operating system: FreeBSD 4.3, 4.5 PHP version: 4.2.3 PHP Bug Type: cURL related Bug description: curl_exec crashes apache thread
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 [EMAIL PROTECTED] -- Edit bug report at http://bugs.php.net/?id=20084&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20084&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20084&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20084&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20084&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20084&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20084&r=support Expected behavior: http://bugs.php.net/fix.php?id=20084&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20084&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20084&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20084&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20084&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20084&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20084&r=isapi