#19321 [NEW]: malloc() error with Curl
| From: | dams@php.net | Date: | Mon, 09 Sep 2002 19:55:41 +0000 |
| Subject: | #19321 [NEW]: malloc() error with Curl | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-18846@lists.php.net to get a copy of this message | ||
From: dams@php.net
Operating system: MacOSX 10.1.5
PHP version: 4CVS-2002-09-09
PHP Bug Type: cURL related
Bug description: malloc() error with Curl
Here is the script that will produce the bug.
Here is an exemple of final message
It doesn't happen always on the same number,
but it always happened to me before the end of this array
of URL.
***********************************
33 : www.52w.net curl_exec http://www.52w.net
curl_error
Connect failed
34 : www.52www.net curl_exec http://www.52www.net
*** malloc[13148]: error: Can't allocate region
mach_port_type() failed (ipc/mig) wrong reply message ID
task_get_bootstrap_port() failed (ipc/mig) wrong reply
message ID
Abort
[localhost:~/Sites] imac%
***********************************
I'm still on Macosx 10.1.5
curl 7.10-pre2 (powerpc-apple-darwin5.5) libcurl/7.10-pre2
zlib/1.1.3
#!/usr/bin/php -q
<?php
error_reporting(E_ALL);
$i = 0;
$r =
array('germany.gs','gifts.gs','girl.gs','gisler.gs','gs-
www.gs','www.bank.cn.gs','banks.gs','www.4-w.net','www.411n
ow.net','www.44w.
net','www.4989now.net','www.4all2know.net','www.4anewvw.net
','www.4ashow.net'
,'www.4bizlaw.net','www.4dw.net','www.4epw.net','www.4fw.ne
t','www.4gw.net'
,'www.4healthnow.net','www.4hesajollygoodfellow.net','www.4
law.net','www.4moneynow.
net','www.4payperview.net','www.4pornnow.net','www.4review.
net','www.4shaw.
net','www.4sw.net','www.4u2know.net','www.4ww.net','www.4ww
w.net','www.501c3law.
net','www.50thglasgow.net','www.52w.net','www.52www.net','w
ww.55w.net','www.
56w.net','www.5i5w.net','www.5law.net','www.5starview.net',
'www.62w.net','www.
650-blew.net','www.650blew.net','www.66w.net','www.77w.net'
,'www.7law.net'
,'www.7now.net','www.800-baby-
law.net','www.800-babylaw.net','www.800-call-now.net');
foreach($r as $site){
print "$i : $site ";
curl('http://'.$site);
print " \n";
$i++;
}
function curl($site){
$ch = curl_init ($site);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt ($ch, CURLOPT_HEADER, 1);
curl_setopt ($ch, CURLOPT_NOBODY, 1);
curl_setopt ($ch, CURLOPT_TIMEOUT, 10);
print "curl_exec $site\n";
$retour = curl_exec ($ch);
print "curl_error\n";
print curl_error($ch);
curl_close ($ch);
return $retour;
}
?>
--
Edit bug report at http://bugs.php.net/?id=19321&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19321&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19321&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19321&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19321&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19321&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19321&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19321&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19321&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19321&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19321&r=globals